C++ Basics – Telegram
393 subscribers
142 photos
8 videos
17 files
49 links
For Any Information @TechnerdGuy
🆘 Pre-Engineering Students Struggling with C++? 😥 Fear not! 💪 This channel is your coding lifesaver! 🚑 Learn the basics, ace your course! 💯
Download Telegram
Esk 4:30 vote adergu ena decided enadergalen
👍6
Time is up⚡️

Class
Friday and Saturday
Time
3:30 Mata
👍6
Good night😴 Guys.🫡
Addis negr kale post adergalew

Stay updated with us.

@ProgrammingWithFaith

cout<<"programmingWithFaith"<<endl
🫡9
GM😊, everyone   coursun Friday mata 3:00🤓 እንጀምራለን  እስከ እዛ ድረስ አንደ Assignment ልስጣችሁ📚 sololearn application ይባላል linkun ከስር አስቀምጥላችዋለው ወይ ከplay store ላይ Sololearn ብላችሁ Download አድርጉት💻 እና basics c++ course የሚል አለ እሱን course ጀምሩት በዋላ coursun ስን ጀምር Understand ለማድረግ አያስቸግራቹም👌



Link:
https://play.google.com/store/apps/details?id=com.sololearn


@ProgrammingWithFaith
@ProgrammingWithFaith
@ProgrammingWithFaith
🔥5👍3
C++ Basics pinned «GM😊, everyone   coursun Friday mata 3:00🤓 እንጀምራለን  እስከ እዛ ድረስ አንደ Assignment ልስጣችሁ📚 sololearn application ይባላል linkun ከስር አስቀምጥላችዋለው ወይ ከplay store ላይ Sololearn ብላችሁ Download አድርጉት💻 እና basics c++ course የሚል አለ እሱን course ጀምሩት በዋላ coursun ስን ጀምር Understand…»
🗓️ Today @ 3:30 🕒 Class! 📚

We're diving into:
  Chapter 1️⃣
  💻 Intro to Programming 🚀

🔥 Don't miss out! 🔥
🔥8👍7
C++ Basics pinned «🗓️ Today @ 3:30 🕒 Class! 📚 We're diving into:   Chapter 1️⃣   💻 Intro to Programming 🚀 🔥 Don't miss out! 🔥»
1 min left.........
Let start our discussion .
👍1
Lesson 1 📚

Course: C++ Basics 💻

Chapter 1: What is a Program? 🤔

A program is a sequence of written instructions that a computer can execute to perform specific tasks or solve problems.

program ማለት instructions ነው። ለምሳሌ, አንደ ሼፍ የሆን ምግብ prepare ለማድረግ 🍽️, recipe እንደ ሚጠቀመው, computerም የሆነ specific task or problem solve ለማድረግ program ይፈልጋል 💡.
🔥9
I think ahun sle program clue alchu beye asebalew,esti Guess adergo what is programming language ?
Programming Languages 🌐

A programming language is a tool used to communicate with computers. There are two main categories of languages:

1. Natural Languages 🌍: These are human languages used in everyday communication, such as English, Oromo, or Amharic. 

   Natural language የምንለው everyday ከሰዎች ጋር communicate ለማድረግ የምንጠቀመው language ነው.

2. Programming Languages 💻: These are formal languages designed to instruct computers. They can be further classified into three types:

programming language ደሞ ከሰው ጋር ሳይሆን  ከMachine(computer ) ጋር communicate ምናደረግበት language ነው።


   A. Low-Level or Machine Language ⚙️: This is the most basic type of programming language, consisting solely of binary code (0s and 1s) that is directly understandable by computers. 
   Example: 101001 
   Machine or Low level የምንለው የ0 እና 1 ስብስብ ነው። Computer ቀጥታ understand ሚይደርገው low levelን ብቻ ነው.

   B. Assembly Language 🛠️: This is a mnemonic representation of machine language, making it slightly more understandable to humans. However, it still requires translation into machine language using an assembler. 

   Example: MOV AX, 12H; 

   Assembly ትንሽም ቢሆን በHuman understandable ነው። ግን computer ልክ እንደ low level directly understand ማደረግ አይችልም ስለዚህ Assemblerን ይጠቀማል።


Assembler source codun ወደ machine language translate ያደርገዋል ።

   C. High-Level Programming Languages 🚀: These languages are designed to be easy for humans to read and write. They need to be translated into machine language before execution, which is done using either a compiler or an interpreter:

   • Compiler: A compiler translates the entire source code into machine code before execution.

   • Interpreter: An interpreter translates and executes the code line by line.
  
   Examples: Java , JavaScript 🌐, Python 🐍, C++
