Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Analyze Temperatures | Searching and Filtering Arrays
C# Arrays

bookChallenge: Analyze Temperatures

Oppgave

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

Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 2. Kapittel 6
single

single

Spør AI

expand

Spør AI

ChatGPT

Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår

close

bookChallenge: Analyze Temperatures

Sveip for å vise menyen

Oppgave

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 desktopBytt til skrivebordet for virkelighetspraksisFortsett der du er med et av alternativene nedenfor
Alt var klart?

Hvordan kan vi forbedre det?

Takk for tilbakemeldingene dine!

Seksjon 2. Kapittel 6
single

single

some-alt