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
Get step-by-step solutions from verified subject matter experts
