Explore BrainMass
Share

Linux shell script to compute student grades

This content was COPIED 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 March 21, 2019, 3:12 pm ad1c9bdddf
https://brainmass.com/computer-science/software-development/linux-shell-script-compute-student-grades-145279

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.

$2.19