Question: This java language 01) Create a GUILunchOrder application that prompts the user for the number of hamburger salads, French fries and sodas in a lunch

 This java language 01) Create a GUILunchOrder application that prompts the

This java language

01) Create a GUILunchOrder application that prompts the user for the number of hamburger salads, French fries and sodas in a lunch order. Then, total cost, and total amounts of fat, carbs, fiber and protein is calculated and placed in a GUI text field. Please refer to the table for the more information. Item Price Fat(grams) Carbohydrates Fibre Protein Hamburger $1.85 9 33 1 15 Salad $2.00 1 11 5 2.9 Soda $0.95 0 38 0 0 Fries $1.30 11 36 4 2 Output should look similar to; LUNCH ORDER Enter number of hamburgers: 3 3 Enter number of salads: Enter number of fries: 3 Enter number of sodas: Total Fat: grams Total Carbs: 354 Erams 30 Total Fiber: grams Total Protein: 59.7 grams Total Cost: $18.30 Calculate Create and LunchOrder class with constructor public LunchOrder(int numBugers, int numSalad, int numSoda, int numFries). Write get methods getFat(), get Carbs().getFibre, getProtien() to return the amount of each nutrient in a lunchOrder object. Also create a getTotalCost() method calculate the total cost. The create the class GUILunchOrder to model the form above

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!