Question: Please zip all HW files, including source files ( . java ) and results ( . txt ) for this week in ONE folder and

Please zip all HW files, including source files (.java) and results (.txt) for this week in
ONE folder and submit on D2L.
At the beginning of each .java file, please include (in comments):
//(insert here: Semester, Year)
//Student Name
//Instructor:
//HW #x: (Name of HW)
//Due: (insert due date here)
//File name: (Insert FileName).java
HW #1:
I love pizza! Determine the exact number of square inches of pizza I will get from 2-7"
pizzas and then from a 14'' pizza, letting me know the outcome of your computations stemp
Then, determine how many more square inches of pizza I will get if I order 1-14'' pizza,
instead of 1-7" pizza, again, letting me know the outcome of your computations.
Also, if I order the 14'' pizza, beside myself, I will have to share it equally with 5 friends.
Exactly how much pizza will I get to eat?
Note: Make sure your displayed outcomes are user-friendly.
//CS200%:2%
//(insert here: Semester, Year)
//Instructor:
//HW #x: (Name of HW)
//Due: (insert due date here)
//File name: Pizza.java
public class Pizza {
public static void main(String args[]){
//declare all needed variables first
//complete necessary computation processes
//display user friendly outcomes to solve the problem
System.out.println();
//System.out.println() is to display output to the screenstep;
/*data placed between quotes is called a string literal, + concatenates , to
display variable values - do not use quotes*/ag;
}
}
Hints:
What is more accurate-- an int, float, or double? stepe
concatenates string literals & variable values to create detailed output. {T
There are two features of the Math class that will come in handy for this
assignment, Math.pow and Math.PI
How do you determine the area/square inches of a circle?
Please zip all HW files, including source files (

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 Programming Questions!