Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Which are non projected Teaching aids in advance learning system?

Answered: 1 week ago

Question

Develop clear policy statements.

Answered: 1 week ago

Question

Draft a business plan.

Answered: 1 week ago

Question

Describe the guidelines for appropriate use of the direct plan.

Answered: 1 week ago