Challenge: Analyze Temperatures
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
temperaturesarray and return it. - Find the lowest value in the
temperaturesarray and return it. - Calculate the average of all values in the
temperaturesarray and return it. - Use only the data provided in the
temperaturesarray parameter for each function.
Ratkaisu
Kiitos palautteestasi!
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Awesome!
Completion rate improved to 3.57
Challenge: Analyze Temperatures
Pyyhkäise näyttääksesi valikon
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
temperaturesarray and return it. - Find the lowest value in the
temperaturesarray and return it. - Calculate the average of all values in the
temperaturesarray and return it. - Use only the data provided in the
temperaturesarray parameter for each function.
Ratkaisu
Kiitos palautteestasi!
single