Logo 
Search:

Unix / Linux / Ubuntu Articles

Submit Article
Home » Articles » Unix / Linux / Ubuntu » Homework HelpRSS Feeds

Prepare the marksheet of the student

Posted By: Evie Brown     Category: Unix / Linux / Ubuntu     Views: 6875

Prepare the marksheet of the student.

Code for Prepare the marksheet of the student in Unix / Linux / Ubuntu

echo "Enter student name"
read name
echo "Enter semester"
read sem

echo "Enter subject 1 name "
read sub1
echo "Enter mark"
read mark1
echo "Enter subject 2 name "
read sub2
 echo "Enter mark"
read mark2
echo "Enter subject 3 name "
read sub3
echo "Enter mark"
read mark3
echo "Enter subject 4 name "
read sub4
echo "Enter mark"
read mark4
echo "Enter subject 5 name "
read sub5
echo "Enter mark"
read mark5
echo "Enter subject 6 name "
read sub6
echo "Enter mark"
read mark6

echo "Name : $name"
echo "semester : $sem"
echo "Subject   Marks"
echo "$sub1   $mark1"
echo "$sub2   $mark2"
echo "$sub3   $mark3"
echo "$sub4   $mark4"
echo "$sub5   $mark5"
echo "$sub6   $mark6"
echo "Total Marks : `expr + $mark1 + $mark2 + $mark3  + $mark4 + $mark5 + $mark6`"

-------------------------------------------------------------------
output
-------------------------------------------------------------------

Enter student name
abc
Enter semester
ii
Enter subject 1 name
c
Enter mark
23
Enter subject 2 name
c++
Enter mark
23
Enter subject 3 name
foc
Enter mark
45
Enter subject 4 name
cobol
Enter mark
45
Enter subject 5 name
bma
Enter mark
43
Enter subject 6 name
state
Enter mark
43

Total Marks : 222
  
Share: 


Didn't find what you were looking for? Find more on Prepare the marksheet of the student Or get search suggestion and latest updates.

Evie Brown
Evie Brown author of Prepare the marksheet of the student is from London, United Kingdom.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!