Question: C++ help: (read/write to a sequential file practice) In this lab exercise, you will write bank accounts info into a sequential file, and read/print bank
C++ help:
(read/write to a sequential file practice) In this lab exercise, you will write bank accounts info into a sequential file, and read/print bank accounts info from the sequential file Get the accounts information from users' inputs including Account type, account id, account name, balance, and duration. Read from the sequential file, and print out the account information in a table format. Use enum to define, 1 - SAVING ACCOUNT 2 - CHECKING ACCOUNT 3 - CDACCOUNT . Sample output Enter the account type 1 Saving Account, 2 - Checking Account, 3 CD Account), account ID, name, initial balance ($) and duration (months, for Saving and Checking Account): Enter end-of-file to end input. 1 1001 GreenArrow 2000e ?2 1882 RedFlash 1508 3 1003 Snowwhite 3000 15 ?2 1004 SuperMan 2000 1 1005 SuperGirl 5000 e 2 1806 CaptainHook 1000 e 3 1007 RobinHood 6000 12 3 1008 PeterPan 6666 6 Account ID Account Name Balance($) Duration CHECKING_ACCOUNT RedFlash SuperGirl 1006 CaptainHook PeterPan Program ended with exit code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
