Question: Please help solve this by using JAVA. Make it clear and easy for me to understand! Thanks in advance! 2.1 Area of a Pizza Pie
2.1 Area of a Pizza Pie Pizzas in the USA are just big circles of bread, cheese, and tomato sauce sured by the size of their diameter in inches. You can use that to get the area of the circle, which is measured in square inches. Write a method which takes in the diameter of a circle and returns the area. Remember: d = 2r 2.2 Computing the Price per Square Inch Figuring out the price per square inch should be its own method. Given the area of a circle in square inches and the price, the method should return the price per square inch. 2.3 Interactivity Your program should be interactive. This means that the program should ask the user to enter the size of the pizza and the price.4 All the input from console and output to the user5 should happen on in main. 3 Grading Criteria As this is half of this week's assignment, this one is worth 50 points. There are also 8 points of extra credit here, a extremely large opportunity 15 points The program calculates the price per square inch of a pizza. 15 points The program correctly implements the specified methods and are correctly called by main. 5 points Program is interactive. 5 points In addition, all the interactivity is inside of the main method. There are no println statements or reading from a Scanner except in aain. 5 points The source code is reasonably formatted (eg proper indentation). 5 points Correct spelling is used in the outputs. 5 points EC Program has vhile loops to enter more pizzas and figures out the cheapest pizza of all entered options. This requires reading ahead. 3 points EC Add in support for Chicago style pizzas. This is left to the discretion of the students
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
