Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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