Explore BrainMass

Linux shell script to compute student grades

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

Create a shell script to run on Knoppix/Linux, that will compute and display the letter grades for the students based on the average of 4 test scores.

Letter grade is computed from average score using following scale:

90 to 100 : grade "A"
80 to 89 : grade "B"
70 to 79 : grade "C"
65 to 69 : grade "D"
0 to 64 : grade "F"

© BrainMass Inc. brainmass.com December 20, 2018, 12:13 am ad1c9bdddf

Solution Preview

Attached (bash) shell script (145279.sh) first prints a welcome message ...

Solution Summary

The solution is provided as a Bash script, that allows the flexibility to compute grades for different number of students during each invocation without needing to modify the script file.