Question: Write a class Exercise 1 with a method public static void pizza Service A() The method should feature a loop. In each step of the

 Write a class Exercise 1 with a method public static void

Write a class Exercise 1 with a method public static void pizza Service A() The method should feature a loop. In each step of the loop, the program should ask the staff to enter a pizza order, and then display the order details as well as the pizza price. Pizza orders should be entered as a sequence of up to 5 characters all on one line: The first character should be either m (meaning medium) or l (meaning large). This should be followed by zero to four characters indicating the pizza toppings. Each of these characters should be the initial character of one of the toppings. Multiple occurrences of the same topping should be allowed and charged accordingly. For example, if the staff member inputs the program should respond with output as follows: Medium pizza with pineapple, ham, pound 6.40

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!