Instructions Define the class bankAccount to store a bank customer’s account number and balance. Suppose that account number is of type int, and balance is of type double. Your class should, at least, provide the following operations: set the account number, retrieve the account number, retrieve the balance, deposit and withdraw money, and print account information. Add appropriate constructors. Every bank offers a checking account. Derive the class checkingAccount from the class bankAccount (designed in part 1). This class inherits members to store the account number and the balance from the base class. A customer with a checking account typically receives interest, maintains a minimum balance, and pays service charges if the balance falls below the minimum balance. Add member variables to store this additional information. In addition to the operations inherited from the base class, this class should provide the following operations: set interest rate, retrieve interest rate, set minimum balance, retrieve minimum balance, set service charges, retrieve service charges, post interest, verify if the balance is less than the minimum balance, write a check, withdraw (override the method of the base class), and print account information. Add appropriate constructors. Every bank offers a savings account. Derive the class savingsAccount from the class bankAccount (designed in part 1). This class inherits members to store the account number and the balance from the base class. A customer with a savings account typically receives interest, makes deposits, and withdraws money. In addition to the operations inherited from the base class, this class should provide the following operations: set interest rate, retrieve interest rate, post interest, withdraw (override the method of the base class), and print account information. Add appropriate constructors. Write a program to test your classes designed in parts 2

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Instructions

  1. Define the class bankAccount to store a bank customer’s account number and balance. Suppose that account number is of type int, and balance is of type double. Your class should, at least, provide the following operations: set the account number, retrieve the account number, retrieve the balance, deposit and withdraw money, and print account information. Add appropriate constructors.
  2. Every bank offers a checking account. Derive the class checkingAccount from the class bankAccount (designed in part 1). This class inherits members to store the account number and the balance from the base class. A customer with a checking account typically receives interest, maintains a minimum balance, and pays service charges if the balance falls below the minimum balance. Add member variables to store this additional information. In addition to the operations inherited from the base class, this class should provide the following operations: set interest rate, retrieve interest rate, set minimum balance, retrieve minimum balance, set service charges, retrieve service charges, post interest, verify if the balance is less than the minimum balance, write a check, withdraw (override the method of the base class), and print account information. Add appropriate constructors.
  3. Every bank offers a savings account. Derive the class savingsAccount from the class bankAccount (designed in part 1). This class inherits members to store the account number and the balance from the base class. A customer with a savings account typically receives interest, makes deposits, and withdraws money. In addition to the operations inherited from the base class, this class should provide the following operations: set interest rate, retrieve interest rate, post interest, withdraw (override the method of the base class), and print account information. Add appropriate constructors.
  4. Write a program to test your classes designed in parts 2 and 3.
O (833) K X
Ь Му Que X
O Home
O The Sin X
6 C-25_T X
O Prograr X
* MindTa X
O PHYS 4 X
O cis25 la X
O cis25 la x
E Untitlec X
E Untitlec X
C If Only X
A ng.cengage.com/static/nb/ui/evo/index.html?deploymentld=5781122055515575690743039334&elSBN=9781337274715&snapshotld=1982158&id=934535688&
>>
CENGAGE MINDTAP
Q Search this course
Programming Exercise 11-13
Instructions
FILETREE
ba... x
ch... x
ba... x
ch... x +
>_ Terminal
+
m...
sa...
~/sandbox
1 #include <iostream>
A bankAccount.cpp
A bankAccount.h
2
Instructions
3 using namespace std;
A-Z
A checkingAccount..
O checkingAccount.h
A main.cpp
A savingsAccount.c..
A savingsAccount.h
4
1. Define the class bankAccount to store a
5 int main() {
bank customer's account number and
// Write your main here
7
return 0;
balance. Suppose that account number is of
8 }
type int , and balance is of type double .
9
Your class should, at least, provide the
following operations: set the account
number, retrieve the account number,
retrieve the balance, deposit and withdraw
money, and print account information. Add
appropriate constructors.
2. Every bank offers a checking account.
Derive the class checkingAccount from
the class bankAccount (designed in part
1). This class inherits members to store the
account number and the balance from the
base class. A customer with a checking
account typically receives interest,
maintains a minimum balance, and pays
6 V 1 10:13
日 !
Transcribed Image Text:O (833) K X Ь Му Que X O Home O The Sin X 6 C-25_T X O Prograr X * MindTa X O PHYS 4 X O cis25 la X O cis25 la x E Untitlec X E Untitlec X C If Only X A ng.cengage.com/static/nb/ui/evo/index.html?deploymentld=5781122055515575690743039334&elSBN=9781337274715&snapshotld=1982158&id=934535688& >> CENGAGE MINDTAP Q Search this course Programming Exercise 11-13 Instructions FILETREE ba... x ch... x ba... x ch... x + >_ Terminal + m... sa... ~/sandbox 1 #include <iostream> A bankAccount.cpp A bankAccount.h 2 Instructions 3 using namespace std; A-Z A checkingAccount.. O checkingAccount.h A main.cpp A savingsAccount.c.. A savingsAccount.h 4 1. Define the class bankAccount to store a 5 int main() { bank customer's account number and // Write your main here 7 return 0; balance. Suppose that account number is of 8 } type int , and balance is of type double . 9 Your class should, at least, provide the following operations: set the account number, retrieve the account number, retrieve the balance, deposit and withdraw money, and print account information. Add appropriate constructors. 2. Every bank offers a checking account. Derive the class checkingAccount from the class bankAccount (designed in part 1). This class inherits members to store the account number and the balance from the base class. A customer with a checking account typically receives interest, maintains a minimum balance, and pays 6 V 1 10:13 日 !
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Data members
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education