Question: Write a java method calc_pizza_charge() that takes four integer arguments, one for the size (1 small, 2 medium, 3 large), one for the number of

 Write a java method calc_pizza_charge() that takes four integer arguments, one

Write a java method calc_pizza_charge() that takes four integer arguments, one for the size (1 small, 2 medium, 3 large), one for the number of meat toppings, one for the number of other toppings and another for the quantity of pizzas ordered. It should calculate and return the total due for that pizza order based on the following information: Small pizza base price: $6.50 Medium pizza base price: $9.50 Large pizza base price: $11.50 The base pizza price includes one meat and one non-meat topping. Additional meat toppings are charged at $3.50 each. Additional non-meat toppings are charged at $1.5 each. Sample Run: Enter pizza size (1 small, 2 medium, 3 large): 3 Enter number meat toppings: 2 Enter number or non-meat toppings: 3 Enter number of pizzas ordered: 2 Pizza Total: $36.00

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!