Question: Write the Code: We are going to create a checking account and gather information about it . in int main ( ) Create an instance
Write the Code:
We are going to create a checking account and gather information about it
in int main
Create an instance of the Account struct called checking
Ask the user for
account ID
users first and last names
beginning balance
and store those values in the struct. NOTE:: you do NOT need to create temporary variables, you can cin directly into the struct.
Push back instances of the Transaction struct onto the transactions vector.
For each one ask the user for the month, day and year for the transaction and using checking.transactions.backdate set the date of the transaction
youll need to check that the month is between and the day is between and and the year is between and the current year.
also ask the user for the description and amount for each transaction
NOTE:: again, you can cin directly to the struct. No need for temp variables!
Output a transaction list onto the console. Make it look neat! You do not need to use any loops. You can just repeat the code.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
