Answer to Question #283582 in Programming & Computer Science for salem

Question #283582

Draw a flow diagram for an algorithm which calculates how much money a student will need per week to buy a meal and two drinks each weekday. The user should be prompted to enter how much a meal costs, how much a drink costs, and then calculate and display the total required.


1
Expert's answer
2021-12-29T13:37:03-0500




Declare Real mealCosts
Declare Real drinkCosts
Declare Real totalRequired


Display "Enter how much a meal costs: "
Input mealCosts
Display "Enter how much a drink costs: "
Input drinkCosts
Set totalRequired = mealCosts + drinkCosts
Display "The total required: ", totalRequired

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