Track of a history of transactions

Assignment Help JAVA Programming
Reference no: EM131591313

Assignment:

This assignment will consist of fourmethods in addition to the main method. You will be writing a program to keep track of a bank account as each transaction takes place. You will not be keeping track of a history of transactions.
Class name is: Bank
Method names are: deposit, withdraw, balance, report
You must use the above four methods but you may use any additional methods that you determine are needed.

Requirements
Main method
Shall prompt the user for a banking transaction of deposit, withdraw, balance enquiry, or month end report with a single character of D,W,B, or R.
Shall execute one of the four designated methods based on the transaction selected.
Shall prevent the user from entering an invalid value for the prompt.
Shall provide the user a prompt to exit the program using an X.
Shall continue to prompt until the user selects X to exit.

Deposit method
shall prompt the user for a dollar amount to deposit into their account.
Shall print the beginning balance at the time of the transaction.
Shall print the ending balance at the end of the transaction.
Shall print the amount of the deposit.
Shall prevent the user from depositing a negative amount.
Shall require the user to deposit a floating point value.
Shall continue to prompt until a valid entry is provided or the user exits the transaction by typing an X at the prompt.

withdrawmethod
shall prompt the user for a dollar amount to withdraw from their account.
Shall print the beginning balance at the time of the transaction.
Shall print the ending balance at the end of the transaction.
Shall print the amount of the withdrawal.
Shall prevent the user from withdrawing an amount that will give them a negative balanced.
Shall require the user to withdraw a floating point value.
Shall continue to prompt until a valid entry is provided or the user exits the transaction by typing an X at the prompt.

balancemethod
Shall display the current balance of the bank account.

Reportmethod
Shall display the beginning balance of the period.
Shall display the current balance of the bank account.
Shall display the maximum balance of the period.
Shall display the minimum balance of the period.

Notes and warnings:
Global class variables work well for this program.
Your grade will be reduced if you use global variables as parameters.
You must be able to accept upper and lower case letters as input.
All displays shall have a $ sign and two decimal points of accuracy. EX: $123.45
Your starting balance is $1000.00

Output Example
Your output should look like the following example, but it will have different numeric values (based on your input)

Welcome to First Interstellar Bank

(D) Deposit
(W) Withdraw
(B) Balance Enquiry
(R) Monthly Report
(X) Exit
Please select a transaction => d
Please enter your deposit amount => $100.00

Beginning Balance: $ 1000.00
Transaction: $ 100.00 (+)
Ending Balance: $ 1100.00

(D) Deposit
(W) Withdraw
(B) Balance Enquiry
(R) Monthly Report
(X) Exit
Please select a transaction => 111.11
Invalid input "111.11" please try again

(D) Deposit
(W) Withdraw
(B) Balance Enquiry
(R) Monthly Report
(X) Exit
Please select a transaction => w
Withdraw selected
Please enter your withdrawal amount => $111.11

Beginning Balance: $ 1100.00
Transaction: $ -111.11 (-)
Ending Balance: $ 988.89

(D) Deposit
(W) Withdraw
(B) Balance Enquiry
(R) Monthly Report
(X) Exit
Please select a transaction => b

Current Balance: $ 988.89

(D) Deposit
(W) Withdraw
(B) Balance Enquiry
(R) Monthly Report
(X) Exit
Please select a transaction => r

End of Banking Period Report
Beginning Balance: $ 1000.00
Maximum Balance: $ 1100.00
Minimum Balance: $ 988.89
Current Balance: $ 988.89

(D) Deposit
(W) Withdraw
(B) Balance Enquiry
(R) Monthly Report
(X) Exit
Please select a transaction => x

Reference no: EM131591313

Questions Cloud

Demonstrate the class by writing a separate program : Demonstrate the class by writing a separate program that creates an instance of the class. The program should ask the user to enter three test scores
How environmental factors influence development of policy : Explain how environmental factors (structural, political, economic, demographic) influence the development of public policy.
What strategies do we use to galvanize positive change : What strategies do we use to galvanize positive change? Are changes generally generated from the top down, or from the bottom up?
Operate to make it economically feasible to build facility : What is the minimum number of trucks that they must operate to make it economically feasible to build this facility?
Track of a history of transactions : Consist of fourmethods in addition to the main method. You will be writing a program to keep track of a bank account as each transaction
Prepare journal entries for each event : The 2013 balance sheet of the Captain Jet Inc. is attached. During 2014, the following events occurred. Prepare journal entries for each event
Discuss appropriateness and effectiveness of visual aids : For the Unit 5 assignment, you will write a reflective analysis paper about your presentation-creation process and your Unit 4 live, oral presentation.
Outline the federal guidelines on procedural safeguards : Create a 10-15 slide presentation that includes Outline of federal guidelines on procedural safeguards or rights of special needs' children and families.
Does the subjecttake a vitamin supplement : Does the subjecttake a vitamin supplement? Why or why not? If he/she takes supplements,how much does he/she spend a month on vitamins?

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

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