Challenge: Filter Passing Grades
Tehtävä
Swipe to start coding
Write a program that filters and prints all passing grades from an integer array of scores. A passing grade is any score that is 60 or above.
- Return a new integer array containing only the values from
scoresthat are greater than or equal to 60. - The order of passing grades in the returned array should match their order in the original
scoresarray. - If there are no passing grades, return an empty array.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 4
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Suggested prompts:
Can you explain this in simpler terms?
What are the main benefits of this approach?
Are there any common mistakes to avoid with this?
Awesome!
Completion rate improved to 3.57
Challenge: Filter Passing Grades
Pyyhkäise näyttääksesi valikon
Tehtävä
Swipe to start coding
Write a program that filters and prints all passing grades from an integer array of scores. A passing grade is any score that is 60 or above.
- Return a new integer array containing only the values from
scoresthat are greater than or equal to 60. - The order of passing grades in the returned array should match their order in the original
scoresarray. - If there are no passing grades, return an empty array.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 2. Luku 4
single