View the step-by-step solution to:


This question was created from METAR Unix Assignment


Create a script composing of the METAR report

I need to a script code for questions 4 to 12


Your homework submission should be a script that reads a single line METAR from a file named:
metar.txt Your script output (to the shell screen) should include: the report type: either METAR or SPECI for “Special Report”
the station identifies (four characters starting with a K)
Day of the month and time the report was filed
If the token ‘AUTO’ is present, you should output “This is a fully automated report”
If the token ‘COR’ is present, you should output “This is a corrected observation”
Wind direction and speed, wind gusting, and variable wind directions
Visibility in statute miles
Light, medium, or heavy rain (-RA|RA|+RA)
Cloud Conditions: [0 or more occurrences of each of the following]
a. Sky Clear
b. Few Clouds <altitude>
c. Scattered Clouds <altitude>
(1. Broken Clouds <altitude>
e. Overcast Clouds <altitude>
10. Temperature
11. Dew Point
12. Barometric Pressure
13. If the token ‘TH’ is present, you should output “Thunderstorms reported in the area” EDPONP‘WPPJP-H“

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.


Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes