Skip to main content

[SOLVED] Bank Record system in Java with full source code BackRecord.java

write a program name bankrecord.java that maintains a list of records containing names and phone numbers. The program will prompt the user for a command, execute the command, then prompt the user for another command. The commands must be chosen from the following possibilities:

  • Show all records
  • Delete a selected record
  • Change the first name of a selected record.
  • Change the last name of a selected record
  • Add a new record
  • Change the phone number of a selected record
  • Withdraw an amount requested by the record
  • Add a deposit for a selected record
  • Quit.

The following example illustrates the behavior of each command. A Program for a Bank:

Show all records
Delete a selected record
Change the first name of a selected record.
Change the last name of a selected record
Add a new record
Change the phone number of a selected record
Withdraw an amount requested by the record
Add a deposit for a selected record
Quit.

Enter a command from the list above (9 to quit): 2
No record selected
Show all records
Delete a selected record
Change the first name of a selected record.
Change the last name of a selected record
Add a new record
Change the phone number of a selected record
Withdraw an amount requested by the record
Add a deposit for a selected record
Quit.

Enter a command from the list above (9 to quit): 5
Enter first name: Barry
Enter last name: Drake
Enter phone number: 770-591-8071
Enter balance: $2000.00
Show all records
Delete a selected record
Change the first name of a selected record.
Change the last name of a selected record
Add a new record
Change the phone number of a selected record
Withdraw an amount requested by the customer
Add a deposit for a selected record
Quit.

Enter a command from the list above (10 to quit): 5
Enter first name: Ada
Enter last name: Caswell
Enter phone number: 770-251-3456
Enter balance: $1000.00
MENU DISPLAYED AGAIN
Enter a command from the list above (9 to quit): 1
First Name Last Name Phone Number: Balance.
------------- ------------- ------------- -------------
Ada Caswell 770-251-3456 $1000.00
Barry Drake 770-591-8071 $2000.00
MENU DISPLAYED AGAIN
Enter a command from the list above (9 to quit): 5
Enter first name: Elwood
Enter last name: Havens
Enter phone number: 404-345-8897
Enter balance: $50.00
MENU DISPLAYED AGAIN
Enter a command from the list above (9 to quit): 1
First Name Last Name Phone Number: Balance.
------------- ------------- ------------- -------------
Ada Caswell 770-251-3456 $1000.00
Barry Drake 770-591-8071 $2000.00
Elwood Havens 404-345-8897 $2000.00
MENU DISPLAYED AGAIN

Enter a command from the list above (9 to quit): 8
[For this activity display the current list of customer]
Enter the First name of the record you want to add a deposit:Elwood
Now enter the last name:Havens
The record is: Elwood Havens who currently has: $50.00
Enter the deposit amount:200.00
This record now has $250.00
MENU DISPLAYED AGAIN

Enter a command from the list above (9 to quit): 4
[For this activity display the current list of customer]
Enter the First name of the record you want to change the last name of: Elwood
Enter the First name of the record you want to change the last name of: Havens
Now enter the new last name: Brown
MENU DISPLAYED AGAIN
Enter a command from the list above (9 to quit): 1
First Name Last Name Phone Number: Balance.
------------- ------------- ------------- -------------
Elwood Brown 404-345-8897 $250.00
Ada Caswel 770-251-3456 $1000.00
Barry Drake 770-591-8071 $2000.00
MENU DISPLAYED AGAIN

Enter a command from the list above (9 to quit): 4
[For this activity display the current list of customer]
Enter the First name of the record you want to change the last name of: Elwood
Enter the First name of the record you want to change the last name of: Havens
Now enter the new last name:Brown
MENU DISPLAYED AGAIN
Enter a command from the list above (9 to quit): 7
[For this activity display the current list of customer]
Enter the First name of the record you want to withdraw from:Elwood
Now enter the last name: Brown
Enter amount to be withdrawn: 100.00
This record now has $150.00
MENU DISPLAYED AGAIN

Enter a command from the list above (9 to quit): q
Illegal command

Enter a command from the list above (9 to quit): 9

The output of your program must match the format illustrated in this example.
Here are some other additional requirements for this program: You may assume that phone number contains no spaces. After a deletion, there is no record currently selected. Each record (first name, last name and phone number) must be stored as an object. These objects must be stored in a Linked List.

The Linked List must be kept sorted at all times based on last name. Sorting is to be achieved when an insertion or modification is done. NO SORTING ROUTINE IS ALLOWED. ALWAYS INSERT A NEW RECORD OR EDITED RECORD INTO ITS' CORRECT PLACE IN THE LINKED LIST.

Get your order now 

Buy now

Comments

Popular posts from this blog

The Zoo Management System - entity relationship diagram & MS Access Database

Zoo Management System - Project Details: You are the employee of a big, worldwide working Zoo Management Company. Your company is responsible for the Zoo management. Your boss thinks it would be a great idea to store all data for each Zoo in a brand new self-developed ZOO Management System. Up to now, the ZOO management company has maps of each ZOO available. Your boss knows that you took a course in introduction on an ERP system, so he asks you if you could help designing such a system. Each ZOO must have the same organizational structure, which should look like this: Each Zoo has a Zoo-Address. Each Zoo has many visitors (Visitor Ticket Process (VTP). Many Zoo-Attractions belong to a Zoo. Module 1: Entity Relationship Diagram Design a ER (entity-relationship) diagram for your ZOO Management System. Use the information provided below with the entities and its attributes. Put the entities in the correct relationship to each other (organizational structure). Module 2: DB Implem...

Human Physiology by Stuart Ira Fox [PDF] (12th edition) free download

Sudoku Game Project in Java with full source code including GUI task

Introduction The purpose of the project is to try in practice the use of recursion and object-oriented program design. Please make sure to read this entire note before starting your work. Pay close attention to the sections on deadlines, deliverables, and exam rules. The problem Your task in this part of the project is to write a solver for Sudoku puzzles. Sudoku puzzles are a kind of crossword puzzles with numbers where the following two conditions have to be met: In each row or column, the nine numbers have to be from the set [1,2,3,4,5,6,7,8,9] and they must all be different.  For each of the nine non-overlapping 3x3 blocks, the nine numbers have to be from the set [1,2,3,4,5,6,7,8,9] and they ust all be different. The following two figures show a Sudoku puzzle and its solution. The input The input of your program, the Sudoku puzzles, is given in text files. More specifically, they are represented as nine lines of nine characters separated by spaces. The characters can be of two...