Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(b) A motor manufacturer has collected information about the noise levels (in decibels) of five different motorcars. Each car's noise level has been measured at
(b) A motor manufacturer has collected information about the noise levels (in decibels) of five different motorcars. Each car's noise level has been measured at six different speeds. The data looks as follows: 20 km/h 40km/h 60km/h 80km/h 100km/h 120km/h Car 1 90 94 102 111 122 134 Car 2 77 80 86 94 103 113 Car 3 83 85 94 100 111 121 Car 4 71 76 85 96 110 125 Car 5 84 91 98 105 112 119 Write a program using appropriate C++ functions that inputs this data and displays it in an appropriate format on the screen. It must then calculate the average noise level of each car. The main function of the program is given below: int main() { int NoiseData [NumCars] [Num.Speeds]; getData (NoiseData); showData (NoiseData); calcAverages (NoiseData); return 0; } (10 marks)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started