Professional Documents
Culture Documents
PPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPP
PPPPPPPPPPPPPPPPPPPP
Analyse the problem, write algorithm, and draw a flowchart for the problem for logging onto Gmail
account and checking your mails
Algorithm
step 1: Start Start
step 2: click Gmail Website
step 3:click Logn in
step 4:enter e-mail or phone Number and password Gmail Website
step 5: e-mail and Password Valid ? If the answer is No go to step 3
If the answer is Yes go to step 6
step 6: loged in to the system
Log In
step 7: End
e-mail and
Password
Valid?
Yes
Loged In To The
system
End
20. Prublem Add 10 and 20. Analyse the problem‘ write the algorithm, draw a flowchart and write C ++
code for this problem
Algorithm
Step 1:Start
Step 2:Declare a,b&c.
Step 3:Read a&b.
Step 4:c=a+b.
Step 5:Display c.
Step 7:Stop
C++ code
#include<iostream>
int a,b;
cin>>b;
a=a+b
a=(a+b);
return 0; }
Display a
pseudocode
Stop
Q3
21. Print Hello World 10 times. This problem is also solved using the loop concept. We take a variahle
count and set it to zero. Then we print "Hello World" and incrcincnt count by l. Analyse the problem.
write the algorithm, draw a flowchart and write C++ code?
Algorithm Flowchart
Step 1:Start
Step 2:Execute initialize statement. Start For Loop
Step 3:Check the condition If the condition is false, go to step 6..
Step 4:Execute statement(s).
Step 5:Execute update statement. Go to step 2.
Step 6:Stop.
Enitialization
code
#include<iostream>
return 0; }
pseudocode
Start
Open Facebook
app
Log in
Is Username
Yes No
Display and Password Log in error
Account Correct ?
Stop
23. Write algorithm and draw a flowchart t Flowchart
create Gmail account
Start
step 1: Start.
step 2: click Gmail Website.
step 3:user click Create Account.
step 4:user click for Myself Option. Gmial Website
step 5: Enter your First Name and Last Name.
step 6: choose your Gmail Address.
step 7: Create a Strong Password.
step 8: click skip or add recovery phone number. Create Account
step 9: loged in to the system.
step 10: End.
For
MySelf
Create a Strong
Password
Add Recovery
Phone number
Skip
to account or Added to phone
skip number
Stop