Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Can someone help me with this in C++ after being done the output should look something like this Starting out With Cpp Trom This pdl
Can someone help me with this in C++
after being done the output should look something like this
Starting out With Cpp Trom This pdl Design a bank account class named Account that has the following private member variables account Number of type int owneLNartue of type 3LLinq balance of type double and the following public member functions: Account 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 Ilarue, bal) constructor with three parameters, that creates a bank account with a specified accoun 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. getAccount Number An accessor function that returns the account number. This functio is later called by the displayAccountInfo function getName An accessor function that returns the name on the account getBalance An accessor function that returns the account balance. This function is later called by the displayAccount Info functio 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 functionsStep 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