Question: write a java code to Prompt the user with the following prompts exactly as shown ( without the dashed lines ) . Enter the number

write a java code to Prompt the user with the following prompts exactly as shown (without the dashed lines). Enter the number of your desired transaction type. Balance Deposit Withdrawal Quit Enter choice: GUIDELINES FOR HANDLING EACH MENU CHOICE: If a balance is requested (#1), the program should output "Your current balance is $X.XX" where X.XX is the value of balance, and then stop. If a deposit is requested (#2), prompt the user to enter the amount of the deposit (use a double for this). Add the deposit amount to the balance and then print "Your current balance is $X.XX" where X.XX is the balance after the deposit, and then stop. If a withdrawal is requested (#3), prompt the user to enter the amount of the withdrawal (use a double for this). If the proposed withdrawal amount is less than or equal to the balance, calculate the balance then print Your current balance is $X.XX where X.XX is the balance after the withdrawal, and then stop. If the proposed withdrawal amount exceeds the balance, print "Insufficient funds. Your current balance is $X.XX" where X.XX is the unchanged balance, and then stop. If "Quit" is requested (#4), the program should print "Good-bye." and then stop. If a number other than 1,2,3, or 4 is received, output "Invalid menu choice." and then stop. NO LOOPING IN THIS ASSIGNMENT

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 Databases Questions!