Write a JAVA
should be able to perform the following operations:
1.Add persons details (first name, last name, phone number, city, address, sex and email) to the phone
directory, where phone numbers in the directory have to be unique. (Note: each person record will store in
Classes and Objects)
2.Update telephone number by providing person first name.
3.Display all details of persons from a phone directory.
4.Search telephone number based on person first name. (Note: use sequential search to find all telephones
for the given first name)
Project Outputs
The output has to display a menu of choices. Then the user can select which operation want to perform.
Also, you can use the method System.exit(0); to exit the program. The menu of choices will be:
1) Add person details into the telephone book.
2) Update a telephone number by providing person first name.
3) Display the entire telephone book.
4) Search a telephone number based on person first name.
5) Exit the program.
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps
- PYTHON PROGRAMMING ONLY NEED HELParrow_forwardWrite a JAVA program that will maintain a phone directory using Classes, and Objects. The programshould be able to perform the following operations:1.Add persons details (first name, last name, phone number, city, address, sex and email) to the phonedirectory, where phone numbers in the directory have to be unique. (Note: each person record will store inClasses and Objects)2.Update telephone number by providing person first name.3.Display all details of persons from a phone directory.4.Search telephone number based on person first name. (Note: use sequential search to find all telephonesfor the given first name)Project OutputsThe output has to display a menu of choices. Then the user can select which operation want to perform.Also, you can use the method System.exit(0); to exit the program. The menu of choices will be:1) Add person details into the telephone book.2) Update a telephone number by providing person first name.3) Display the entire telephone book.4) Search a telephone…arrow_forwardin java Write the Account class. The UML diagram of the class is represented below Requirements :a. Implement the class strictly according to its UML one-to-one (do not include anything extra, do not miss any data fields or methods) b. Add comments to your program (mark where data fields, constructors, getters, setters and toString() are)c. You can use the automatic generation approach for Getters, setters and toString() inEclipse.d. In getMonthlyInterestRate(), please return the monthly interest rate. DO NOT leave thismethod body blank!e. In getMonthlyInterest(), please returns the monthly interest (NOT THE INTEREST RATE),DO NOT leave this method body blank!f. In deposit() method, please deposit a specified amount to the account (Hint: balance +=depositAmount). DO NOT leave this method body blank!g. In withdraw() method, please withdraw a specified amount from the account (Hint:balance -= withdrawAmount). DO NOT leave this method body blank!h. Please use decimal to represent the…arrow_forward
- Pythonarrow_forwardWrite a Bank Account class in python to manage the account of the users. A user can deposit (add money) and withdraw (take money) money from his/her own account based on availability. At the time of account creation, the user has to provide his/her first name, last name, date of birth, NID number, contact number and address. Moreover, the user should deposit a minimum of 1000 taka to create the account. This money will be added to his account. After account creation the bank will give an account number to the user. The user should use this account number to access his account (show current balance, deposit and withdraw)arrow_forward
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education