Question: Anyone know how to do this? Please help me to solve it. Thank you. Project 1 Your task is to write a program to keep
Anyone know how to do this? Please help me to solve it. Thank you.
Project 1 Your task is to write a program to keep track of a user's movie and video game collection. The program should have a command line menu-driven interface that allows a user to Insert a new media item. The user should be prompted for the new item's title and format (e.g. DVD, Blu-ray, Xbox, PlayStation, etc.) and this information should be stored. If another item with the same title already exists, the program should require the user to enter a different title. (1 point) Mark an item as on loan. The user should be prompted for the title of the item to be loaned, the name of the person the item was loaned to and the date it was loaned on and this information should be stored. Display an error message if no item with that title exists or if that item is already on loan. (1 point) Mark an item as returned. The user should be prompted for the title of the item that was returned and that object should be updated to indicate that it is no longer on loan. Display an error message if no item with that title exists, or if that item is not currently on loan. (1 point) List the items currently in the collection. Each item's title and format should be displayed. If the item is loaned out, then in parentheses after this it should display who the item was loaned to and what date it was loaned on. The items should be listed alphabetically by title. (1 point) Remove a media item. The user should be prompted for the item's title and the item with this title should be removed from the collection. Display an error message if no item with that title exists. (1 point) Quit. Before quitting, your program should store all of its data to a file. Before your program starts up, it should check for this file and read it in if it exists, so that the information is persistent between program executions. (1 point) Create appropriate JUnit test cases to thoroughly test at least one method in your program (1 point) Important note: To receive credit for each of the requirements above, your program must be able to handle all input that we throw at it and give the user back an appropriate "friendly" error message (not an exception stack trace) Project 1 Your task is to write a program to keep track of a user's movie and video game collection. The program should have a command line menu-driven interface that allows a user to Insert a new media item. The user should be prompted for the new item's title and format (e.g. DVD, Blu-ray, Xbox, PlayStation, etc.) and this information should be stored. If another item with the same title already exists, the program should require the user to enter a different title. (1 point) Mark an item as on loan. The user should be prompted for the title of the item to be loaned, the name of the person the item was loaned to and the date it was loaned on and this information should be stored. Display an error message if no item with that title exists or if that item is already on loan. (1 point) Mark an item as returned. The user should be prompted for the title of the item that was returned and that object should be updated to indicate that it is no longer on loan. Display an error message if no item with that title exists, or if that item is not currently on loan. (1 point) List the items currently in the collection. Each item's title and format should be displayed. If the item is loaned out, then in parentheses after this it should display who the item was loaned to and what date it was loaned on. The items should be listed alphabetically by title. (1 point) Remove a media item. The user should be prompted for the item's title and the item with this title should be removed from the collection. Display an error message if no item with that title exists. (1 point) Quit. Before quitting, your program should store all of its data to a file. Before your program starts up, it should check for this file and read it in if it exists, so that the information is persistent between program executions. (1 point) Create appropriate JUnit test cases to thoroughly test at least one method in your program (1 point) Important note: To receive credit for each of the requirements above, your program must be able to handle all input that we throw at it and give the user back an appropriate "friendly" error message (not an exception stack trace)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
