Implement a simple automated bank registry system

Assignment Help Computer Engineering
Reference no: EM131299073

Programming Project

Overview Using Classes

Implementation

Implement a simple automated bank registry system. The implementation will include several attributes related to a transaction, and the data will be managed in a global linked list within memory. The program must use the "list" API in the C++ standard template library. All of the attributes associated with each transaction will be stored as a single object within a global linked list data structure. The program must implement at least one class that will hold the following variables: transId - An integer for the transaction ID that consists of a number starting at 1000 for the first transaction in the linked list and automatically incremented by 1 for each subsequent transaction entered into the linked list. The user will not enter this number. date - A string for the date of the transaction. The date must be in the form mm/dd/yyyy. The program must re-prompt the user to reenter the date if it is not a valid form.

Description - A string variable to indicate the description of the transaction (spaces between words must be allowed).

Payment - A double variable to indicate a transaction payment or deduction from the account. A value of 0 if the transaction is not a payment.

Deposit - A double variable to indicate a transaction deposit or addition to the account. A value of 0 if the transaction is not a deposit.

Provide the appropriate accessor methods to set and get the data for each of these class variables.

For example setDate(string date) and getDate(). In addition, the main program must provide the following functionality:

1. When the program is first started, it must read a data file called registry.dat. The program should not prompt the user for the name of the data file. If the file exists, the program will load the data for each transaction into the global linked list data structure.

If the file does not exist, the program will start with an empty linked list.

2. The program should provide a simple text-based user interface similar to the Book Inventory example that manages the all of the transactions within the global linked list.

Each transaction must be placed in this global linked list as an object that holds all of the information associated with the given transaction. The user interface will allow the user to do the following:

(a) Display Registry - displays all of the transactions in the global linked list. This feature will display all of the fields associated with the each transaction. In addition it must also print the total number of transactions, the total amount in payments, the total amount deposits, and the total balance, which can be calculated as follows:

(b) Enter Transaction - allows the user to enter all of the fields associated with a given transaction, except for the transId, which will be automatically generated by the program as previously mentioned. After the data fields are entered, the program will place the transaction entry in the global linked list data structure that is kept in memory. Note: a deposit transaction will have a 0 Troy University eCampus, CS 3330 Data Structures and Algorithms. amount for payment value, and a payment transaction will have a 0 amount for a deposit value.

(c) Delete Transaction - allows the user to delete a transaction from the linked list using the transId as the key. The program will display a message if the transaction is not found in the linked list.

(d) Search for Transaction - allows the user to find a transaction. The program will prompt the user to enter the transId and will display a message if there are no matching transaction in the global linked list.

(e) Edit Transaction - allows the user to edit all of the fields for a given transaction (except for the transId) in the linked list. The program must use the transId as the key to find the entry to edit. For simplicity, the program may re-prompt the user to re-enter all of the fields associated with the given transaction; but it again must reuse the transId values. Display a message if the transaction is not found in the linked list.

(f) Exit system - before the program exits, it must save all of the data in the global linked list to the data file. I recommend using a standard text file with one field per line. At this point, if the file does not exist, the program will create it.

Reference no: EM131299073

Questions Cloud

Evaluate issues raised from the carlson san mixing equipment : Evaluate the issues raised from the Carlson SAN mixing equipment from a number of vendors and determine the management options for dealing with this type of situation.
Calculating and interpreting elasticity : This analysis assessment has three parts. While responding to each part, make sure that you show the formula prior to your complete calculation. Listing only the final answer will not earn credit.
Describe the general trend downward since that year : A plot against time may show a consistent trend underneath cycles. When did interest rates reach their overall peak during these years? Describe the general trend downward since that year.
Stability and growth pact that limits annual budget : The European Union (EU) has a provision in what is called the Stability and Growth Pact that limits annual budget deficits to 3 percent of GDP and its net public debt to no more than 60 percent of its GDP.
Implement a simple automated bank registry system : Implement a simple automated bank registry system. The implementation will include several attributes related to a transaction, and the data will be managed in a global linked list within memory.
Develop a process map about the prescription filling process : Develop a process map about the prescription filling process for HMO's pharmacy, in which you specify the key problems that the HMO's pharmacy might be experiencing. Next, use the supplier, input, process steps, output, and customer (SIPOC) model ..
Represent ideal structure for current organization : For this assignment, you should create an organizational chart to represent the ideal structure for your current organization (or one with which you are familiar). You should include:
Satisfies the following conditions at a given frequency : Suppose H(s) in Figure satisfies the following conditions at a frequency ω1: |H (jω1| = 1 but ∠H(jω1) = 170° . Explain what happens.
Find the percentage of accidental deaths : Find the percentage of accidental deaths from each of these causes, rounded to the nearest percent. What percentage of accidental deaths were due to other causes?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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