Grades are assigned on the standard 90, 80, 70, 60 scale. You are to write an algorithm which will receive a student name and a percentage grade and display the letter grade to be awarded

printf "%d gets a %s",$score,("F"x6,qw(D C B A))[int($score-1)/10];

start

input mark
if mark is 75 to 100
display a
if mark is 50 to 59
display b
if mark is 0 to 19
display u
end

To write the algorithm for assigning letter grades based on a percentage grade, you can follow these steps:

1. Start the algorithm.
2. Receive the student's name as input.
3. Receive the student's percentage grade as input.
4. If the percentage grade is greater than or equal to 90, go to step 5. Otherwise, go to step 8.
5. Assign the letter grade "A" to the student.
6. Display the student's name and the assigned letter grade ("A") as output.
7. End the algorithm.
8. If the percentage grade is greater than or equal to 80, go to step 9. Otherwise, go to step 13.
9. Assign the letter grade "B" to the student.
10. Display the student's name and the assigned letter grade ("B") as output.
11. End the algorithm.
12. Repeat steps 8 to 11 for the remaining grade ranges (70-79 for "C" and 60-69 for "D").
13. Assign the letter grade "F" to the student.
14. Display the student's name and the assigned letter grade ("F") as output.
15. End the algorithm.

Here is a sample algorithm written in pseudocode:

```
1. Start the algorithm.
2. Read studentName.
3. Read percentageGrade.
4. If percentageGrade >= 90, go to step 5. Otherwise, go to step 8.
5. letterGrade = "A".
6. Display "Student Name: studentName".
7. Display "Letter Grade: letterGrade".
8. If percentageGrade >= 80, go to step 9. Otherwise, go to step 13.
9. letterGrade = "B".
10. Display "Student Name: studentName".
11. Display "Letter Grade: letterGrade".
12. End the algorithm.
13. If percentageGrade >= 70, go to step 14. Otherwise, go to step 15.
14. letterGrade = "C".
15. Display "Student Name: studentName".
16. Display "Letter Grade: letterGrade".
17. End the algorithm.
18. letterGrade = "F".
19. Display "Student Name: studentName".
20. Display "Letter Grade: letterGrade".
21. End the algorithm.
```

Note: Replace `studentName` and `percentageGrade` with the actual variable names to be used in your programming language.

To write an algorithm that assigns a grade based on a percentage, you can follow these steps:

1. Start the algorithm.
2. Accept the student name and percentage grade as input.
3. Create a variable to store the letter grade.
4. Use conditional statements (if-else or switch-case) to determine the letter grade based on the percentage.

Here's an example algorithm in pseudocode:

```
// Start of algorithm

// Step 1: Accept student name and percentage grade as input
input studentName
input percentageGrade

// Step 2: Create a variable to store the letter grade
variable letterGrade

// Step 3: Use conditional statements to determine the letter grade
if percentageGrade >= 90:
letterGrade = 'A'
elseif percentageGrade >= 80:
letterGrade = 'B'
elseif percentageGrade >= 70:
letterGrade = 'C'
elseif percentageGrade >= 60:
letterGrade = 'D'
else:
letterGrade = 'F'

// Step 4: Display the letter grade
output "Student name: " + studentName
output "Percentage grade: " + percentageGrade
output "Letter grade: " + letterGrade

// End of algorithm
```

In this algorithm, we accept the student name and percentage grade as input. Then, using conditional statements, we check the percentage grade against various thresholds to determine the appropriate letter grade. Finally, we display the student name, percentage grade, and letter grade as output.