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

bookChallenge: Analyze Temperatures

Uppgift

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.

Lösning

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 6
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

close

bookChallenge: Analyze Temperatures

Svep för att visa menyn

Uppgift

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.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 2. Kapitel 6
single

single

some-alt