Question: Introduction In this assignment you will write a small C++program. Your program should compile correctly and produce the specified output. Please note that the computer

 Introduction In this assignment you will write a small C++program. Your
program should compile correctly and produce the specified output. Please note that
the computer program should comply with the commenting and formatting rules as

Introduction In this assignment you will write a small C++program. Your program should compile correctly and produce the specified output. Please note that the computer program should comply with the commenting and formatting rules as has been done in class. For example, there should be a header for the whole program that gives the author's name, class name, date, and description. End braces should be commented, and there are alignment and indenting requirements as discussed. Please ask if you have any questions. Program #1 Create a C++project to do implement a simplified functionalities of a Banking scheme Step 1: 30 points) Create a header file Bank.h to define a Bank class with the following members: Data members: The program should implement data hiding, so please define data members accordingly -int ccount Number -double balance -char owner Note: The owner means the full name (first and last name. Member functions: Include only the declaration (prototype) of the member functions in the header file. The implementation of member functions will later be done in the Bank.cpp file Bank) constructor with no arguments to create a bank account with a default accountNumber as 9999 and balance value of zero Bank (param1, param2) constructor with two parameters to create a bank account with a specified accountNumber and balance (as param1 and param2, respectively), set the owner data member to nullptr -withdraw (param1) function to withdraw a specified amount (param1) 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 display a message to the user that says "Insufficient balance." and withdraw his complete balance so that balance becomes zero

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!