Bash Shell Scripting Question

Nov 16th, 2013
Anonymous
Category:
Calculus
Price: $35 USD

Question description

I am having trouble with this problem.


  Write a shell script called rpt.bash that accepts
  a student's information file and displays it in a different
  format on the screen.
  This is a sample information file is called r1.txt

  First Name: John
  Last Name: Doe
  Address: 5934 Lightdrive
  City: Columbus
  State: IA
  ZIP: 87345
  Birthday: 1978-12-11
  Address: 5934 Lightdrive, Columbus, IA, 95933
  Average: 84 (Good)

  the script should display your result and should be the same as above.
  If the average of scores is >= 90, you should display "Excellent".

  If average_score < 90 || average_score >= 70, you should display "Good".
  If average_score < 70, you should display "Poor".

  This is another sample record file called record2.txt.
  First Name: Sam
  Last Name: Newt
  Address: 8981 Lost in Space Avenue
  City: Sioux
  State: SD
  ZIP: 89823
  Birthday: 01/22/1992
  Score1: 69
  Score2: 69


A sample run of the script should be like below:
  $ ./report.bash record2.txt
  =========== Report Card of Newt, Sam ===========
  Birthday: 01-22-1992
  Address: 8981 Lost in Space Avenue, Sioux, SD, 89823
  Average: 69 (Poor)
  =========== End of Report Card ===========


Tutor Answer

(Top Tutor) Studypool Tutor
School: UC Berkeley

Studypool has helped 1,244,100 students

Review from student
Studypool Student
" Goes above and beyond expectations ! "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1822 tutors are online

Brown University





1271 Tutors

California Institute of Technology




2131 Tutors

Carnegie Mellon University




982 Tutors

Columbia University





1256 Tutors

Dartmouth University





2113 Tutors

Emory University





2279 Tutors

Harvard University





599 Tutors

Massachusetts Institute of Technology



2319 Tutors

New York University





1645 Tutors

Notre Dam University





1911 Tutors

Oklahoma University





2122 Tutors

Pennsylvania State University





932 Tutors

Princeton University





1211 Tutors

Stanford University





983 Tutors

University of California





1282 Tutors

Oxford University





123 Tutors

Yale University





2325 Tutors