Mr Ali has given a test to his class. He would like to have the average score for the class as well as the highest and lowest scores. Write a pseudocode to calculate and display these values. Then convert your pseudocode into a program by using any programming language of your choice

Pseudocode:

1. Initialize the total_score as 0, highest_score as 0, and lowest_score as infinity.
2. Initialize the number of students as 0.
3. Read the number of students in the class.
4. Repeat for each student:
5. Read the score for the student.
6. Add the score to the total_score.
7. Update the highest_score if the current score is greater than the highest_score.
8. Update the lowest_score if the current score is less than the lowest_score.
9. Increment the number of students by 1.
10. Calculate the average score by dividing the total_score by the number of students.
11. Display the average score, highest_score, and lowest_score.

Program (in Python):

```python
num_students = int(input("Enter the number of students: "))
total_score = 0
highest_score = 0
lowest_score = float('inf')

for i in range(num_students):
score = float(input("Enter the score for student {}: ".format(i+1)))
total_score += score
if score > highest_score:
highest_score = score
if score < lowest_score:
lowest_score = score

average_score = total_score / num_students

print("Average Score:", average_score)
print("Highest Score:", highest_score)
print("Lowest Score:", lowest_score)
```

This program prompts the user to enter the number of students and their scores one by one. It then calculates the average score, highest score, and lowest score using a loop. Finally, it displays these values on the console.