Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribedWhy 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions

Question

Why is the System Build Process an iterative process?

Answered: 1 week ago