Answered step by step
Verified Expert Solution
Link Copied!

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 3 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.back().date set the date of the transaction
youll need to check that the month is between 1 and 12, the day is between 1 and 31, and the year is between 1970 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Oracle Solaris 11 System Administration

Authors: Bill Calkins

1st Edition

0133007170, 9780133007176

More Books

Students also viewed these Databases questions

Question

Be familiar with the integrative servicescape model.

Answered: 1 week ago

Question

Determine the roles of spatial layout and functionality.

Answered: 1 week ago