Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Thank you so much ! Text input : Design a bank account class named Account that has the following private member variables: account Number of

Thank you so much ! image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
Text input :
image text in transcribed
Design a bank account class named Account that has the following private member variables: account Number of type int ownerName of type string balance of type double and the following public member functions: Account 0 constructor with no arguments, that creates a bank account with a default account Number as 9999, a name of an empty string, and balance value of zero. An Account object is dynamically allocated Account (number name, bal) constructor with three parameters, that creates a bank account with a specified accountNumber, name and balance. An Account object is dynamically allocated withdraw (amount) function to withdraw a specified amount from the account. The function should first check if there is sufficient balance in the account. If the balance is sufficient, withdrawal is processed. Otherwise the withdrawal is not made. deposit (amount) function to deposit a specified amount of money to the account. The function should first check if the deposit amount is positive. If it is positive, deposit is processed. Otherwise the deposit is not made. get Account Number An accessor function that returns the account number. This function is later called by the displayAccount Info function. getName An accessor function that returns the name on the account. get Balance An accessor function that returns the account balance. This function is later called by the displayAccountInfo0 function. Demonstrate the class in a program. 1. Additional Requirements a) What to turn in Your code should be structured into the following files: Account.h which contains the class definition and the function prototypes of all the member functions Account.cpp which contains the function description of all the member functions Main.cpp file which contains the main function

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

Oracle Database 11g SQL

Authors: Jason Price

1st Edition

0071498508, 978-0071498500

More Books

Students also viewed these Databases questions

Question

What are perceptual errors and how can they influence perception?

Answered: 1 week ago

Question

Define the term intellectual property and describe its importance.

Answered: 1 week ago

Question

How do Excel Pivot Tables handle data from non OLAP databases?

Answered: 1 week ago