Question: Using Java Prompt user for the number of people attending a pizza party. Calculate and display the cost of needed pizzas. People eat 2 slices

Using Java Prompt user for the number of people attending a pizza party. Calculate and display the cost of needed pizzas. People eat 2 slices on average. Each pizza has12 slices and costs $14.95. Note: there will ALWAYS be left over pizza for these tests. Do not be concerned if the number of people is an even multiple of six. Sample user input is provided in italics.

People: 4 Pizzas: 1 Cost: $14.95

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!