Answered step by step
Verified Expert Solution
Question
1 Approved Answer
q1- You need to write a loop that will allow the user to continue spending money until they reach a balance of 0 or they
q1- You need to write a loop that will allow the user to continue spending money until they reach a balance of 0 or they want to stop spending money. Using the following pseudocode to start with, how would you write the condition of the loop? declare user_answer as string declare balance as float until user_answer == 'quit' or balance <=0 until balance <= 0 until user_answer == 'quit' while user_answer != 'quit' or balance >=0
q2-The body of a pre-test loop is always executed at least once. True False
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started