Ask your own question, for FREE!
Computer Science 8 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!
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!