Abschnitt 1. Kapitel 13
single
Challenge: Analyze Temperatures
Swipe um das Menü anzuzeigen
Aufgabe
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.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 1. Kapitel 13
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen