Engineering
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

answer
Answers: 3

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, bryneosburn
Line joining liquid phase with liquid and solid phase mixture is known as: a) liquidus b) solidus c) tie line d) none of the mentioned
Answers: 2
image
Engineering, 04.07.2019 18:10, mm016281
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
image
Engineering, 04.07.2019 18:10, alyssabailey7545
Give heat transfer applications for the following, (i) gas turbines (propulsion) ) gas turbines (power generation). (iii) steam turbines. (iv) combined heat and power (chp). (v) automotive engines
Answers: 1
image
Engineering, 04.07.2019 18:10, lowkeyqueenk
Apipe with an outside diameter of 15 cm is exposed to an ambient air and surrounding temperature of -20°c. the pipe has an outer surface temperature of 65°c and an emissivity of 0.85. if the rate of heat loss from the pipe surface is 0.95 kw per meter of length, the external convective heat transfer coefficient (h) is: (a) 12.5 w/m"k (b) 18.6 w/mk (c) 23.7 w/mk (d) 27.9 w/mk (e) 33.5 w/mk
Answers: 1
Do you know the correct answer?
One way to consider the value of a pizza is to determine how much the pizza costs per square inch....

Questions in other subjects:

Konu
Mathematics, 04.11.2020 22:20