Mr. Hoa is a student at FPT University, Faculty of Information Technology. After he had finished the Object�Oriented Programming course, he wanted to build a program to manage the food in his refrigerator. The program must be designed so that management of the food is easy.
-
required to develop a Java program that shows the following menu:
-
Welcome to Food Management - @ 2021 by <Student ID - Student Name >
-Select the options below:
- Add a new food
- Search a food by name
- Remove the food by ID
- Print the food list in the descending order of expired date
- Quit
-
Each menu choice should invoke an appropriate function to perform the selected menu item. Your program must display the menu after each task and wait for the user to select another option until the user chooses to quit the program. Each food has the following information: ID (cannot be modified, cannot be duplicated), name, weight, type, place (where your put this food in refrigerator), expired date. Use collection to food the phones.