Question
Write a C# (C sharp) program to help instructors calculate grades for students. You first want to prompt instructors to enter the desired number of
Write a C# (C sharp) program to help instructors calculate grades for students. You first want to prompt instructors to enter the desired number of scores. This value is the size of your array (you can use an array of type int for this assignment).
First, prompt the user to enter the number of students.
Second, prompt the user to enter the number of test.
Use the two values so you know how many times to perform loops for prompting the user for additional data. (Hint: Think about what type of loop is best when you know how many times it should be executed.)
After you have prompted the user for the number of students and scores, then you will use a loop to prompt the user to enter the number of scores specified for each student found in the first prompt. This means if the user entered 2 for the first prompt and 10 for the second prompt, the program would prompt the instructor a total of 20 times. Make sure you label the student number and score number in your prompt.
The first prompt might read "Enter Student 1 Score for Score 1,"while the second prompt would be
"Enter Student 1 Score for Score 2," and so on.
The student number (i.e., 1, 2, 3, etc.) is the key in the dictionary, and you add scores to the list of integers that stores the score for each student (i.e., this will be the value in the dictionary).
Output the student number, final grade, and corresponding letter grade. You may calculate the final grade however you see fit (you may use a loop, or you may use advanced C# features like the average function contained on collections).
Done in C#, C sharp
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started