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

  Identify the phases in the object-oriented life cycle model

Explain the primary focus of object-oriented methods. Identify the benefits and advantages of obect oriented methods. Identify the phases in the object-oriented life cycle model.

  What more efficient by slightly changing the data structure

If the purpose of this search is to insert another item into the list, how would you achieve this insertion? In other words, give a pseudocode algorithm that lists each step.

  Write a program displays the sum, average, product

Write down a Visual Basic application that inputs three integers from the user and displays the sum, average, product, smallest and largest of the numbers in an information message dialog.

  What is the best way for sending people out

What is the best way for sending people out if one wants the total competition to be over as early as possible? More precisely give an efficient algorithm that produces a schedule whose completion time is as small as possible.

  Design a basic jsp page

Submit your JSP page along with your screenshots that show what your code has produced

  List specific hospital departments and explain their roles

List the specific hospital departments and roles you would include. Explain why each of these staff members was chosen and relevant for providing information for this project.

  The organization has asked for a new web-based customer

this week you will submit a draft of your key assignment template. be sure to add the new material to this document

  Compare and contrast private with public clouds

Write clearly and concisely about cloud & virtual computing topics using proper writing mechanics and technical style conventions.

  Define a one byte flagbyte field in storage

In the MAIN routine, define a one byte FLAGBYTE field in storage initialized to hexadecimal zeros.  If the statistics report is to be processed, turn on bit 0. If the graph is to be printed, turn on bit 7

  Which references source page fault with lru page replacement

Which references source a page fault with LRU page replacement policy? Illustrate your intermediate working in table below with three columns.

  Be substantive and clear and use illustrations to reinforce

write 400-600 words that respond to the following questions with your thoughts ideas and comments. this will be the

  Program would update the account to reflect payment

After discussing this with your uncle, you agree to set up a computer and make a program that would keep track of his clients. It would calculate the bills and print invoices that would be mailed to the clients. It will also keep track of the clie..

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