Assignment #1

due: Thursday, October 3
You are going to create a program that will rewrite the following newspaper article:

Newfoundland1ers who were hit hard by hurricane Igor2 two years ago were hunkering down for tropical storm Leslie3.

Leslie3 isn’t expected to be quite as ferocious as Igor2, but will almost certainly churn ashore early Tuesday with its centre near the Burin Peninsula in southeast Newfoundland1, said the Canadian Hurricane Centre in Halifax4.

"However the storm’s effects will be far-reaching with impacts spreading well away from the storm’s track," the centre said in a bulletin issued at 95 p.m. AT.

Forecasters say Leslie3 will touch down as a hurricane or a strong tropical storm, depending on its wind speed.

Tropical storm warnings and hurricane watches were in effect for parts of southern and eastern Newfoundland1.

The storm’s winds were clocked at 111.56 kilometres per hour as it headed toward the island at 55 kilometres per hour.

You will replace the 6 struck out passages with values you will input from the user. These values should be stored in variables of the appropriate types (use int or float when possible). Make sure each line ends at the same place as the example below. The following is a sample run of the program (user input is bold and slightly larger in the example):

Please enter a province or state:
New York
Please enter a male name:
Bob
Please enter a female name:
Cassiopeia
Please enter a city:
Edmonton
Please enter a number between 1 and 12:
42
Please enter a real number:
123.456
---------------------------------------------------------------------------------
New Yorkers who were hit hard by hurricane Bob two years ago were hunkering
down for tropical storm Cassiopeia.

Cassiopeia isn’t expected to be quite as ferocious as Bob, but will almost
certainly churn ashore early Tuesday with its centre near the Burin Peninsula
in southeast New York, said the Canadian Hurricane Centre in Edmonton.

"However the storm’s effects will be far-reaching with impacts spreading
well away from the storm’s track," the centre said in a bulletin issued at
42 p.m. AT.

Forecasters say Cassiopeia will touch down as a hurricane or a strong
tropical storm, depending on its wind speed.

Tropical storm warnings and hurricane watches were in effect for parts of
southern and eastern New York.

The storm’s winds were clocked at 123.456 kilometres per hour as it headed
toward the island at 55 kilometres per hour.

See an example of the comments required for an assignment. You will need to submit a copy of your program's folder in the drop off folder. Use your name as the name of the program. For example, if your name is Jane Lee then save your program as JaneLeeA1. The A1 signifies this is the first assignment. Save the file in your home folder (G:\My Drive\Processing) not on the desktop. That way it will be available on any school computer, not just the computer you were using.

The marking scheme is as follows:

Assignment #1

 ____
  17
 
Folder submitted correctly with correct name          (1) ______

Declares variables with appropriate types             (3) ______

Good identifiers                                      (1) ______

Prompts and reads information                         (3) ______

Prints article neatly without typos                   (3) ______

Opening comment                                       (1) ______

Opening comment (name __, course __,assignment # __,
          purpose __, due date ___                    (1) ______

Variable dictionary                                   (2) ______

Internal comments and indentation                     (2) ______