Need help with shell script
Posted
by via-point
on Stack Overflow
See other posts from Stack Overflow
or by via-point
Published on 2010-04-15T15:08:45Z
Indexed on
2010/04/17
5:13 UTC
Read the original article
Hit count: 231
I am a total newbie to Shell Scripting so please bear with me. I need to create a shell script called script1 that will calculate and then display letter grade of ABC2345.
- Read in the following grades from keyboard:
- Assignments 40%
- Test1 15%
- Test2 15%
- Final exam 30%
- Calculate and display the number grade using the weight of each factor above
- Convert the number grade to letter grade using the table below:
- Number Grade Letter Grade
- 90 - 100 A+
- 85 - 89 A
- 80 - 84
- 77 - 79 B+
- 73 - 76 B
- 70 - 72 B-
- 67 - 69 C+
- 63 - 66 C
- 60 - 62 C-
- 57 - 59 D+
- 53 - 56 D
- 50 - 52 D-
- 0 - 49 F
Any help would be appreciated :) Thank you!
© Stack Overflow or respective owner