Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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