Question: voblem 4 the following: In this function you will need to determine how many pizzas to purchase based on Number of people eat Number of


voblem 4 the following: In this function you will need to determine how many pizzas to purchase based on Number of people eat Number of slices each person can inches. How large each pizza to be purchased as a diameter in The function should take all the above as parameters and return the number of pizzas needed to feed the party goers. Make sure you round up the number of pizza's to the next whole pizza. Please use a descriptive function name, proper data types for the parameters, and proper function return type to get full credit. Problem solving hints: A surface area of slice of a single of pizza is 14.125 square inches. The surface area area of pizza can found using the formula: Pizza Area 3.1415927 X pizza radius X pizza radius Here is an example: Diameter is 12-inches Number of people is 4 Number of slices per person is 2 Pizza area 3.1415927 X 6 X 6 113.0 square inches Number of slices per pizza 113/14.125 8 Number of slices of pizza needed 4 X 2 8 So we need only one pizza for four people. Not much pizza but hey we are cheap
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
