Question: ** THIS HAS TO BE WRITTEN IN C++ PROGRAMMING LANGUAGE** Your task is to implement a mini-data base for a bank, you will be allowed

** THIS HAS TO BE WRITTEN IN C++ PROGRAMMING LANGUAGE**

  • Your task is to implement a mini-data base for a bank, you will be allowed to use ONLY classes, you are NOT allowed to use structures.
  • You can simulate a data-base by using vectors of objects.
  • You are NOT allowed to use an array of objects to simulate the data-base.

Your code will need two different classes:

Class # 1 (date)

This class must include the following three member variables: Year; Month; Day; and a programmer defined default constructor without parameters.

Class # 2 (account)

This class must include following member variables: Account number; Account type; Name; Balance; Date of last payment (this is an object of class date as defined by class # 1). A programmer defined default parametrized constructor, and a programmer defined destructor.

Regarding Account types: only two, checking (c) and savings (s). A character will suffice.

Each one of the following descriptions is a function that you are required to implement.

MEMBER FUNCTIONS METHODS

  1. A function that will allow the user to enter information, and associate it with an instance of class #2

  1. A function that will allow the user to observe on screen the content of ALL the elements of our data base that have valid information. Information must be presented in a clear, simple, readable, secure, distinguishable, and organized manner.

  1. A function that will allow the user to increase (deposit) the balance of a chosen bank account. The account search can be conducted using any search algorithm of your preference. I strongly advise you to choose the easiest one that you can find, do not overcomplicate things. This function MUST show that the balance really changed. Think about a bank, what are you supposed to see or present to the teller so that he/she can confirm a successful transaction?.

  1. A function that will allow me to decrease (withdraw) the balance of a chosen bank account. The account search can be conducted using any search algorithm of your preference. I strongly advise you to choose an easy one, do not overcomplicate things. This function MUST show that the balance really changed. Think about a bank, what are you supposed to see or present to the teller so that he/she can confirm a successful transaction.

  1. A function that will allow me to transfer money between different accounts for the same client.

  1. Savings to Checking
  2. Checking to Savings

How many (MAX) DB-Elements your data base should be able to host?: 50.

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!