Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
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 tatal Problem Description and Given info Write a vava 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 piazas 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 i 10 Enter the number of alices each person will get: 5 Number of pitan to order : 7 For the given inputs, make sure that your program output looks exacty like the example above (including spelling, capitilization, punctuation spaces, and decimal points)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Theory Icdt 97 6th International Conference Delphi Greece January 8 10 1997 Proceedings Lncs 1186

Authors: Foto N. Afrati ,Phokion G. Kolaitis

1st Edition

3540622225, 978-3540622222

Students also viewed these Databases questions