Please draw a flow-chart/ pseudo code on the task, 'You go to a shop, purchase some fruits and return back to home'
Start
Go to the shop
While necessary fruits is not added into the basket do
Find the fruit
If the fruit exist then
Check the price
If the price is suitable then
Weigt the fruit
Add the fruit to the basket
end if
End if
End while
Go to the cashier
If you need a bag
Get a bag
End if
Check the discount
Pay for the fruits
If change more than zero then
Receive a change
End if
Put all fruits into the bag
Back to home
Stop
Comments
Leave a comment