Question: You will write a program to help me determine the final letter grade and calculate the average score. The steps and requirements are described below:

You will write a program to help me determine the final letter grade and
calculate the average score. The steps and requirements are described
below:
1. First, create a dictionary of 10 students with student name as key and score as
value.
For simplicity, name students as student 1, student 2, etc. Scores are random integers from 0-
100.
Hint: you know how to use a loop to count from 1 to 10. Use string concatenation, you add
student with the control variable i. This will give you student names.
2. Use a FOREACH loop to output each student in terms of the name and score.
3. Calculate and output the average score of the class.
4. Determine and output the letter grade based on the following scheme:
A if score >=90
B if 90> score >=80
C if 80> score >=70
D otherwise
Overall, you program needs to output the name, score, and letter grade
of each student, and the average score of the class.

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!