Write an algorithm to compute average score for each student in the Computer Science Continuous assessment test. Assume each student sat for ten courses for the semester

total=0

n=10

for (i=1..n) total += test[i]

avg = total/n

yes

Input A, B and C

Calculate the average sore of 3 students by adding A, B and C
If the average is greater than 50
print "pass"
else
print "fail"

please send me code in c

Hussaini

Assume there are 163 students in your class, write the algorithm that would compute the average for each student.

To compute the average score for each student in the Computer Science Continuous assessment test, you can follow these steps:

1. Initialize an empty dictionary to store the scores of each student.

2. Iterate over each student in the class.

3. For each student, prompt or retrieve their scores for the ten courses.

4. Calculate the sum of the scores for the ten courses.

5. Compute the average by dividing the sum by 10 (the number of courses).

6. Store the average score for the student in the dictionary using their name as the key.

7. Repeat steps 3-6 for each student in the class.

8. At the end, the dictionary will contain the average score for each student.

Here is a sample Python algorithm that implements the steps described above:

```python
# Step 1
student_scores = {}

# Step 2
for student in class_students:
# Step 3
scores = []
for i in range(10):
# Prompt or retrieve score for each course
score = float(input(f"Enter score for course {i+1} for {student}: "))
scores.append(score)

# Step 4
total_score = sum(scores)

# Step 5
average_score = total_score / 10

# Step 6
student_scores[student] = average_score

# Step 8
print("Average Scores:")
for student, score in student_scores.items():
print(f"{student}: {score}")
```

Remember to replace `class_students` with the list of students in your class in the code above. Additionally, you may need to modify the code to suit your specific input/output requirements.