Linux Shell Script

Nov 16th, 2013
SoccerBoss
Category:
Programming
Price: $45 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: 69A 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) Daniel C.
(997)
School: University of Virginia
PREMIUM TUTOR

Studypool has helped 1,244,100 students

8 Reviews


Summary
Quality
Communication
On Time
Value
tinytim47
Nov 30th, 2016
" Wow this is really good.... didn't expect it. Sweet!!!! "
Five Star Tutor
Nov 21st, 2016
" Outstanding Job!!!! "
mixedballz
Nov 17th, 2016
" excellent work as always thanks for the help "
lilmoe415
Nov 8th, 2016
" Thank you, Thank you, for top quality work, this is your guy!! "
darnay
Oct 25th, 2016
" The best tutor out there!!!! "
dontuwannaknow
Oct 16th, 2016
" Excellent work as always thanks so much "
SjSurvivor143
Oct 3rd, 2016
" Thanks for the help. "
Joemoe
Sep 19th, 2016
" <3 it, thanks for saving me time. "
Ask your homework questions. Receive quality answers!

Type your question here (or upload an image)

1829 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