Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Please write c++ code based on below instructions and meet all the requirements. Please enter the below inputs to get the same outputs in the
Please write c++ code based on below instructions and meet all the requirements. Please enter the below inputs to get the same outputs in the screenshot. THANKS!!!
Use the input file below to get the same outputs as are in the screenshot.
--------------------------------------------------
# 1100 1 Scotty 01/11/2100 Enterprise 3 01/11/2120 1 100 01/21/2120 2 200 01/15/2120 3 50 # 1200 2 Kirk 02/12/2200 Enterprise Mr. Spock 03/13/2300 Galaxy Way 2 02/15/2320 3 100 02/11/2320 1 200 # 1300 3 H Solo 04/14/2400 Millenium Falcon Chewbacca 05/15/2500 Chewy's home C-3PO 06/16/2600 Milky Way 3 03/16/2630 2 500 03/11/2620 1 300 03/12/2620 3 200
-----------------------------------------------------
HW9 (Graded out of 100) Your program will read from an input file that contains account records. Each account record starts with a delimiter, which is the character, followed by the account number, followed by the number of owners, followed by one or more owner records (there is one record for each owner), followed by the number of transactions, followed by one or more transaction records (there is one record for each transaction). An owner record consists of the owner's name followed by the owner's DOB in mm/dd/yyyy format, followed the owner's address. A transaction record consists of the transaction date, followed by the transaction type (1 for account creation, 2 for deposit, and 3 for withdrawal) followed by the amount. The various fields are separated by a white space, except for the owner's name and address, which are surrounded by a new line. Below is an example of account record. The // comments are added for clarification, but are not part of the file contentStep 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