[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

Grading Scale

Asked by hejafu1 in Bourne Shell (sh)

Tags: knoppix shell script

Can you please tell me where I'm making my mistakes at.

declare -iGrade1
read -p Please enter your first grade: Grade1 Grade1
if [ $Grade1 -ge 90 -a $Grade1 -le 100]
then
read -p Enter Grades Grades
echo A
then
declare -iGrade2
read -p Please enter your first grade: Grade2 Grade2
if [ $Grade2 -ge 89 -a $Grade2 -le 80]
then
read -p Enter Grades Grades
echo B
then
declare -iGrade3
read -p Please enter your first grade: Grade3 Grade3
if [ $Grade3 -ge 79- a $Grade3 -le 70]
then
read -p Enter Grades Grades
echo C
then
declare -iGrade4
read -p Please enter your first grade: Grade4 Grade4
if [ $Grade4 -ge 65-a $Grade4 -le 69]
then
read -p Enter Grades Grades
echo D
then
declare -iGrade5
read -p Please enter your first grade: Grade5 Grade5
if [ $Grade5 -ge 0 -a $Grade5 -le 64]
then
read -p Enter Grades Grades
echo F
fi
then
if       [[ GRADE1= A || GRADE2= B || GRADE3= C || GRADE4= D || GRADE5= F  ]]
then ((Average=($Grade1 + $Grade2 + $Grade3)/3))

 
Related Solutions
Keywords: Grading Scale
Title
1 Grading Scale
 
Loading Advertisement...
 
[+][-]10/29/09 07:55 AM, ID: 25694346Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/29/09 10:31 AM, ID: 25696064Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/06/09 02:32 AM, ID: 25757957Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11/09/09 09:24 PM, ID: 25782628Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11/16/09 09:02 AM, ID: 25831767Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091021-EE-VQP-81 - Hierarchy / EE_QW_3_20080625