Question: 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?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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!