Question: Program is to do the following: Prompt user to enter amount in account in which money will be withdrawn from. Prompt user to enter amount

Program is to do the following:

  • Prompt user to enter amount in account in which money will be withdrawn from.
  • Prompt user to enter amount of first expense
  • Subtract expense from account
  • Ask user if he/she would like to enter another expense. Program DOES NOT move on to next step unless user chooses NOT to enter another expense.

If user chooses NOT to enter another expense, display the following info

  • Amount in account BEFORE expenses subtracted
  • Number of expenses entered
  • Amount in account AFTER expenses subtracted
  • (EX:) Image below provides an example of how the program execution and output should look
    Program is to do the following:Prompt user to enter amount in account

Enter starting amount in account $1000 Enter expense 1: 150 Do you want to enter another expense?tyfn} 3 Enter expense 2: 200 Do you want to enter another expense?tyfn} n amount in account before expenses subtracted $1000.0 Number of expenses entered: 2 amount in account After expenses subtracted is $ 650.0 3%))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!