Sunteți pe pagina 1din 3

LANTANO, KELSEY 

201811884
start

Problem # 1

Create a pseudocode and flowchart that will show the steps on Display Facebook 
how to post a status in Facebook.  The post must include account home page
description in text, pictures, tagging of friends and checking-in
of a location.

Input text in publisher


Pseudocode
PROGRAM post a status on Facebook

1. Start NO
text inserted?
2. Display Facebook account homepage

3. Prompt user to enter text in publisher (part of Facebook where


you can post your status)  YES

4. While text not inserted  input pictures in


       4.1. input text publisher
       4.2. EndWhile

5. Prompt user to enter pictures in publisher

6. While pictures not inserted 


NO pictures
       6.1. input pictures
       6.2. EndWhile inserted?

7. Prompt user to tag friends on the status


YES
8. While friends not tagged
      8.1. tag friends Tag friends 
      8.2. EndWhile on status

9. Prompt user to check-in of a location

10. While location not checked-in 


      10.1. Check-in a location
NO Friends
      10.2. EndWhile
tagged?
11. Prompt user to post the status

12. Display the user's post YES

13. End
Check-in
a location

NO Location
checked-in?

YES

Post

Display Post

End
LANTANO, KELSEY 
201811884
Problem # 2

Ramshewak goes to market for buying some fruits and


vegetables. He has $500 with him.  From a shop he purchases
2.0 kg Apple priced $50.0 per kg, 1.5 kg Mango priced $35.0
per kg, 2.5 kg Potato priced $10.0 per kg, and 1.0 kg Tomato
priced $15 per kg. He gives $500 to the shopkeeper. Find out
the amount shopkeeper will return to Ramshewak. and also tell
start the total price of the items he purchased.

Total = 0

Pseudocode
PROGRAM find out the amount returned and the total
YES price of the items purchased
add the total
Input Quantity
price of an item? 1. Start

2. Total = 0
NO
3.While adding the price of an item
             3.1. Input Quantity
Input Price              3.2. Input Price
Output Total
             3.3. Price = Quantity * Price_per_kg
             3.4. Total = Total +Price
4. Endwhile

5. Display Total
Input Cash Amount Price = Quantity * Price_per_kg
6. Input Cash Amount

7. Change = Amount - Total

8. Print Change
Change = Amount - Total 9. Stop
Total = Total + Price

Output Change

Stop
LANTANO, KELSEY 
201811884

Problem #3:

Create a pseudocode and flowchart that will show the steps on how
to display the series:

3, 6, 9, 12, 15, 18, 21, 24, 27, 30 Start

Pseudocode
X=0
PROGRAM display the series 

3, 6, 9, 12, 15, 18, 21, 24, 27, 30

1. Start

2. Count assigned 0 x +3 

3. Do
      3.1.  Add 3 to count
      3.2.  Display sum
      3.3.  Increment count
Display sum
4. While count <=30

5. End

YES
x < 30 ?

NO

End

S-ar putea să vă placă și