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
For the closed feedwater heater below, feedwater enters state 3 at a pressure of 2000 psia and temperature of 420 °f at a rate of ix10 ibhr. the feedwat extracted steam enters state 1 at a pressure of 1000 psia and enthalpy of 1500 btu/lbm. the extracted er leaves at an enthalpy of 528.7 btu/lbm steam leaves as a saturated liquid. (16) a) determine the mass flow rate of the extraction steam used to heat the feedwater (10) b) determine the terminal temperature difference of the closed feedwater heater
Answers: 3
question
Engineering, 04.07.2019 18:10
The higher the astm grain size number, the finer the gran is. a)-true b)-false
Answers: 2
question
Engineering, 04.07.2019 18:10
Which of the following components of a pid controlled accumulates the error over time and responds to system error after the error has been accumulated? a)- proportional b)- derivative c)- integral d)- on/off.
Answers: 2
question
Engineering, 04.07.2019 18:10
Items are similar to the free issue items, but their access is limited. (clo5) a)-bin stock items free issue b)-bin stock controlled issue c)-critical or insurance spares d)-rebuildable spares e)-consumables
Answers: 1
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, 18.02.2021 05:20
question
Mathematics, 18.02.2021 05:20
question
Mathematics, 18.02.2021 05:20
question
Mathematics, 18.02.2021 05:20
Questions on the website: 13722361