Question
Linux TASK 1 Write a shell script called discovery7 that prompts the user for a grade between 0 and 100. The shell script should determine
Linux
TASK 1
Write a shell script called discovery7 that prompts the user for a grade between 0 and 100. The shell script should determine the correct letter grade for the numerical grade based on the following grading system. (Hint: use Table 7-5)
A = 90 100
B = 80 < 90
C = 70 < 80
D = 60 < 70
F = <60
The script should then display The letter grade is: to the user.
TASK 2
Add code to the shell script so that it continues to prompt the user for grades until the user chooses to exit the shell script.
TASK3
Take two screen snips:
One showing all the lines in the script (use vi or cat)
One showing the results of running the script
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started