anonymous
  • 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.
Computer Science
  • Stacey Warren - Expert brainly.com
Hey! We 've verified this expert answer for you, click below to unlock the details :)
SOLVED
At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi, id est laborum et dolorum fuga. Et harum quidem rerum facilis est et expedita distinctio. Nam libero tempore, cum soluta nobis est eligendi optio cumque nihil impedit quo minus id quod maxime placeat facere possimus, omnis voluptas assumenda est, omnis dolor repellendus. Itaque earum rerum hic tenetur a sapiente delectus, ut aut reiciendis voluptatibus maiores alias consequatur aut perferendis doloribus asperiores repellat.
schrodinger
  • schrodinger
I got my questions answered at brainly.com in under 10 minutes. Go to brainly.com now for free help!
anonymous
  • anonymous
In what language?
anonymous
  • 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.

Looking for something else?

Not the answer you are looking for? Search for more explanations.