Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a c++ code with the following specifications and requirements BankAccount class manages only one bank account members first and last names (separate, default N/A)

write a c++ code with the following specifications and requirements
BankAccount class manages only one bank account
members
first and last names (separate, default "N/A")
bank account number ( 7 digits, default "0000000")
available balance (default 0) - an amount that can be used right now
present balance (default 0)- amount recorded in the account, including funds not yet available
mutator function setAccount() to set all member variables
accessor function to return a bank account object as a string ( to_String()), for example, " Mary Lee 1000099 87.65 300.00"
main()
a menu with the following options
print all bank records as a well-formatted table with headings, including pending amount; if the pending amount is zero, print "-"; for example,
First Name Last Name Account Number Available Balance Present Balance Pending Amount
Mary Lee 1000099 87.65 300.00 212.35
John Smith 1001239 1887.30 1887.30 -
exit
input file
No validation is needed; assume all records are valid
The file does not have a header row
The number of records in the input file is unknown
Record structure (in that order)
First_Name Last_Name Account_Number Available_Balance Present_Balance
Mary Lee 1000099 87.65 300.00

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_2

Step: 3

blur-text-image_3

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

Databases DeMYSTiFieD

Authors: Andy Oppel

2nd Edition

0071747990, 978-0071747998

More Books

Students also viewed these Databases questions

Question

How can market research benefit entrepreneurs when starting up?

Answered: 1 week ago

Question

Describe the factors influencing of performance appraisal.

Answered: 1 week ago

Question

What is quality of work life ?

Answered: 1 week ago

Question

What is the purpose of the Salary Structure Table?

Answered: 1 week ago

Question

What is the scope and use of a Job Family Table?

Answered: 1 week ago