Question: In Java, please write the COMPLETE code for the prompt in the following TWO pictures. ANSWER WITH THE COMPLETE PROGRAM OR DONT ANSWER AT ALL!!!!!!!

In Java, please write the COMPLETE code for the prompt in the following TWO pictures.

ANSWER WITH THE COMPLETE PROGRAM OR DONT ANSWER AT ALL!!!!!!!

-Please write the program as simply as possible.

-Please read and follow the prompt closely

-THE STEP-BY-STEP INPUT/OUTPUT OF THE PROGRAM IS LOCATED IN THE FIRST PICTURE! Once again, READ THE PICTURES! This is what I mean by "Read and follow the prompt closely"!

-Your program MUST implement and use STACK class methods. That means there must be peek(), push(), pop(), and remove() methods that interact with the stack.

-We have not learned hashmap yet, so please DONT use hashmap.

-DO NOT USE COLLECTIONS.

-MUST use a separate class to represent Objects for Stack.

-MUST search through Stack at some point.

All of the details of the program can be found in the following pictures. PLEASE DON'T WASTE MY QUESTION ALLOWANCE WITH PARTIAL CODE OR CODE THAT DOES NOT FOLLOW THESE DIRECTIONS. This is the EIGHTH time posting this question and I'm running out, BECAUSE PEOPLE ARENT READING THESE DIRECTIONS. READ THE DIRECTIONS!!!

THANK YOU!

 In Java, please write the COMPLETE code for the prompt in

the following TWO pictures. ANSWER WITH THE COMPLETE PROGRAM OR DONT ANSWER

The program is menu-driven; so until the user selects option 9 ie. Logout, the program should keep executing The program begins by registering a client if using the system for the first time; while registering only unique client id's are allowed and password must be at least 8 characters long (First Name and Last Name also required in this step). If the client cannot chose a unique id after 2 attempts, generate a random 8 character alphanumeric user id based on the Last Name of the client. For clients previously registered, option 2 can be chosen directly. Using option 3, the client can provide information about the food item they ate. The food item has the following attributes: Name Quantity, Calorie and Meal-type (Breakfast, lunch, snacks, dinner etc.) Create a separate class for Food items, and also have a display method in it to print out information about the item. The user should be provided the option of entering multiple food items if they choose to do so Option 4 lists the diet history for the current client starting with the last food item that was logged. This option lists all food items in the reverse order they were logged, and can contain duplicates. All food items a client ate can be displayed by choosing option 5; however, in this option each food item is only listed once Options 6, 7 and 8 are for the data analysis part: option 6 calculates the total calories a client ate in a day option 7 finds the food itcm with the maximum caloric content in it, and option 8 shows the food item the client ate the most for the day (if there are more than one item that are eaten the maximum number of times, displaying any one of them is sufficient). When the user is done, they can exit the program by choosing option 9

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!