Create and use a transactioninputform class

Assignment Help C/C++ Programming
Reference no: EM131674201

Assignment: Bank Accounts- using Classes with Member Functions and Separate Compilation:

You have been hired as a programmer by a major bank. Your first project is a small banking transaction system. Each account consists of a number and a balance. The user of the program (the teller) can create a new account, as well as perform deposits, withdrawals, balance inquiries, close accounts, etc.

For this assignment, you must use Classes and move functionality into the classes. Specifically, you should have at least the following classes:

1. A Bank class which consists of an array of Accounts and the number of accounts currently active in the bank.

2. An Account class which consists of a Depositor, an account number, an account type, and a balance.

3. A Depositor class which has a Name and a social security number.

4. A Name class which consists of first and last names.

You must add appropriate member functions (or methods) to each class so as to implement the functionality of each of the functions of the previous assignment (HW2). Each of the functions of HW2 should be re-implemented using a class method. (You will have to decide as to which class each method belongs.) In addition, each class should minimally have a default constructor and possibly additional parametized constructors. (Some of the HW2 functions may become constructors.) Also, consider whether any of your classes needs a destructor. Remember, all I/O should be done outside of any class method.

The data members of each class must be private. As such, you may need to provide accessor and mutator functions.

You must use separate compilation of your program modules: Bank.h, Bank.cpp, Account.h, Account.cpp, Depositor.h, Depositor.cpp, Name.h, Name.cpp, as well as the module containing the main() function.

As in previous assignments, initially, the account information of existing customers is to be read into the database. The bank can handle a maximum of MAX_NUM accounts. The program keeps tracks of the actual number of currently active accounts. A table of the initial database of active accounts should be printed.

As before, the program then allows the user to select from the following menu of transactions: Select one of the following:
W - Withdrawal
D - Deposit
N - New account B - Balance
I - Account Info
X - Delete Account Q - Quit

Once the user has entered a selection, appropriate functions should be called to perform the specific transaction. At the end, before the user quits, the program prints the contents of the final database.

As in previous assignments, make sure to use enough test cases so as to completely test program functionality. EXTRA CREDIT:

1. Use a Screen Input Form for entering the new account information.
2. Create and use a TransactionInputForm class for use in entering the new account information.
3. Create and use a TransactionInputForm class for use in all transactions.

HINT: one possible approach

1a. The Bank class should at least have a default constructor that would allow statements of the form: Bank bank;

1b. The Bank class should have at least have the following methods: bool openAccount(...)

int findAccount(...)
int findAccountSSN(...) Account getAccount(...) bool deleteAccount(...)

2a. The Account class should at least have a constructor that would allow statements of the form: account[j] = Account(...);

2b. The Account class should have at least the following methods: double getBalance(...)

Depositor getDepositor(...) int getAccountNumber(...) string getAccountType(...) void makeDeposit(...)
bool makeWithdrawal(...)

3a. The Depositor class should at least have a constructor that would allow statements of the form: depositor = Depositor(...);

3b. The Depositor class should at least the following methods: Name getName(...)
string getSSN(...)

4a. The Name class should at least have a constructor that would allow statements of the form: name = Name(...);

4b. The Name class should at least the following methods: string getFirstname(...)
string getLastname(...)

5. Add additional constructors and methods to each class as necessary.

6. All I/O should be done outside of the class implementations.

Attachment:- BankAccount2.rar

Reference no: EM131674201

Questions Cloud

Describe what you learned from given reading : Getting Started With the Internet- Copy and paste the link of your website in the discussion area and describe what you learned from reading it.
How would you circumvent a lock without using physical tools : How would you circumvent a lock without using physical tools. Your method does not have to be tested, theoretical perspectives are accepted.
Explain your research and your findings of the tools : Create a PowerPoint or a similar presentation to explain your research and your findings of the tools. Graphics - Charts, Graphs, Illustrations, etc.
Create a differential diagnosis for the patient in case : Compare at least one evidence-based and one non-evidence-based treatment option for the diagnosis.
Create and use a transactioninputform class : Create and use a TransactionInputForm class for use in entering new account information. Create and use a TransactionInputForm class for use in all transaction.
Calculate the amplifier gain and determine the voltage gain : Determine the voltage gain Vo/Vs in dB - Calculate the amplifier gain - Show all steps and annotate as necessary - A current amplifier is characterized
Discuss the strengths and weaknesses of the proposed model : Identify and understand the steps in the proposed ethical decision-making model presented in your textbook by Bush et al. (2006).
Describe the apas ethical principles of psychologists : Compare and contrast the APA's Ethical Principles of Psychologists (APA Ethics Code) and Specialty Guidelines for Forensic Psychology.
Can you provide some examples of beneficial whitelists : Can you provide some examples of Beneficial Whitelists? What do you feel are the most important elements of successfully monitoring security zones?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd