Question: Please use jGrasp in a java format and import java.util.Scanner; Write an application that prompts the user to make a choice for pizza size (S,
Please use jGrasp in a java format and import java.util.Scanner; Write an application that prompts the user to make a choice for pizza size (S, M, L, X). Display an error message if the user enters an invalid pizza size and prompt the user to try again. The corresponding price of the pizza is $6.99, $8.99, $12.50, and $15.00. Display a list of toppings and ask the user how many toppings they would like (50 cents per topping). Display the price of the pizza based on the size and number of toppings. You should incorporate 3 arrays (size, price, toppingList). Search the size array to determine the location of the desired size and use the location to pull out the proper price (M occurs at index=1: cost = price[index] (=8.99)). Save the application as PizzaChoice.java
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
