Ask your own question, for FREE!
Computer Science 18 Online
OpenStudy (anonymous):

Write a program that would resemble a checkbook register that will ask for input, both deposits and debits, and keep a running total in that person’s bank account. That total would be given upon request of the user.

OpenStudy (anonymous):

In what language?

OpenStudy (anonymous):

If your coding in Java. Use a switch to create a user menu. For input, import the Scanner class from java.util.Scanner; Create a scanner object and have the take in all user input. You can have that input stored into appropriate variables, (use double type, since your dealing with dollar amounts). The running total should be another variable which should be default set to 0.00. After every transaction, you have that variable updated to keep a log of the total amount. As for printing out the total amount in the account as per user request, just create a menu option such as "Enter 4 to view your current balance". Good luck.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Latest Questions
Breathless: Spooky witch but cute
6 hours ago 3 Replies 0 Medals
Arriyanalol: help
6 hours ago 10 Replies 2 Medals
Arriyanalol: @tinydinoUwU stop trying to find a argument u blad lil boy
1 day ago 5 Replies 4 Medals
Jaded012023: Please tell me what you all think of this song
9 hours ago 6 Replies 1 Medal
Arriyanalol: bro how
9 hours ago 2 Replies 3 Medals
Arriyanalol: cant wait for the new bluey movie in 2027
1 day ago 12 Replies 2 Medals
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!