Question: Write a Java program to calculate and output the net price of a pizza based on two user inputs: size (S for small, M for

Write a Java program to calculate and output the net price of a pizza based on two user inputs: size (S for small, M for medium ,or L for large) and number of toppings. The net price of pizza is the sum of the following:Base price of the pizza is $8.50 forsmall, $10.50 for medium, and $12.50 for large.The first topping is free; the second and subsequent topping is an addition $0.50 for each.Sales tax is an additional 7% of the total price.

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!