Forwarded from C++ Basic 2018 (Batch-2)
To excel in questions like this, you should first understand the problem.
โโ Algorithm Representation
An algorithm can be represented using both flowcharts and pseudocode.
โข Flowchart: This represents the algorithm using various shapes:
โ Oval for Start/End
โ Rectangle for Operations
โ Parallelogram for Input/Output
โ Diamond for Decision-making
โข Pseudocode: This represents the algorithm using text-based instructions, similar to English words.
โHint
To compare three numbers, we should first accept input from the user.
โPseudocode
Flowchart
1. Start: Use an oval shape to represent the start of the process.
2. Input: Use a parallelogram to indicate where the user inputs three numbers (X, Y, Z).
3. Decision (Diamond): Use a diamond shape for the first comparison (Is X > Y?).
โ Yes: If true, go to another decision diamond (Is X > Z?).
โช Yes: Print "X is the largest" (parallelogram).
โช No: Print "Z is the largest" ( parallelogram).
โ No: Go to the next decision diamond (Is Y > Z?).
โช Yes: Print "Y is the largest" (parallelogram).
โช No: Print "Z is the largest" (parallelogram).
4. End: Use an oval shape to represent the end of the process.
@ProgrammingWithFaith2018
โโ Algorithm Representation
An algorithm can be represented using both flowcharts and pseudocode.
โข Flowchart: This represents the algorithm using various shapes:
โ Oval for Start/End
โ Rectangle for Operations
โ Parallelogram for Input/Output
โ Diamond for Decision-making
โข Pseudocode: This represents the algorithm using text-based instructions, similar to English words.
โHint
To compare three numbers, we should first accept input from the user.
โPseudocode
Step 1: Start
Step 2: Input three numbers X, Y, and Z
Step 3: If X > Y then go to Step 5.
Step 4: If Y > Z then
Print "Y is the largest"
Else
Print "Z is the largest"
ENDIF
Go to Step 6
Step 5: If X > Z then
Print "X is the largest"
Else
Print "Z is the largest"
ENDIF
Step 6: Stop
Flowchart
1. Start: Use an oval shape to represent the start of the process.
2. Input: Use a parallelogram to indicate where the user inputs three numbers (X, Y, Z).
3. Decision (Diamond): Use a diamond shape for the first comparison (Is X > Y?).
โ Yes: If true, go to another decision diamond (Is X > Z?).
โช Yes: Print "X is the largest" (parallelogram).
โช No: Print "Z is the largest" ( parallelogram).
โ No: Go to the next decision diamond (Is Y > Z?).
โช Yes: Print "Y is the largest" (parallelogram).
โช No: Print "Z is the largest" (parallelogram).
4. End: Use an oval shape to represent the end of the process.
@ProgrammingWithFaith2018
โค2๐ฅ1
โ Exercise: Increment and Decrement
1. int a=5;@ProgrammingWithFaith2018
int x=++a + ++a;
cout<<x;
2. int a=5;
int b=6;
Cout<< ++a + b++;
Cout<<b;
3. int x, a, b, c;
a = 2;
b = 4;
c = 5;
x = a--+ b++ -++c;
cout<<x;
4. int x, a;
a = 2;
x = ++a *--a *++a;
cout<<x;
5. int x, a = 4;
x = ++a + ++a + ++a;
cout<<x;
โค1
โ Hint:One variable can't store two value at the same time.
1.int a=5;
int x=++a + ++a;
(6+ ++a)
(7+7) because one variable can't hold two different value , (6 and 7 ) at the same time so it become 7.
7+7=14
Answer 14
2.int a=5;
int b=6;
Cout<<++a +b++// post and pre increment .
6+6 // after this line b will be 7
Cout<<++a +b++; (6+6)
=12
Cout<<b;
=7
answer=12 and 7
3.int x,a,b,c;
a=2;
b=4;
c=5;
x=a-- + b++ - ++c;
(2+4)-6
=6-6=0
cout<<x;
Answer 0
4.int x,a;
a=2
x=++a *--a* ++a
(3*2) * ++a , but one variable can't hold two values at the same time.
So, (2*2)*++a
(4*3)=12
cout<<x;// 12
Answer 12
5.int x,a=4;
x=++a + ++a + ++a;
(++a + ++a) + ++a
(5+6) + ++a but we can't store two value at one variable at the same time.
So,
(6+6)+ ++a
(12)+ 7
Answer 19
@ProgrammingWithFaith2018
Forwarded from EduEthiopia
Media is too big
VIEW IN TELEGRAM
โจแแแฐแแ Freshman Semester แฅแ
แ แ แฃแ แแณแ แฅแ แแณแ แฅแแฐแแ แแแ
แแ :-
โ Department แซแแแจแฃแฝแ แ แฃแ แฐแ แแ แแฝแ แจแแตแแฉแต แฃ
โ Department แจแแจแฃแฝแ แฐแแ แ แฒแฑแ Environment แฐแต แ แแ แตแแต แฅแแตแตแแ แแตแ แจแแฃแญ แแแฝแ แซแแจ แฅแแฒแแ แจแแณแฐแญแแ แต แแณแ แดแแตแฐแญ แแ แข
๐แแ แ แญแแน แจแฅแ แแญ แ แแแซแฝแ แแญแณ แฅแ แแแญ แณแแแแฝแ ๐
แ EduExams second semester package แแ แแ แฅแแแแแ?
แจแแณแแแธแ course'แถแฝ
๐Communication English skill ll
๐Civics and moral education
๐ Biology
๐ Chemistry
๐ History
๐Anthropology
๐Emerging technology
๐Applied mathematics I
๐Entrepreneurship
โก๏ธแแ แฅแแแแแ แซแแน แฐแแ ๐ค
๐Last year exams from all universities with detailed explanation
๐Clear notes in each chapters
๐๏ธShort notes(Module แ แแแ แแแจแณแต)
๐๏ธMind maps(แจแปแแฐแฉแ แแญแแญ แแณแฅ แ แแแ แแแซแ)
๐๏ธAnki cards( for memory boost๐คฏ)
๐๏ธExam cheats(แแฝแแฐแณ แจแแแ แ แคแฌแซ)
๐๏ธBullet points(แ แปแแฐแฉ แแตแฅ แแ แแ แฐแณแทแ?)
แแแแแแฅ แญแแแ bot แญแ แแ
@EduExams_bot
แแฐแจแแช แแจแ แจYou Tube แปแแแฝแแ แแจแต แตแฝแแแฝแแข Edu Ethiopia
โ Department แซแแแจแฃแฝแ แ แฃแ แฐแ แแ แแฝแ แจแแตแแฉแต แฃ
โ Department แจแแจแฃแฝแ แฐแแ แ แฒแฑแ Environment แฐแต แ แแ แตแแต แฅแแตแตแแ แแตแ แจแแฃแญ แแแฝแ แซแแจ แฅแแฒแแ แจแแณแฐแญแแ แต แแณแ แดแแตแฐแญ แแ แข
๐แแ แ แญแแน แจแฅแ แแญ แ แแแซแฝแ แแญแณ แฅแ แแแญ แณแแแแฝแ ๐
แ EduExams second semester package แแ แแ แฅแแแแแ?
1. แPre- engineering
2. แOther natural
3. แOther social
4. แPre health
แจแแณแแแธแ course'แถแฝ
๐Communication English skill ll
๐Civics and moral education
๐ Biology
๐ Chemistry
๐ History
๐Anthropology
๐Emerging technology
๐Applied mathematics I
๐Entrepreneurship
โก๏ธแแ แฅแแแแแ แซแแน แฐแแ ๐ค
๐Last year exams from all universities with detailed explanation
๐Clear notes in each chapters
๐๏ธShort notes(Module แ แแแ แแแจแณแต)
๐๏ธMind maps(แจแปแแฐแฉแ แแญแแญ แแณแฅ แ แแแ แแแซแ)
๐๏ธAnki cards( for memory boost๐คฏ)
๐๏ธExam cheats(แแฝแแฐแณ แจแแแ แ แคแฌแซ)
๐๏ธBullet points(แ แปแแฐแฉ แแตแฅ แแ แแ แฐแณแทแ?)
แ แแแ แ แแแแแฅ แจแแ แณแแ แฅแตแ แฐแฐแแ แญแแแกแก
แแแแแแฅ แญแแแ bot แญแ แแ
@EduExams_bot
แแฐแจแแช แแจแ แจYou Tube แปแแแฝแแ แแจแต แตแฝแแแฝแแข Edu Ethiopia
๐ฅ3โค1
๐ข Quick personal tip for Telegram channel ownersโฆ
I recently found **Inside Ads** โ itโs a smart tool for **growing your channel** and **monetizing it** without the usual headache. ๐ก
If youโre trying to reach more people *and* start earning from your channel, you should check it out here ๐๐๐
https://t.me/InsideAds_bot/open?startapp=r_1876122021
I recently found **Inside Ads** โ itโs a smart tool for **growing your channel** and **monetizing it** without the usual headache. ๐ก
If youโre trying to reach more people *and* start earning from your channel, you should check it out here ๐๐๐
https://t.me/InsideAds_bot/open?startapp=r_1876122021
โค2
Forwarded from Adam Seid
Interested in learning crochet? ๐งถ
Join our amazing training session at Creative Hub Jimma and start creating beautiful handmade designs!
๐ Start Date: April 13, 2026 ๐ Shift 1: Monday & Tuesday ๐ Shift 2: Friday & Saturday
Register now using the Google Form below ๐
https://forms.gle/JBRRHr6eYQudV9nk8
Join our amazing training session at Creative Hub Jimma and start creating beautiful handmade designs!
๐ Start Date: April 13, 2026 ๐ Shift 1: Monday & Tuesday ๐ Shift 2: Friday & Saturday
Register now using the Google Form below ๐
https://forms.gle/JBRRHr6eYQudV9nk8
โค1๐ฅ1
Forwarded from C++ Basic 2018 (Batch-2) (โFaithโ)
To register for the premium class of C++, ๐ [@ProgrammingWithFaith_bot] ๐
โค2
Forwarded from C++ Basic 2018 (Batch-2) (โFaithโ)
๐๐ C++ variables แฅแแดแต declare แฅแ initiate แแตแจแ แฅแแฝแแแ๐คทโโ
แ แแแแชแซ variable แแแต แฐแแแแญ แแแต แฒแแ แฐแแแแญ แซแฐแแแ แ แฐแแแแซแฝแ แแตแฅ แซแแแ แแ(value) แ แแแแ แฐแ แต แแแซแจแญ แตแแแแฝแ แแแข
๐ก Variable declaration
แญแ แแแต แฐแแแแฉแ(variable) แแแ (declare) แฒแแ แฐแแแแญแ แแแตแจแต แฅแ แแแ แจแแแฝแแแ แฅแแฐแแจแฐแแ แแ
data type variable name ;
แแณแ:-
1
Datatype๐ int variable name๐ age;
2
Int salary;
๐แฅแแ แแญ salaryแ แ แแ แแ แแญแ declare แ แฐแจแแแ แแแต แแแข
........loading
To register for the premium class of C++, ๐ [@ProgrammingWithFaith_bot] ๐
แ แแแแชแซ variable แแแต แฐแแแแญ แแแต แฒแแ แฐแแแแญ แซแฐแแแ แ แฐแแแแซแฝแ แแตแฅ แซแแแ แแ(value) แ แแแแ แฐแ แต แแแซแจแญ แตแแแแฝแ แแแข
๐ก Variable declaration
แญแ แแแต แฐแแแแฉแ(variable) แแแ (declare) แฒแแ แฐแแแแญแ แแแตแจแต แฅแ แแแ แจแแแฝแแแ แฅแแฐแแจแฐแแ แแ
data type variable name ;
แแณแ:-
1
Datatype๐ int variable name๐ age;
2
Int salary;
๐แฅแแ แแญ salaryแ แ แแ แแ แแญแ declare แ แฐแจแแแ แแแต แแแข
........loading
To register for the premium class of C++, ๐ [@ProgrammingWithFaith_bot] ๐
Telegram
Programming With Faith
Programming With Faith empowers individuals to learn programming with dedication, creativity, and strong values.
โค3
Forwarded from Self Taught Developers (โFaithโ)
AI Powered FullStack Application Development Class
แจแแแฅแแ แญแแต แจแแณแฝแ May 22, 2026 แญแแแซแ
----------
แแ แแจแ แจแซแแ แชแฒแฎแ แแแญ:
https://www.youtube.com/watch?v=2WFqX-LXZRg
แแแแแแฅ แฒแแตแ (แจแแฅแณแญแณแฝแ แแแญ)
https://www.evangadi.com/
แแ แแ แแจแ แ แแ แตแแญ แแฅแญ แญแฐแแแแ
202-386-2702
@SelfTaughtDev1
แจแแแฅแแ แญแแต แจแแณแฝแ May 22, 2026 แญแแแซแ
----------
แแ แแจแ แจแซแแ แชแฒแฎแ แแแญ:
https://www.youtube.com/watch?v=2WFqX-LXZRg
แแแแแแฅ แฒแแตแ (แจแแฅแณแญแณแฝแ แแแญ)
https://www.evangadi.com/
แแ แแ แแจแ แ แแ แตแแญ แแฅแญ แญแฐแแแแ
202-386-2702
@SelfTaughtDev1
YouTube
Next class will start on May 22, 2026 | AI Powered Full Stack Application Development
Next class will start on May 22, 2026:
(AI Powered Full Stack Application Development Class)
--------------------------------------------------
To Register:
https://www.evangadi.com/
To contact us:
USA: 202-386-2702
Ethio: +251 970 34 30 70
แจแ แแ โฆ
(AI Powered Full Stack Application Development Class)
--------------------------------------------------
To Register:
https://www.evangadi.com/
To contact us:
USA: 202-386-2702
Ethio: +251 970 34 30 70
แจแ แแ โฆ
โค2
Forwarded from C++ Basic 2018 (Batch-2) (โFaithโ)
$30โ$70/day from tiny Twitter tasks-real results. Analysis of 4,200 microtask workers shows consistent pay at that range when you follow simple scripts. Fast setup. Low skill. Repeatable cash.
See the exact task flow and scripts we used to hit $50/day in week 1. Step-by-step screen clips + checklist inside. Move now - momentum pays.
Get the walkthrough and start submitting today: Get the System
Proof included. Try it tonight.
#ad๐ข InsideAds Free Subscribers
See the exact task flow and scripts we used to hit $50/day in week 1. Step-by-step screen clips + checklist inside. Move now - momentum pays.
Get the walkthrough and start submitting today: Get the System
Proof included. Try it tonight.
#ad
Please open Telegram to view this post
VIEW IN TELEGRAM
โค1
โญ๏ธ Launch the TickBit AI agen: $30 welcome bonus and passive USDT income in one click
๐No investment required
๐Profit every second
๐Automatic withdrawals from $0.1
๐Income 24/7
โผ๏ธLAUNCH AND RECEIVE 30 USDTโผ๏ธ
#ad๐ข InsideAd
๐No investment required
๐Profit every second
๐Automatic withdrawals from $0.1
๐Income 24/7
โผ๏ธLAUNCH AND RECEIVE 30 USDTโผ๏ธ
#ad
Please open Telegram to view this post
VIEW IN TELEGRAM
โค1