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

Other questions on the subject: Engineering

image
Engineering, 03.07.2019 14:10, BardiFan
Amass of m 1.5 kg of steam is contained in a closed rigid container. initially the pressure and temperature of the steam are: p 1.5 mpa and t 240°c (superheated state), respectively. then the temperature drops to t2= 100°c as the result of heat transfer to the surroundings. determine: a) quality of the steam at the end of the process, b) heat transfer with the surroundings. for: p1.5 mpa and t 240°c: enthalpy of superheated vapour is 2900 kj/kg, specific volume of superheated vapour is 0. 1483 m/kg, while for t 100°c: enthalpy of saturated liquid water is 419kj/kg, specific volume of saturated liquid water is 0.001043m/kg, enthalpy of saturated vapour is 2676 kj/kg, specific volume of saturated vapour is 1.672 m/kg and pressure is 0.1 mpa.
Answers: 3
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, jadeochoa4466
The temperature of air decreases as it is compressed by an adiabatic compressor. a)- true b)- false
Answers: 2
image
Engineering, 04.07.2019 18:10, agpraga23ovv65c
Carbon dioxide gas expands isotherm a turbine from 1 mpa, 500 k at 200 kpa. assuming the ideal gas model and neglecting the kinetic and potential energies, determine the change in entropy, heat transfer and work for each kilogram of co2.
Answers: 2
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 in other subjects:

Konu
Mathematics, 13.04.2021 05:10