subject
Engineering, 20.12.2021 19:50 dondre54

One way to consider the value of a pizza is to determine how much the pizza costs per square inch. In order to find this cost, you need to determine the area of the pizza, which can be
found by using the formula Area = Tr?. As long as you know the price and diameter of the
pizzas, you can find out which restaurant offers the best value.
(a) Write the function float area(float diameter) that calculates and returns a area per
square inch of a pizza. NB: radius = diameter
(3 marks)
(b) The cost per square inch is determined by dividing the pizza's price by the number of
square inches (that is, its area). Write a main function that uses the area function
to calculate the cost per square inch of pizza from 7 different restaurants and print the
restaurant which offers the best value pizza and the restaurant which offers the worst
value pizza. The price and diameter are stored in a two-dimensional array as shown
below.
(5 marks)
Price (FCFA)
Diameter (inch) 6.4
2317.09 5801.43 8275.32 7485.53 10743.40
10.2
14.25
12.82
16.8

ansver
Answers: 3

Another question on Engineering

question
Engineering, 04.07.2019 18:10
What difference(s) did you notice using a pneumatic circuit over hydraulic circuit.explain why the pneumatic piston stumbles when it hits an obstacle.
Answers: 2
question
Engineering, 04.07.2019 18:10
Air is to be cooled in the evaporator section of a refrigerator by passing it over a bank of 0.8-cm-outer-diameter and 0.4-m-long tubes inside which the refrigerant is evaporating at -20°c. air approaches the tube bank in the normal direction at 0°c and 1 atm with a mean velocity of 4 m/s. the tubes are arranged in-line with longitudinal and transverse pitches of sl- st 1.5 cm. there are 30 rows in the flow direction with 15 tubes in each row. determine (a) the refrigeration capacity of this system and (b) pressure drop across the tube bank. evaluate the air properties at an assumed mean temperature of -5°c and 1 atm. is this a good assumption?
Answers: 1
question
Engineering, 04.07.2019 18:10
True or false (explain) (110)[111] is a slip system in bcc metals . the {111} family in fcc contains 8 planes. resolved shear stress (rss) in single crystals is just related to the applied stress. critical resolved shear stress (crss) in single crystal metals is direct proportional to the number of defects in the structure
Answers: 2
question
Engineering, 04.07.2019 18:20
Derive the correction factor formula for conical nozzle i=-(1+ cosa) and calculate the nozzle angle correction factor for a nozzle whose divergence hal-fangle is 13 (hint: assume that all the mass flow originates at the apex of the cone.
Answers: 3
You know the right answer?
One way to consider the value of a pizza is to determine how much the pizza costs per square inch....
Questions
question
Mathematics, 03.02.2020 02:43
question
Mathematics, 03.02.2020 02:43
Questions on the website: 13722367