Answered step by step
Verified Expert Solution
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 percent of their account balance.For example, a Checking account with a balance of $ has a monthly fee of $ $Display 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 itA 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 itA 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 usedUse only what you're learned in Chapters to solve this problem.Sample Input and OutputPlease enter the Account Number: CheckingSavingsSelect an Account Type from the menu above: Please enter the Customer's Name: Bob DoePlease enter the Account Balance: Account Number: Account Type: CheckingCustomer Name: Bob DoeAccount Balance: $Monthly Fee: $Do you wish to enter information for another account? YN: YPlease enter the Account Number: CheckingSavingsSelect an Account Type from the menu above: Please enter the Customer's Name: Jane DoePlease enter the Account Balance: Account Number: Account Type: SavingsCustomer Name: Jane DoeAccount Balance: $Monthly Fee: $Do you wish to enter information for another account? YN: N
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started