Question: Java help Welcome to the EBAC Caleulator arning Objectives 1. [75 points) Program runs successfully Please enter your weight to the nearest pound 150 a
Welcome to the EBAC Caleulator arning Objectives 1. [75 points) Program runs successfully Please enter your weight to the nearest pound 150 a (10 points) Inputs weight from the user using a Scanner object. b. (S points) Outputs all drink options in simple format c. (10 points) Inputs drink choices from the user using a Scanner object d. (5 points) Repeats untsl - 1 is entered e.(45 points) Outputs the final summary correctly Please enter the number of the item you would like to drinic (-1 to esit) 0) Bourbon and Water ($60) 1) Cosmopolitan ($70) 2) Gin and Tonie ($6.0) 3) Mojito ($6.0) 4) Margarita ($7.5) 5) Martini (57.0) 6) Pina Colada (36.0) 7)Screwdriver ($7.0) L List of drinks in detail format i. Bill for the night it. Calories consumed iv. EBAC v. Time to sober 8) Vodka and Tonie (36.0) )Wacer (Sa.o) 2. (25 points) Program contents follow readability standards including a. (15 points) Correct use of AmavList Beverage lists b. (10 points) Successfully complete simple and detailed format methods in Please enter the number of the item you would like to drink (1 to esit) 0) Bourbon and Water ($60) Beverage cdass 2) Gin and Tonie ($6.0) 3) Mojito (36.0) Summary We will create a detailed EBAC (Estimated Blood Alcohol Content) Tracker. Along with sobriety, we will also track calorie content and cost data to better help the user choose 4) Marganita ($7.5) S) Martini ($7.0) their drinks for the night. This data varies greatly based on the location venue, and bartender, but very rough estimates are prowided for the purpose of this project Details 6) Pizsa Colada (36.0) 7)Sereudriver ($7.0 8) Vocka and Tonic (36.0) 9) Water (sa.0) Your progranm will need to start by asking the user for their weight to the nearest pound then ask them to input each drink they have. Thece drinks are defined below, and use theee items in the exartly the same ordrr, though you can add itens at the end of the ist if desired. We will use standard values for the rest of the items required in the formula and aczume that all drinks are consumed at the samme time for simphcity. When the user enters-1 for their drink choice you wall print a final summacy that includes 1) Every drisk they had that night with its detailed summary (alcohol content calories, and coat), 2) Thei bill for the night 3) Their total calories consumed. 4) Their final EBAC. and 5) How long until they are complete sober again. Below is a sample run of the program with the user input in green/bold/funderlined format. To complete this project you are requtred to use Accavlists and the Beverage object that I provided for you.(This meanS YOUL aY NOT you mmat Please enter the nuember of the ites you would like to drink: (-1 to exit) O) Baurben and Water ($60) 2) Gin and Tonie (36.0) 3) Moine ($6.0) 4) Mrprits ($7.5) 6) Pina Colada ($60) 8) Vodks nd Tonic (360) ) Wazer (30.0) Please enter the sumber of the inem you would like to drick (1 to est 0 Boarben and Water (56.0) Note: When 1 test your projects, I wall always enter valid data but I wil not enter the exact values from below. ? wil alter the weight number of drials, and dnnk selections to flly test your procram. 21 Gin and Todic (36.0) 3i Mosto 350) s:Martini (#20 6) Puna Colada (56.0) 7) Scredriver (37.0 Voda and Tanie ,ssa: 91 Water50.0)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
