To Documents
IT 313 -- Project 1
METAR Abbreviations
Translation:
SPECI means that this is an unscheduled METAR report issued when certain criteria are met.
KPWK is the airport identifier for Chicago Executive Airport 18
miles northwest of the city center.
Z means Zulu time (Coordinated Universal Time): 4:21:00pm.
KT means wind direction and speed: direction 50 degrees clockwise from North and
speed 10 knots.
SM means visibility: 10 miles.
BKN means clouds with cloud bottoms at 3,000 ft. are broken (cover 5/8 to 7/8 of
sky).
OVC means that clouds with cloud bottoms at 3,600 ft. are overcast (cover all of
the sky).
M01/M08 means that the temperature is minus 1 Celsius and that the dew point is
minus 8 Celsius.
A indicates an altimeter pressure reading of 10.49 inches of mercury.
RMK means that the Remarks Section follows.
A02 indicates that the station is automated with a precipitation discriminator
T10171017 is a breakdown of the temperature and dew point in eight digits
separated into two groups of four.
For example, here is a METAR weather report for the Midway Station in Chicago, for midnight,
January 7, 2014:
METAR KMDW 070551Z 26013G17KT 10SM FEW020
M23/M27 A3024 RMK AO2 SLP276 4/010
T12331272 11228 21239 411831261 55003 $
Here is a METAR tutorial from
Weather Underground to help you decode this METAR report. You can also consult Wikipedia for an overview of METAR.
Project 1 directions:
- Look up the English meanings of these METAR abbreviations online (Wikipedia is a good source):
+ - B DZ E HZ RA SN
- Write a Java program with a loop that repeatedly reads a METAR abbreviation, translates it to
English if it is one of these eight abbreviations, then prints its English meaning.
Use an if..else statement to do the translation.
- If the input does not match any of these eight abbreviations, print
Unknown abbreviation.
- You decide how to terminate the loop. The simplest way to implement the
loop is with an infinite loop like this:
while(true) {
... body of loop;
}
You can then terminate the loop by clicking the red stop button to the left of the output window or
by closing the output window. In class, we will discuss other methods of setting
up and terminating the loop.
- Name your Java project according to the standard naming convention: Proj1Smith, where you
replace Smith by your last name. Also name your zip file Proj1Smith.zip. Five point penalty
for improperly naming your project and/or zip file.
- Submit a zip file of your IntelliJ project folder. You can create a zip file
of your project using IntelliJ:
File >> Export to Zip File...
- Note: don't use the == operator for String objects, use the
String
equals method instead
as in the NumToWords Example in the num-to-words file.
- Grading Breakdown: Functionality: 70%; Indentation: 10%; Source code comments: 10%;
Properly Submitted: 10%. Score is out of 50.