Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Build a class named bank account to represent a bank account. Include the following members: Data members: 1. Name of the depositor. 2. Account number.

image text in transcribed
Build a class named bank account to represent a bank account. Include the following members: Data members: 1. Name of the depositor. 2. Account number. 3. Type of account. 4. Balance amount in the account. Member functions: 1. To assign initial values. 2. To deposit an amount. 3. To withdraw an amount after checking the balance. 4. To display the name and balance. Construct a main program in C++ to test the program. The output of the program may look like this: You have to pay RM500 to open your account You have to store at least RM100 to keep your account active Would you want to open a account???? If Yes press 1 If No press 0:0 Thank you, see again [30 Marks)

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

Information Modeling And Relational Databases

Authors: Terry Halpin, Tony Morgan

2nd Edition

0123735688, 978-0123735683

More Books

Students also viewed these Databases questions

Question

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

Answered: 1 week ago