subject

Define the class bankaccount to implement the basic properties of a bank account. an object of this class should store the following data: account holderā€™s name (string), account number (int),account type (string, checking/saving), balance (double), and interest rate (double). add appropriate member functions to manipulate an object. your program only needs to deal with one account. write a test program in c++ to illustrate how to use your class. ! as an example, a sample run should look similar to the following (realize the same functionalities): 1: enter 1 to add a new customer.2: enter 2 for an existing customer.3: enter 3 to print customerā€™s data.9: enter 9 to exit the program.1enter customer's name: zhu wangenter account type (checking/savings): checkingenter the account number you would like to use: 12345enter amount to be deposited to open account: 300enter interest rate (as a percent): 0.81: enter 1 to add a new customer.2: enter 2 for an existing customer.3: enter 3 to print customerā€™s data.9: enter 9 to exit the program.2enter account number: 123invalid customer id.1: enter 1 to add a new customer.2: enter 2 for an existing customer.3: enter 3 to print customerā€™s data.9: enter 9 to exit the program.2enter account number: 123451: enter 1 to make a deposit.2: enter 2 to withdraw.3: enter 3 to check balance.9: enter 9 to exit.1enter amount to be deposited: 201: enter 1 to make a deposit.2: enter 2 to withdraw.3: enter 3 to check balance.9: enter 9 to exit.3account holder name: zhu wangaccount type: checkingaccount number: 12345balance: $320.00interest rate: 0.80%1: enter 1 to make a deposit.2: enter 2 to withdraw.3: enter 3 to check balance.9: enter 9 to exit.2enter amount to be withdrawn: 1601: enter 1 to make a deposit.2: enter 2 to withdraw.3: enter 3 to check balance.9: enter 9 to exit.3account holder name: zhu wangaccount type: checkingaccount number: 12345balance: $160.00interest rate: 0.80%1: enter 1 to make a deposit.2: enter 2 to withdraw.3: enter 3 to check balance.9: enter 9 to exit.91: enter 1 to add a new customer.2: enter 2 for an existing customer.3: enter 3 to print customerā€™s data.9: enter 9 to exit the program.3account holder name: zhu wangaccount type: checkingaccount number: 12345balance: $160.00interest rate: 0.80%1: enter 1 to add a new customer.2: enter 2 for an existing customer.3: enter 3 to print customerā€™s data.9: enter 9 to exit the program.9

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 17:30
Who invented the tv .hint it was 2 people
Answers: 1
question
Computers and Technology, 22.06.2019 14:10
Dean wants a quick way to look up staff members by their staff id. in cell q3, nest the existing vlookup function in an iferror function. if the vlookup function returns an error result, the text ā€œinvalid staff idā€ should be displayed by the formula. (hint: you can test that this formula is working by changing the value in cell q2 to 0, but remember to set the value of cell q2 back to 1036 when the testing is complete.)
Answers: 3
question
Computers and Technology, 22.06.2019 18:00
Budgets you to do all of the following expect a) send frivolously b) avoid over spending c) gain financial independence d) examine your priorities and goals
Answers: 2
question
Computers and Technology, 23.06.2019 06:30
To become an audio technician, the most successful tactics might include the following. (select all that apply). learning how to persuade other people gaining different types of experience in audio technology learning as much as possible about art history establishing a reputation as a reliable professional
Answers: 1
You know the right answer?
Define the class bankaccount to implement the basic properties of a bank account. an object of this...
Questions
question
Mathematics, 04.12.2020 18:40
question
Chemistry, 04.12.2020 18:40
question
Mathematics, 04.12.2020 18:40
question
Mathematics, 04.12.2020 18:40
question
Mathematics, 04.12.2020 18:40
question
Mathematics, 04.12.2020 18:40