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 # the program should output "Your current balance is $XXX where XXX is the value of balance, and then stop. If a deposit is requested # 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 $XXX where XXX is the balance after the deposit, and then stop. If a withdrawal is requested # 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 $XXX where XXX is the balance after the withdrawal, and then stop. If the proposed withdrawal amount exceeds the balance, print "Insufficient funds. Your current balance is $XXX where XXX is the unchanged balance, and then stop. If "Quit" is requested # the program should print "Goodbye." and then stop. If a number other than or 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
