Question
In java Question 3 (20%): Order Up! Every day is different at Willys Wing World, and the prices are even subject to change as the
In java Question 3 (20%): Order Up! Every day is different at Willys Wing World, and the prices are even subject to change as the day goes on. You will be developing the ordering system as well as the price adjustment system. Each day, a variety of Willys Wings is served. You will be told how many there are, and then they will be given in the earlier format. Next, the machine will process orders. Orders will continue to arrive until the "ORDERS COMPLETE" command appears. Each order is formatted as follows: COUNT SIZE NAME E.g: 2 12 SmokeyChipotle stands for and order of 2 x 12 SmokeyChipotle Wings You will output the average SHU of all the orders, as well as the total income, in the following format: The income was $(Income) and the order averaged (AverageSHU) Scovilles per wing served Sometimes, a patron tries to order a menu item that is not currently offered. If they do so, print out This item is not on the menu. Then, continue processing the remaining orders normally. Hint: Remember that larger sizes have more wings, and, therefore, a greater effect on the average SHU. Willy, the proprietor, enjoys changing around the prices for the evening crowd using a "complex" and "sophisticated" algorithm. You will be given the name of the wing to be changed, and a percentage value by which it needs to change. The percentage will be a whole number, e.g. 50% will be given as 50. You will adjust the given wings prices by the correct percentage (i.e. 50% will make them half the price, and 200% will double their price), Then process another order in the manner given above. To achieve any points on this question, you MUST implement at least one meaningful method/function. Hint: The order processing component may be a good candidate for this. Example Input: 3 Plain 0 6 11 16 HoneyGarlic 100 6 11 16 Ranch 0 6 11 16 2 6 Ranch 1 18 HoneyGarlic 1 12 Plain ORDERS COMPLETE Ranch 80 1 18 HoneyGarlic 2 6 Ranch 5 6 HoneyBunny 1 12 Plain ORDERS COMPLETE Output: 2 order - 6 Ranch Wings 1 order - 18 HoneyGarlic Wings 1 order - 12 Plain Wings The income was $39.00 and the order averaged 42.86 Scovilles per wing served Price for RANCH are now $4.80/$8.80/$12.80 1 order - 18 HoneyGarlic Wings 2 order - 6 Ranch Wings This item is not on the menu. 1 order - 12 Plain Wings The income was $36.60 and the order averaged 42.86 Scovilles per wing served
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started