0% found this document useful (0 votes)
1K views5 pages

PPPPPPPPPPPPPPPPPPPP

The document describes an algorithm and flowchart for logging into a Gmail account and checking emails. The algorithm has 7 steps: 1) Start, 2) Click the Gmail website, 3) Click log in, 4) Enter email/phone and password, 5) Check if email and password are valid, 6) If valid, log in to the system, 7) End. The flowchart has the same steps as the algorithm, with logic gates to check if the email and password are valid before logging in or going back to re-enter them.

Uploaded by

Daniel Kasaye
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views5 pages

PPPPPPPPPPPPPPPPPPPP

The document describes an algorithm and flowchart for logging into a Gmail account and checking emails. The algorithm has 7 steps: 1) Start, 2) Click the Gmail website, 3) Click log in, 4) Enter email/phone and password, 5) Check if email and password are valid, 6) If valid, log in to the system, 7) End. The flowchart has the same steps as the algorithm, with logic gates to check if the email and password are valid before logging in or going back to re-enter them.

Uploaded by

Daniel Kasaye
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

19.

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

Enter e-mail/Phone number


and Password
No

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>

using namespace std; Start


int main (){

int a,b;

cout << " input number 10 : "; Read a&b


cin>>a;

cout << " input number 20 : ";

cin>>b;
a=a+b
a=(a+b);

cout << " The result is 10 + 20 = "<<a ;

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>

using namespace std; true


Condtion
int main (){

int i; False true Update


for(i=1;i<=10;i++){

cout<<"Hello World"<<endl; } Statement(s)

return 0; }

pseudocode

Stop for loop

22. Draw a flowchart and write the algorithm to log in


Algorithm
step 1: start.
step 2: open your facebook app.
step 3:user click fb log in account.
step 4:input email address or phone number and password.
step 5:Is Username and password is correct?
If the answer is No. Log in error . go back and to step4
If the answer is yes go to next step.
step 6: display account .wellcom to you facebook account.
step 7: stop.

Start

Open Facebook
app

Log in

Enter Phone Number


and Password

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

Enter First Name


And Last Name

Choose your Gmail


Address

Create a Strong
Password

Add Recovery
Phone number
Skip
to account or Added to phone
skip number

Be ged is the system

Stop

You might also like