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
Apump is used to circulate hot water in a home heating system. water enters the well-insulated pump operating at steady state at a rate of 0.42 gal/min. the inlet pressure and temperature are 14.7 lbf/in.2, and 180°f, respectively; at the exit the pressure is 60 lbf/in.2 the pump requires 1/15 hp of power input. water can be modeled as an incompressible substance with constant density of 60.58 lb/ft3 and constant specific heat of 1 btu/lb or. neglecting kinetic and potential energy effects, determine the temperature change, in °r, as the water flows through the pump.
Answers: 1
question
Engineering, 04.07.2019 18:10
Courses that are developed by subject matter experts, internal or extemal to the college or university. these programs are marketed by the school (clo2) marks a)-vocational schools b)-vendor training c)-colleges & universities d)-continuing education programs
Answers: 2
question
Engineering, 04.07.2019 18:10
What are the two (02) benefits, which may result from a successful implementation of preventive maintenance (pm) program in an organization? (clo3)a)- lean manufacturing b)-overlapping responsibilities c)-the planner is not qualified d)-accurate contractor information e)-reduction in equipment redundancies f)-accurate stores information
Answers: 3
question
Engineering, 04.07.2019 18:20
Water vapor initially at 10 bar and 400 °c is contained within a piston-cylinder assembly. the water lost heat to the surrounding according to isochoric (iso-volumetric) process until its temperature is 150 °c. the water is then condensed isothermally to saturated liquid. for the water as a system, calculate the work in kj/kg
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
question
Biology, 25.05.2020 15:57
Questions on the website: 13722361