👍92
Why we need high level programming language ....? Just lemn machine or assembly language becha anetkemem......
👍2
C++ Basics
Why we need high level programming language ....? Just lemn machine or assembly language becha anetkemem......
All of you are right .
high level yaseflgebet reason human machine language ን easily understand maderg sle mayechel nw.
👍5
Question


1.  What is Machine Language primarily composed of?
    a) English words
    b) Binary code (0s and 1s)
    c) Mnemonic codes
    d) High-level commands

2.  What is the purpose of an Assembler?
    a) To translate High-Level Language into Machine Language
    b) To translate Machine Language into Assembly Language
    c) To translate Assembly Language into Machine Language
    d) To execute code line by line

3.  Which characteristic best describes High-Level Programming Languages?
    a) Difficult for humans to read and write
    b) Directly understandable by computers
    c) Easy for humans to read and write
    d) Based on binary code

4.  What is the key difference between a Compiler and an Interpreter?
    a) A Compiler executes code line by line, while an Interpreter translates the whole code at once.
    b) An Interpreter translates the whole code at once, while a Compiler executes code line by line.
    c) A Compiler translates the whole code into machine code before execution, while an Interpreter translates and executes code line by line.
    d) There is no difference between a Compiler and an Interpreter; they perform the same function.



True/False

1.  Machine Language is directly understandable by humans.

2.   High-Level Programming Languages can be executed directly by a computer without translation.
👍14👎1
Forwarded from MA♤♤
1. B
2. C
3. C
4.C

1. False
2. False
👍8🔥4
Esk ahun cover kadergnew wust yalegebachu negr......?
Esh understand adergachuwal slezi yehone teyak letyekachu


Ye C++ code run lemaderg yemtetkemut application or software compiler or interpreter nw mebalew.....?

Compilation vs. interpretation
Computer programming የአንድ programming language elements  የሚፈለገውን ውጤት እንዲያመጡ በቅደም ተከተል የማቀናበር ተግባር ነው። The effect could be different in every specific case - it's up to the programmer's imagination, knowledge and experience.

ይህ composition ደግሞ ትክክል መሆን አለበት in many senses:

#alphabetically - አንድ program ግልፅ በሆኑ ፊደላት መፃፍ አለበት።

#lexically - እያንዳንዱ programming language የራሱ dictionary አለው; ይህ ደግሞ ከnatural language dictionary በብዙ ቀለል ያለ ነው።

#syntactically - እያንዳንዱ ቋንቋ የራሱ ይሆነ ህግ አለው እናም they must be obeyed for communication to occur

#semantically - the program has to make sense
ነገር ግን program የፃፈው ሰው ሊሳሳት ይችላል የዚያን ጊዜ ደግሞ Each of them can cause the program to become completely useless.

ለምሳሌ አንድ program በትክክል ፅፋችኋል ብለን እናስብ፣  ኮምፒውተራችን ይሄን program execute እንዲያረግልን በምንድ ነው የምናሳነየው?🤔

የፆፍነውን program in to  a machine language render ማረግ ይኖርብናል፣ Luckily, the translation can be done by a computer itself, making the whole process fast and efficient.

High Programming Language ወደ machine language የምንቀይርባቸው ሁለት መንገዶች አሉ:



#1_COMPILATION - source program አንዴ translated ይሆናል (however, ይህን each time source code በተቀያየረ ቁጥር modify እናረጋለን by getting a file (e.g., an .exe file if the code is intended to run under MS Windows) machine code የያዘ ማለት ነው; then create ያረግነውን file  distribute ማረግ እንችላለን ; ይሄንን translate የሚያረግልን program  compiler ወይም translator ይባላል።

Eg of compiled languages: C, C++, C#



#2_INTERPRETATION - የአንድ written code ተጠቃሚ ሁሉ source program each time run ማረግ ሲፈልግ translateያረገዋል; ይሄንን የሚያረግልን program ደግሞ interpreter ይባላል፣ አስተርጓሚ እንደማለት ነው። ምክኒያቱ ደግሞ everytime code execute በፈለግን ቁጥር ስለሚተረጉምልን ነው። interprets the code every time it is intended to be executed;

ይህ ማለት ደግሞ source code ልክ እንዳለ distribute ማረግ አንችልም ማለት ነው፣ ምክንያቱም the end user codeኡን execute ለማረግ   አስተርጓሚ(interpreter) ያስፈልገዋል።

Eg of Interpreted languages: Python, JavaScript

Any programming language ከእነዚህ ከሁለቱ መካከል ነው የሚመደበው።

There are very few  languages that can be both compiled and interpreted. usually,  compiled programs run faster than interpreted programs.
👍18🤔2😍1
Ahun gebtewuchewal adel.....
👍6