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 consolebased 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.
MenuDriven Interface:
Create a menudriven interface with the following options:
Option : Add a new student and their grade prompt for the name and grade
Option : Display the list of students and their grades.
Option : Calculate and display the average grade.
Option : Display the highest and lowest grades and the corresponding student names.
Option : 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 DecisionMaking:
Use loops to continuously display the menu until the user chooses to exit. Implement decisionmaking 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
