Question 8: Looping
Draw a diagram for a program that:
Flow-chart diagram :
Pseudocode:
Step1: Create a variable called balance, set it to 100
Step2: Check if balance is greater than 0
Step3: Ask the user, "how much to withdraw?"
Step4: Store user's answer in a variable called withdraw
Step5: Subtract withdraw an amount from the balance
Step6: Once the balance is 0 or lower...
Step7: Display message, "out of money"
Get Answers For Free
Most questions answered within 1 hours.