Question: #pragma once #include Develop the two C + + programs in the Visual Studio environment. Create a MS Word document and copy and paste the
#pragma once
#include Develop the two C programs in the Visual Studio environment. Create a MS Word document and copy and paste the code and the result of the run.
Create an Application BankApp that perform the following activities:
Request the name of the Account Owner String and Balance double using cin.
The Application must create and instances of the class BankAccount: the first instance will pass the Owner name and Balance the constructor. The second instance will pass only the name.
In order to test the second instance you will have to set your balance using the SetBalance method.
The App must invoke the functions WithDraw and Deposit from the BankAccount.
The Application must print out the Owner name, previous balance, and current balance after a withdraw, and a deposit. In order to get Owner name and Balance the Application must invoked the GetName and GetBalance method from the BankAccount class.
The class BankAccount create class in the same BankApp application must have the following requirement:
The class must have have private class variables: name String and balance double
The class will have constructors: The first constructor wont let the user enter only the name of the account owner name String the constructor will allow the Application to pass values: the Account owner name String and the Balance double
You need to develop a function Withdraw with the following: It wont return anything and it will receive as a parameter the amount to withdraw from the balance. The function must check the balance if there not enough balance a message must be send using the cout and not withdraw should be performed, otherwise the function perform the withdraw. Any Bank use cant overdraw more than dollars,
You need to develop a function call Deposit with the following: It wont return anything and it will receive as a parameter the amount to deposit to the balance. The function Deposit shouldnt let the use deposit over dollars. If the user try to deposit dollars a message must be send and not deposit should be performed, otherwise the function perform the deposit and send a message using the cout.
Develop the function SetBalance to add balance when using the constructor with only name as parameter. GetName and GetBalance to retrieve name and Balance values from BankAccount class. Dont forget both functions should return data String for the name and double for the balance These functions wont receive any parameter.
Can you show me how that would look in the three different categories? The Heater, Implementation, and the Application.
Thanks.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
