Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Student Grades Analyzer | Working with Lists and Arrays
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
C# Lists & Collections

bookChallenge: Student Grades Analyzer

Tâche

Swipe to start coding

Build a C# program that analyzes student grades for a class using arrays and lists.

  • Calculate the average grade using the studentGrades array.
  • Identify all students whose grades are above the calculated average and return their names as a list.
  • Use the provided studentNames list and studentGrades array to process the data.
  • Return the computed average as a double from the CalculateAverage function.
  • Return a list of student names who have grades above the average from the GetStudentsAboveAverage function.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 7
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

Suggested prompts:

Can you explain this in simpler terms?

What are the main takeaways from this?

Can you give me a real-world example?

close

bookChallenge: Student Grades Analyzer

Glissez pour afficher le menu

Tâche

Swipe to start coding

Build a C# program that analyzes student grades for a class using arrays and lists.

  • Calculate the average grade using the studentGrades array.
  • Identify all students whose grades are above the calculated average and return their names as a list.
  • Use the provided studentNames list and studentGrades array to process the data.
  • Return the computed average as a double from the CalculateAverage function.
  • Return a list of student names who have grades above the average from the GetStudentsAboveAverage function.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 1. Chapitre 7
single

single

some-alt