Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

IMPORTANT: Please read the instructions in their entirety before starting to write your code!Write a program that will:Get bank account information that is typed in

IMPORTANT: Please read the instructions in their entirety before starting to write your code!Write a program that will:Get bank account information that is typed in the keyboard by the user. The program should ask the user for the following pieces of information:Account NumberAccount Type ("Savings" or "Checking")Customer NameAccount BalanceDetermine the monthly fee for the account. The monthly fee is calculated in the following way:Savings account have no monthly fee.Checking accounts have a monthly fee equal to 0.1 percent of their account balance.For example, a Checking account with a balance of $15,000 has a monthly fee of $15000*.001= $15Display all of the information (including the monthly fee) for the account.Ask the user if they wish to enter information for another account.Calculate and display the total amount of money deposited in all the accounts.Apply the divide and conquer approach to your program to break the problem it solves into smaller problems. The program must contain the following methods:A method that prompts the user to input the account number, reads in the user's input and returns it.A method that prompts the user to select the account type from a menu, reads in the user's selection, and returns it. The user's selection must be validated. Only accept valid menu options.A method that prompts the user to input the customer name, reads in the user's input, and returns it.A method that prompts the user to input the account balance, reads in the user's input, and returns it. The user's input must be validated. Do not accepts negative account balances.A method that determines the monthly fee.A method that displays the account number, account type, customer name, account balance, and monthly fee.Do not create methods for asking the user if they wish to enter information for another account or for calculating and displaying the total amount of money deposited in all accounts.All variables and constants should be declared as local variables (inside of the method in which they are used).Use only what you're learned in Chapters 1-5 to solve this problem.Sample Input and OutputPlease enter the Account Number: 12345CheckingSavingsSelect an Account Type from the menu above: 1Please enter the Customer's Name: Bob DoePlease enter the Account Balance: 10000Account Number: 12345Account Type: CheckingCustomer Name: Bob DoeAccount Balance: $10,000.00Monthly Fee: $10.00Do you wish to enter information for another account? (Y/N): YPlease enter the Account Number: 54321CheckingSavingsSelect an Account Type from the menu above: 2Please enter the Customer's Name: Jane DoePlease enter the Account Balance: 575Account Number: 54321Account Type: SavingsCustomer Name: Jane DoeAccount Balance: $575.00Monthly Fee: $0.00Do you wish to enter information for another account? (Y/N): N

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database And Expert Systems Applications 31st International Conference Dexa 2020 Bratislava Slovakia September 14 17 2020 Proceedings Part 1 Lncs 12391

Authors: Sven Hartmann ,Josef Kung ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

303059002X, 978-3030590024

More Books

Students also viewed these Databases questions