Problem
Ella needs a CLI (Command Line Interface) program written in Java to maintain her contact list efficiently. Each of her contacts contains a name (full name), a phone number, and email, and an address. She’d like to be able to do the following functions.
The CLI should look like the one below. Note that Ella may accidentally enter an input that is not in the format that you expect, e.g. “ABC” instead of “2”. For any invalid inputs, the program must gracefully display an error message and let Ella re-enter again. The program only stops when she selects the function to quit. It must not stop or crash in any other circumstances. This fault-tolerance principle is applied to all program inputs.
CLI
Select a function (1-9):
The classes that are useful to you are File, Scanner, and PrintWriter. You can assume that the text file resides in the same directory with your program. The text file stores several contacts. Each contact is written in a line and has its fields separated by “;” like this example.
The contacts need to be in a text file.
contacts.txt
John Smith; 0901234567; johns@yahoo.com; 120 Le Thanh Ton, D1, HCMC
Nguyen Minh Toan; 02837761300; toan.nguyen@abc.com; 78 Le Van Sy, D3, HCMC
Bui Van Ba; 0913437582; ba.bui@gmail.com; 18 Nguyen Thi Thap, D7, HCMC
Ngo Hung; 0927654321; hung@outlook.com; 89 Phan Dinh Phung, Ba Dinh, Ha Noi
Tran Tieu Vy; 0339997264; vy.tran@gmail.com; 5 Le Duan, Hai Chau, Da Nang
/*
RMIT University Vietnam
Course: INTE2512 Object-Oriented Programming
Semester: 2019C
Assessment: Assignment 1
Author: Your name (e.g. Nguyen Van Minh)
ID: Your student id (e.g. 1234567)
Created date: dd/mm/yyyy (e.g. 31/03/2019)
Last modified: dd/mm/yyyy (e.g. 05/04/2019)
Acknowledgment: If you use any resources, acknowledge here. Failure to do so will be considered as plagiarism.
*/
CS 340 Milestone One Guidelines and Rubric Overview: For this assignment, you will implement the fundamental operations of create, read, update,
Retail Transaction Programming Project Project Requirements: Develop a program to emulate a purchase transaction at a retail store. This
7COM1028 Secure Systems Programming Referral Coursework: Secure
Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip
CS 340 Final Project Guidelines and Rubric Overview The final project will encompass developing a web service using a software stack and impleme