Answer to Question #210975 in Programming & Computer Science for Avinash Jammula

Question #210975

Please draw a flow-chart/ pseudo code on the task, 'You go to a shop, purchase some fruits and return back to home'


1
Expert's answer
2021-06-27T14:11:46-0400
 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

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS