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

Student Registration System Web Project using HTML, CSS & PHP

Student Registry System In this task, you’re to further develop the student registry you started on lab-task. The solution is based the on the use of HTML5, stylesheets, and PHP, and will use a database for storage of information, MySQL on (school website) is used for this. Information of students is saved in the table student, ID is primary key and is set In addition to this, you need a table named class where id a is the primary key and is set up with AUTOINCREMENT, other columns and data types in accordance with the figure. The property class in the student table needs to be a foreign key that refers to the ID column in the class table. In MySQL you need to use tables of the type INNODB with support for foreign keys, reference integrity shall remain. The task: Write a class with the name StudentRegister (means Student registry), the class should use PDO and only prepared statements/questions. The class shall implement the interface StudentInterface, and use the two classes, Student,...