: Mining Temperature Data
The highs and lows of the 3 first weeks of 2020 temperature data are available on a piece paper and we have decided to store
them in a three-dimensional array in which the first index represents the 3 first weeks of the year, and take the value from 0 to
2; the second index is numbered 0 through 6 and represents the days of the week, and the last index which is numbered 0 and
1, represents the day’s high and low temperatures, respectively.
(2.1) Write a C program that enables you to capture the 3 first weeks of 2020 temperature data, from the keyboard, and store
them in the array described above. You must check the validity of any data entered.
(2.2) Write functions to request the following:
(a) Any day’s high and low temperature
(b) Average high and low temperature for given week
(c) Week and day with the highest temperature
(d) Week and day with the lowest temperature
(2.3) Write a driver program to test your functions defined in (2.1) and (2.2).

Recommended Answers

All 2 Replies

This just seems like you want someone to do your homework assignment for you. We will help you, but we won't just do your work for you for free. Please show the code you have so far and where you're stuck or need help.

You may wish to tell a bit more.

  1. Is it C or C++.
  2. What's stopping you right now? (Read the forum policies about homework and/or assignments.)
  3. Let's hope this is in Centigrade. Be sure to call this out. Then again, maybe Kelvin would be a nice change or maybe for extra credit support input of all accepted temperature scales. 32F, 0C, etc.
  4. The last thing is this "driver program." Did you mean to say "unit tests?"
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.