Question: reference data (missing grade mean student is currently studying the subject) Filename Content student.dat 3221 alex 4221 bob 5221 chad 6221 doop 4321 elisa 5321

reference data (missing grade mean student is currently studying the subject)

Filename Content
student.dat 3221 alex 4221 bob 5221 chad 6221 doop 4321 elisa 5321 ferry 6321 geo 7321 hin 8321 ilot
COMP111121S2.dat Subject COMP1111 2021 2 3221 F 4321 B 5321 B+ 6321 A
COMP111122S1.dat Subject COMP1111 2022 1 3221 B 4221 B+ 5221 B- 8321 C+
COMP222222S1.dat Subject COMP2222 2022 1 3221 C+ 4321 B- 5321 B 6321 A
COMP333322S2.dat Subject COMP3333 2022 2 3221 5321 6321 7321

example output

transcript COMP111121S2.dat COMP222222S1.dat student 4321
Transcript for 4321 elisa
COMP1111 2021 Sem 2 B
COMP2222 2022 Sem 1 B-
GPA for 2 subjects 2.85
transcript COMP* student 6321 4321 3221
Transcript for 6321 geo
COMP1111 2021 Sem 2 A
COMP2222 2022 Sem 1 A
COMP3333 2022 Sem 2
GPA for 2 subjects 4.00
Transcript for 4321 elisa
COMP1111 2021 Sem 2 B
COMP2222 2022 Sem 1 B-
GPA for 2 subjects 2.85
Transcript for 3221 alex
COMP1111 2021 Sem 2 F
COMP1111 2022 Sem 1 B
COMP2222 2022 Sem 1 C+
COMP3333 2022 Sem 2
GPA for 2 subjects 2.65

GPA table

Grade A+ A A- B+ B B- C+ C C- D+ D F
GPA 4.3 4 3.7 3.3 3 2.7 2.3 2 1.7 1.3 1 0

Please write a bash shell script with the file name "transcript" (no .sh or .bat) the program can run like this: transcript COMP111121S2.dat COMP222222S1.dat student 4321 general run: transcript (subjects) student (student ID) The use of wildcard character "*" can be used in the list of subject files. However, it would not be used in the list of student ID.

please do not hardcode the subject file names in the script program.

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!