Question: Using Visual Studio - C# Programming, In the previous project, you created a program to help instructors calculate student grades. You will modify the program

Using Visual Studio - C# Programming, In the previous project, you created a program to help instructors calculate student grades. You will modify the program to use dictionaries and lists instead of multidimensional arrays for this assignment.

The key of the dictionary is an integer that is the student id. The value type in the dictionary is a list of type integers. Use this to store the test scores for each student.

First, prompt the user to enter the number of students.

Second, prompt the user to enter the number of test taken.

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 testnumber, 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 test number in your prompt.

The first prompt might read "Enter Student 1 Score for 1,"while the second prompt would be

"Enter Student 1 Score for 2," and so on.

The student number (i.e., 1, 2, 3, etc.) is the key in the dictionary, and you add test 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).

This is my previous C# project for a student grade calc.:

using System.IO; using System;

class StudentGradesCalc { static void Main() { int students, scores; //Reading number of students - row Console.Write(" Input number of students: "); students = Convert.ToInt32(Console.ReadLine()); //Reading number of scores - column Console.Write(" Input number of scores: "); scores = Convert.ToInt32(Console.ReadLine()); //Array to hold studentScores int[,] studentScores = new int[students,scores]; Console.WriteLine(); //Reading scores from user for(int i=0; i

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Heres how you can modify your previous C program to use dictionaries and lists instead of a multidim... View full answer

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 Databases Questions!