Question: The first page is the instructions and the second and third are what I have already. I need help in how to add this String

The first page is the instructions and the second and third are what I have already. I need help in how to add this String to get the item with the highest cost. I need it step by step because Im horrible in programming. Thank you so much.  The first page is the instructions and the second and third
are what I have already. I need help in how to add
this String to get the item with the highest cost. I need

ogmig ct pts) program the following mens tou Syaten.out source Kle to be named Aas igneat2.java Th" progrun prints out ing e(tabe)and (we), and prist or printia methode of Velcoas to thla-w-out burger sens Hanburger $2-75 eeseburger 83 , 25 French Pries $2.50 Shake & Beverage: 31.50 Then prompts the uer How sany haburgera) would you like to buy and read in the nuaber. Then prommpts the user Bov sany cheeseburger (a) vould you like to buy? and read in the number Then prompts the user Hov sany Prench tries vould you like to buy? and read in the mumiber. Then prompts the user How sany drinks would you like to buy? and read in the number. Then the program computes and prints the following The total cost for the hamburger(s) The total cost for the cheeseburger(s) The total cost for fries The total cost for drink(s) . Which item had the highest total cost The total cost for the order The total number of hamburgers, cheeseburgers, French fries, and drinks ordered Hint One way to find which item has the highest total cost is to create a String yariable to hold the name of that item and then use &)then set the String to "hamburgers". You would need a similar check to see if the other total costs comparisons to check if the cost of hamburgers is greater than the other prices (using are the largest. Then you could output the highest String when needed (see sample output below) To carn full points on this assignment you will have to: Use coustant doubles for price of a Hamburgers, Cheeseburger, French Pries and Drinls

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!