Perl Lab 2
a) Write a perl program to create an array of 10 student name.
b) Modify the program to create a second array to hold the marks of the 10 students in the above array.
c) List student name and student marks as shown below:
Student Name Student Marks
Arshdeep 80
Sukhdeep 90
Prabdeep 76
Sandeep 56
Mandeep 46
d) Modify the above program to add pass or fail as shown below:
Student Name Student Marks Pass/Fail
Arshdeep 80 Pass
Sukhdeep 90 Pass
Prabdeep 76 Pass
Sandeep 56 Pass
Mandeep 46 Fail
Comments
Post a Comment