Create a program for a bank to process a set of transactions

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

The objectives of this assignment are to:

1. Refresh your knowledge and skill in Java.

2. Gain experience and skill in file I/O.

3. Gain experience with a debugger.

4. Gain understanding of the need to organized data in memory.

5. Refresh your understanding of Javadoc documentation.

6. Refresh your practice of good programming techniques.

You have been asked to create a program for a Bank to process a set of transactions (i.e., deposit and withdraw) against a set of accounts, and produce a statement for each account. Input to the program will be two files one containing a list of accounts and the other a list of transactions. Both files are binary. Output will be a report to standard out. The format of each file is as follows:

Accounts.dat a binary file containing a set of records. Each record represents an account. The format of a record is:

Fields

Description

Account number

4 byte two's compliment

First name

10 bytes ASCII, blank padded

Middle Initial

1 byte ASCII

Last name

10 bytes ASCII, blank padded

Balance

Double precision floating point

Transactions.dat a binary file containing a set of records. Each record represents an account. The format of a record is:

Fields

Description

Account number

4 byte two's compliment

Date

1 byte two's compliment for month, followed by 1 byte two's compliment for day, followed by 2 bytes two's complement year

Type

1 byte ASCII - either D for deposit or W for withdraw

Amount

Double precision floating point

Your program should pass the files in the on the command line. In the event the files are not passed on the command line, then ask the user to enter the file names for the accounts, transaction, and new accounts files. Using those files, the program will process the transactions and print the statement report. A sample output of the statement report is as follows:

Bank Statement

Account No        : 73829123

Account Name      : Bill T Smith

Beginning Balance : $  1030.50

Ending Balance    : $  1018.28

         **Transaction Detail**

 Date      Type      Amount       Balance

10/12/09  Withdraw  $   500.00   $   530.50

10/13/09  Withdraw  $   300.00   $   230.50

10/14/09  Deposit   $  1287.78   $  1518.28

10/15/09  Withdraw  $   500.00   $  1018.28

Bank Statement

Account No        : 73829999

Account Name      : Mary P Jones

Beginning Balance : $  3000.89

Ending Balance    : $  3500.89

         **Transaction Detail**

 Date      Type      Amount       Balance

10/16/09  Deposit   $   500.00   $  3500.89

 Requirements

• Your source code should use proper object-oriented style. That is, the main program should only instantiate a class and call major methods that perform all of the work.

• Your source code should be documented using Javadoc style according to the course standards.

• Follow good programming practices. Naming conventions, separation of io from business objects, indentation, etc.

• Your test program must be named RunBankStatements.

• Define all classes in packages or subpackages of edu.iup.cosc310.bank.

• Input requires processing two blank padded fields. Develop some means to define the input of blank padded fields in just one place.

• Provide an appropriate set of getter and setter methods (i.e., don't provide setters for fields that cannot be changed).

• Do not provide a setBalance method for an account. Instead provide a processTransaction method. It should adjust the accounts balance accordingly and record the transaction for the account.

• Hide the representation of the one to many relationships between a bank and accounts and between accounts and transactions. Provide some means to iterate over the many.

Deliverables:

1. A zip file of your project named lastname1.zip containing all source files and class files. For example, if your name is John Smith, the file name should be smith1.zip. Upload to moodle by the due date.

2. Printout of all source files submitted by the due date and time. Submission is not complete until both the zip file and the print outs are received. Plan ahead when printing your code prior to class.

3. Printout of the output from your program.

All papers should submitted as a single packet and stapled in the upper left corner.

Reference no: EM13969439

Questions Cloud

Meant by the expression partnership property : Fred is a new partner in Gee & Co, a firm of interior designers. In discussion at a recent meeting of the partners Fred was told that the office building at which the firm is based is not partnership property. Explain to Fred: (a) What is meant by..
Are current policies sufficient to protect us : What do you think will be the most pressing environmental health issues from global climate change in the next 5-10 years? Are current policies sufficient to protect us or do we need new policies
Theory of corporate personality : 1. The court will not allow the theory of corporate personality to be used as a means of fraud or sharp practice - the judge has the power to 'draw aside the corporate veil'.
Theory of corporate personality : 1. The court will not allow the theory of corporate personality to be used as a means of fraud or sharp practice - the judge has the power to 'draw aside the corporate veil'.
Create a program for a bank to process a set of transactions : Create a program for a Bank to process a set of transactions (i.e., deposit and withdraw) against a set of accounts, and produce a statement for each account. Input to the program will be two files one containing a list of accounts and the other ..
Write about driverless car : Write 300 words about driverless car. The driverless car. Search for info and write one page (about 300 words) taking a favorable or unfavorable stance
Different types of legal proceedings : Identify the different types of legal proceedings which might arise from these facts. For each type of legal action you have identified in (a), discuss the nature of the legal liability and the purpose or objective of taking legal action.
What leadership qualities did the coaches demonstrate : What leadership qualities did the Coaches demonstrate to be able to bring the team together to win the championship?
Civil or criminal proceedings : Consider the following legal actions and indicate whether civil or criminal proceedings would result: (a) Ann decides to divorce her husband, Barry, after 10 years of marriage;

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