Question: 6 . 9 Pizza Order ( Individual Assignment ) This is an Individual Assignment. You must complete this assignment on your own. Do not collaborate

6.9 Pizza Order (Individual Assignment) This is an Individual Assignment. You must complete this assignment on your own. Do not collaborate or share code with other students. Do not copy and paste code from anywhere. Do not use any resources outside of those provided in the course materials. Do not use any language features that have not been covered to this point in the course materials. If you get stuck or need help, please use only the help systems provided in this course. Required Skills Inventory Declare a variable import java.util.Scanner Declare and instantiate a Scanner Use System.out.print to prompt the user for input Use a Scanner to collect user input` Use math operators to construct an expression Use Math methods to construct an expression Use Math.ceil to round a value up Use an explicit type casting to construct an expression Store a value in a variable Use String literals to define a String value Retrieve a value from a variable Output the value of a variable to the console Use String concatenation operator to construct an expression Concatenate the value of a variable and a String Output to console with System.out.println Problem Description and Given Info Write a Java program that takes two int numbers as the inputs. The first number will be the total number of people at a party, and the second number will be the number of slices of pizza each person will get. The program should compute and output the number of pizzas we will need in order to feed everyone. Assume that each pizza will have 8 slices. Be sure to round up to the nearest whole number of pizzas to order. The Math.ceil function will be useful for this purpose. Here is an example of what the user should see when the program runs. Enter total number of people : 10 Enter the number of slices each person will get : 5 Number of pizzas to order : 7

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!