Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Analyze Temperatures | Searching and Filtering Arrays
Quizzes & Challenges
Quizzes
Challenges
/
C# Arrays

bookChallenge: Analyze Temperatures

Task

Swipe to start coding

Write a program to analyze a week's temperature readings using an array. Your program should determine the highest temperature, the lowest temperature, and the average temperature from the array of daily readings.

  • Find the highest value in the temperatures array and return it.
  • Find the lowest value in the temperatures array and return it.
  • Calculate the average of all values in the temperatures array and return it.
  • Use only the data provided in the temperatures array parameter for each function.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 6
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Suggested prompts:

Can you explain this in simpler terms?

What are the main points I should remember?

Can you give me an example?

close

bookChallenge: Analyze Temperatures

Swipe to show menu

Task

Swipe to start coding

Write a program to analyze a week's temperature readings using an array. Your program should determine the highest temperature, the lowest temperature, and the average temperature from the array of daily readings.

  • Find the highest value in the temperatures array and return it.
  • Find the lowest value in the temperatures array and return it.
  • Calculate the average of all values in the temperatures array and return it.
  • Use only the data provided in the temperatures array parameter for each function.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 2. ChapterΒ 6
single

single

some-alt