Question: This needs to be in C# . You are tasked with creating a console - based program to manage a list of students and their

This needs to be in C#. You are tasked with creating a console-based program to manage a list of students and their grades.
Implement the following functionalities:
Array Initialization:
Initialize two arrays:
string[] studentNames: An array to store the names of the students.
double[] studentGrades: An array to store the grades of the students.
Menu-Driven Interface:
Create a menu-driven interface with the following options:
Option 1: Add a new student and their grade (prompt for the name and grade).
Option 2: Display the list of students and their grades.
Option 3: Calculate and display the average grade.
Option 4: Display the highest and lowest grades and the corresponding student names.
Option 5: Exit the program.
Methods:
Implement the following methods:
AddStudent: Adds a new student and their grade to the arrays.
DisplayStudents: Displays the list of students and their grades.
CalculateAverage: Calculates and displays the average grade.
DisplayMinMaxGrades: Displays the highest and lowest grades along with the corresponding student
names.
Looping and Decision-Making:
Use loops to continuously display the menu until the user chooses to exit. Implement decision-making to
handle user input and execute the corresponding functionality.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!