Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

in c++ thankyou Requirements: . Name your source file program9.cpp . Make an array with the definition: double celcius [7] [24]; Read in the data

in c++ thankyou
image text in transcribed
image text in transcribed
image text in transcribed
Requirements: . Name your source file program9.cpp . Make an array with the definition: double celcius [7] [24]; Read in the data from the file temperature.dat, convert each value to celcius, and save the celcius temperatures in this array. Write a function with the following prototype: void show_warmer (double temperature 24], int days, double cutoff); This function takes a parameter temperature which is a two-dimensional array of some num ber of days, of 24 hours each. The second parameter days is the number of days for which to access the array temperature. The third parameter cutoff is a value which elements of temperature are compared to in looking for values which are larger. This function needs to print out the values which it finds in the format of the example below (e.g. the output line "At day 2, hour 19, the temperature was 22.78 C.") . Prompt the user to enter a value, and then call the function show.warmer using the value entered by the user for the cutoff parameter. (The prompts and layout must look like the example below.) write a function with the following prototype: double find average (double temperature ) [24], int days); This function takes a parameter temperature which is a two-dimensional array of some num ber of days, of 24 hours each. The second parameter days is the number of days for which to access the array temperature. This function needs to find and return the average of all the values in temperature. It must not print anything on the screen

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Machine Learning And Knowledge Discovery In Databases European Conference Ecml Pkdd 2015 Porto Portugal September 7 11 2015 Proceedings Part 2 Lnai 9285

Authors: Annalisa Appice ,Pedro Pereira Rodrigues ,Vitor Santos Costa ,Joao Gama ,Alipio Jorge ,Carlos Soares

1st Edition

3319235249, 978-3319235240

More Books

Students also viewed these Databases questions

Question

Count ( * ) will count all rows including null values. True False

Answered: 1 week ago

Question

2. Compare the sales and service departments at Auto World.

Answered: 1 week ago