Question

Then Read Read Asgn Read mid-ex Read quiz Read final-ex Final = asgn*0.3 + mid-ex*0.3 +...

Then

Read

Read Asgn

Read mid-ex

Read quiz

Read final-ex

Final = asgn*0.3 + mid-ex*0.3 + quiz*0.1 + final-ex*0.3

If final -gt 80

Echo “ Your Grade is A”

Els

------------------------------------------------------------------------------------------------------------------------------------------

Assignment 30%

Mid-Ex 30%

Quiz 10%

Final-E 30%   .

Total: 100%

Grade

Conversion Scale (%)

Definition

A

Above 80

Outstanding Achievement

B

70

Good Achievement

C

60

Satisfactory Achievement

D

50

Marginal Achievement

F

Below 50

Unsatisfactory Achievement

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Here is code:

echo "Assignment :"

read asgn

echo "Mid-Ex :"

read mid

echo "Quiz :"

read quiz

echo "Final-ex :"

read final

total=0

asgnPer=$(echo $(( asgn + 3 / 100 )))

midPer=$(echo $(( mid + 3 / 100 )))

quizPer=$(echo $(( quiz + 3 / 100 )))

finalPer=$(echo $(( final + 3 / 100 )))

let total=asgnPer+midPer+quizPer+finalPer

if [ "$total" -gt 80 ]; then

echo "Your Grade is A, Outstanding Achievement"

elif [ "$total" -gt 70 ]; then

echo "Your Grade is B, Good Achievement"

elif [ "$total" -gt 60 ]; then

echo "Your Grade is C, Satisfactory Achievement"

elif [ "$total" -gt 50 ]; then

echo "Your Grade is D, Marginal Achievement"

elif [ "$total" -lt 50 ]; then

echo "Your Grade is F, Unsatisfactory Achievement"

fi

read -r -p "Press any key to continue" -n 1

Output:

Add a comment
Know the answer?
Add Answer to:
Then Read Read Asgn Read mid-ex Read quiz Read final-ex Final = asgn*0.3 + mid-ex*0.3 +...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Declare and initialize 4 Constants for the course category weights: The weight of Homework will be...

    Declare and initialize 4 Constants for the course category weights: The weight of Homework will be 15% The weight of Tests will be 35% The weight of the Mid term will be 20% The weight of the Fin al will be 30% Remember to name your Constants according to Java standards. Declare a variable to store the input for the number of homework scores and use a Scanner method to read the value from the Console. Declare two variables: one...

  • Vitals Assignment (Read this assignment to answer the questions below) Pulse Rate: • Palpate (feel) the...

    Vitals Assignment (Read this assignment to answer the questions below) Pulse Rate: • Palpate (feel) the pulse for 20-30 seconds to just make sure the pulse feels balanced / steady Age Newborn 0-5 months 6-12 months Normal heart rate (beats per minute) Range 29 Typical example 100-1601311 1 30 90-150 120 80-140 110 80-130 80-120 70-110 60-105 80 60-100 80 Normal respiratory rate (breaths per minute) Range 30 Typical example 30-50 25-40 20-30 20-30 20-30 15-30 12-20 12-30 citation needed...

  • i need help on question 3 to 22 please. Midterm ex review. MATH 101 Use the...

    i need help on question 3 to 22 please. Midterm ex review. MATH 101 Use the following information to answer the next four exercises. The midterm grades on a chemistry exam, graded on a scale of 0 to 100, were: 62, 64, 65, 65, 68, 70, 72, 72, 74, 75, 75, 75, 76,78, 78, 81, 82, 83, 84, 85, 87, 88, 92, 95, 98, 98, 100, 100,740 1. Do you see any outliers in this data? If so, how would...

  • For the preparation and standardization of NaOH with KHP im supposed to boil water for 1hr and 30 min to remove CO2

    For the preparation and standardization of NaOH with KHP im supposed to boil water for 1hr and 30 min to remove CO2....the problem is that if I don't boil it for that long and (30 min) b/c of not enough time but I put the water I boiled for 1/2 hr aproximately into a NaOH bottle with a CO2 absorber and stored it there for a few days. I would assume that I would have to boil the water again...but...

  • this is all the information given Personal Financial Planning Mini-Case Jeff and Mary Douglas, a couple...

    this is all the information given Personal Financial Planning Mini-Case Jeff and Mary Douglas, a couple in their mid-30s, have two children - Paul age 6 and Marcy age 7. The Douglas' do not have substantial assets and have not yet reached their peak earning years. Jeff is a general manager of a jewelry manufacturer in Providence, RI while Mary teaches at the local elementary school in the town of Tiverton, RI. The family needs both incomes to meet their...

  • How can we assess whether a project is a success or a failure? This case presents...

    How can we assess whether a project is a success or a failure? This case presents two phases of a large business transformation project involving the implementation of an ERP system with the aim of creating an integrated company. The case illustrates some of the challenges associated with integration. It also presents the obstacles facing companies that undertake projects involving large information technology projects. Bombardier and Its Environment Joseph-Armand Bombardier was 15 years old when he built his first snowmobile...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT