Implement a simple automated bank registry system

Assignment Help Basic Computer Science
Reference no: EM13763426

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

Reference no: EM13763426

Questions Cloud

Essay on should the affordable care act be repealed : A 3 paged essay on (Topic: Should the Affordable Care Act be repealed?). essay formatt introduction to topic, pro, cons, own opinion
Provide example of ethical issue that company face regularly : Provide an example of an ethical issue that companies face regularly. In your opinion, what is the best way a company could address the issue you provided?
Is law itself a contradiction : Is law itself a contradiction? Are there laws that are privy to unethical behavior? Do you think that precisely what a law is supposed to protect, it causes
Farkas rights concerning his employment termination : The enforceability of the promise of the $50 bonus. The enforceability of the $100 bonus. Farkas' rights concerning his employment termination
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.
Public and community health issues : Identify the demographics and effect of the issue or disease on the community.
Summarize bellamys treatment of component of citizenship : Summarize Bellamy's treatment of one of the principal components of citizenship (membership, rights and participation). Treat both the conceptual and historical dimensions of his discussion.
What were the solutions used to address the problem : What were the solutions used to address the problem and Do you feel the solution or approach used appropriate for the cause
Database administrator for department store : The Strayer Oracle Server may be used to test and compile the SQL Queries developed for this assignment. Your instructor will provide you with login credentials to a Strayer University maintained Oracle server.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write an instruction sequence to add

Write an instruction sequence to add the 3-byte numbers stored in memory locations 0x1 1-0x13 and 0x14-0x16 and save the sum in memory locations 0x20-0x22

  Under what circumstances will it fail

will the above function compile in C++? Is it correct? Under what circumstances will it fail and how should it be corrected?

  Determine if the string s=s1s2...sk

Suppose we want to determine if the string s=s1s2...sk is a substring much larger string a1a2...an. One approach is to compute h(s) with some hash function h.

  What is the purpose of the finally block

How does a method declare that it can throw an exception? How does it actually throw an exception? Use Java code to illustrate your answer.

  Calculate bc the set complement of b

Calculate BC the set complement of B

  Suppose a c++ compiler for the mips

Suppose a C++ compiler for the MIPS machine associates $s5 with array a and $s6 with variable i. How does it translate a[i] = a[i+1]; into MIPS assembly language?

  How many clock cycles are needed

Indicate data dependency in the above code. Assuming there is no forwarding in the pipeline, how many clock cycles are needed to finish the program? If full forwarding is used, how many clock cycles are needed?

  Interface perating system with uninterruptible power supply

Windows XP Professional can interface through the operating system with an Uninterruptible Power Supply (UPS).

  Write z schemas defining state of the system card validation

Write Z schemas defining the state of the system, card validation (where the user's identifier is checked) and cash withdrawal.

  A paper three to four pages covers data warehouse

Subject background: Data Modeling. Need a paper three to four pages covers data warehouse - a subject-oriented, integrate, time-variant, and nonvolatile set of data that supports decision making. Within the paper an explanation of subject, int..

  These processes compete to use the computers

a modern personal computer or workstation executes many simultaneous processes. these processes compete to use the

  Write a program to ask the user to enter the yearly income

Write a program to ask the user to enter the yearly income of each person

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