lab05 - Category 3 Hurricane 111-130 Category 2 Hurricane...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Lab 5: Hurricanes Last Modified 12/17/2008 Key Concepts: multiple selection, logical operators, branch coverage and boundary testing Meteorologists use a system called the Saffir-Simpson Hurricane Scale to classify hurricanes. For maximum sustained wind speeds measured in miles/hour, the categories of hurricanes, tropical storms, and tropical depressions are (data retrieved from Wikipedia link on 7/17/2008): Classification Wind Speeds (mph) Category 5 Hurricane 156 or greater Category 4 Hurricane 131-155
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Category 3 Hurricane 111-130 Category 2 Hurricane 96-110 Category 1 Hurricane 74-95 Tropical Storm 39-73 Tropical Depression 0-38 Write a C++ program that asks the user to input the observed maximum sustained wind speed and reports the classification of the storm. Include error handling. Test your program using both branch coverage and boundary testing. Demonstrate this in your sample runs. Lab Report Contents • Code • Sample runs demonstrating complete testing • Short discussion...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online