Question
For C++ First question Parkville Bank is a full-service bank that has decided to computerize its banking processes. One object needed is a BankAccount. Develop
For C++
First question Parkville Bank is a full-service bank that has decided to computerize its banking processes. One object needed is a BankAccount. Develop a struct so that it contains public data fields that hold the int account number and double account balance. (In later chapters, you will convert BankAccount to a class and learn to make these data fields private.) Write a main() function that declares a BankAccount and allows you to enter data value for the BankAccount fields. Echo the input. Save the file as BankAccountc.pp.
In chapter 1 you developed a BankAccount structure for Parkville Bank. The structure contains two public fields for the integer account number and double account balance. Using the same structure, write a main()function in which you create two BankAccount objects. Add statements to the main()function to do the following:
Prompt the user for account numbers and beginning balances for the two BankAccounts. When testing your program, use four-digit account numbers, but the program does not have to enforce the rule.
Complete each account number by adding a check digit that is the remainder when the account number is divided by 5. Prompt the user for a dollar amount to be transferred from the first account to the second account.
Display the full account numbers (including check digits) and starting balances for the two accounts, then display the ending balances after the transfer amount has been deducted from the first account and added to the second
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