Question: How to run it using Jslinux [root@localhost ~]# sh p1 Give me your name Samuel How many marks 13 Enter quiz1 10 Enter mid exam

How to run it using Jslinux
 How to run it using Jslinux [root@localhost ~]# sh p1 Give
me your name Samuel How many marks 13 Enter quiz1 10 Enter

[root@localhost ~]# sh p1 Give me your name Samuel How many marks 13 Enter quiz1 10 Enter mid exam 100 Enter quiz2 10 Samuel total marks = 120 Samuel average marks = 40 echo "Give me your name" read name echo "How many marks" read no echo "Enter quiz1" read ml echo "Enter mid exam" read m2 echo "Enter quiz2" read m3 sum="expr $m1 + $m2 + $m3 avg="expr $sum / $no echo "$name total marks = $sum" echo "$name average marks $avg

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!