Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Why am I getting a syntax error on this script in fedora? line 13 M! /bin/bash # This program assigns letter grades to numeric grades
Why am I getting a syntax error on this script in fedora? line 13
M! /bin/bash # This program assigns letter grades to numeric grades echo -e "Enter number grade to get letter grade:" userinput-l while test $userinput -eq 1 0 echo -e "Enter Grade O 100" read grade if [sgrade -lt 60] then echo -e "Your grade is F" elif[$grade -ge 60 -a $grade -lt 70] then echo -e "Your grade is D" elif [$grade -ge 70 -a $grade -Lt 80] then echo -e "Your grade is C" elif [sgrade -ge 80 -a $grade -lt 90] then echo -e "Your grade is B" elif [$grade -ge 90 -a $grade -Lt 100] then echo -e "Your grade is A" else echo -e "Invalid Grade" echo -e "Continue? (Enter 1 to continue O to exit) read userinput done
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