Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Student Grades Analyzer | Working with Lists and Arrays
C# Lists & Collections

bookChallenge: Student Grades Analyzer

Opgave

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.

Løsning

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 7
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

close

bookChallenge: Student Grades Analyzer

Stryg for at vise menuen

Opgave

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.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 7
single

single

some-alt