Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The purpose of this assignment is to get you familiar with Streams and File You is to goal to to create a simple bank database

image text in transcribed
The purpose of this assignment is to get you familiar with Streams and File You is to goal to to create a simple bank database (file) where el the individual accounts are stored to a file. The following data should be stored corresponding to each account: Account Number an integer number (must be unique for every account) Name two words corresponding to the first and last name Balance: a float point number Your program should provide a menu of options that allow performing any of the following operations Add an account Delete an account. Search for an account by account number and display the account Into. Make a withdrawal Make a deposit Transfer money from one account to another List all accounts Your program should be coded in a way such that all previous changes are written to the file before any new operations are performed. Your program must be able to handle the following abnormal situations: for add an account option, if an existing account number is entered. the program should respond with a message and no new account should be created for delete an account option, if the account number could not be found, a message should be displayed and no account should be deleted for withdrawal operation. If the account number does not exist or the balance is not sufficient, a message should be displayed and no changes should be made to the database for deposit operation, if the account number does not exist, a message should be displayed and no changes should be made to the database for transfer operation, if the source account number or the destination account number does not exist, or the balance of the source account is not sufficient, a message should be displayed and no changes should be made to the database Please ask the instructor if any part of the assignment is not clear. State your assumptions dearly. Document your code properly. Check and handle all error conditions related to file I/O and logical errors related to account operations (e.g. overdraws). You must state clearly your team members at the beginning of the program. Upload your source code files (.cpp and .h) using canvas. One team just needs to make one submission

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