Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
image text in transcribed
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

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

Graph Database Modeling With Neo4j

Authors: Ajit Singh

2nd Edition

B0BDWT2XLR, 979-8351798783

More Books

Students also viewed these Databases questions

Question

(1 point) Calculate 3 sin x cos x dx.

Answered: 1 week ago

Question

1. Identify what positions are included in the plan.

Answered: 1 week ago

Question

2. Identify the employees who are included in the plan.

Answered: 1 week ago