Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Develop a program that provides the Hurricane Category based on the Saffir-Simpson Scale. The program prompts the user for miles per hour vs Kilometers per

Develop a program that provides the Hurricane Category based on the Saffir-Simpson Scale. The program prompts the user for miles per hour vs Kilometers per hour. The user will enter the windspeed (either mph or km/h) and the program will display the category and provide a warning if the hurricane is a Category 4 or above. Password protect the program. Flowchart the logic of the program.

image text in transcribed

my current C++

#include #include #include #include

using namespace std;

int main() {

string pass = "battlebot"; string input;

cout > input; if (input != pass) { cout > mesurment ; if ( mesurment != mile_per_hour ) { double KMH_catone = 119 >= 153 ; double KMH_cattwo = 154 >= 177 ; double KMH_catthree = 178 >= 208 ; double KMH_catfour = 209 >= 251 ; double KMH_catfive = 1000 >= 252 ; string windspeed;

cout > windspeed ;

if ( windspeed

} else ( windspeed == KMH_catone ) ; { cout = 94; double MPH_cattwo = 110 >= 96; double MPH_catthree = 129 >= 111; double MPH_catfour = 156 >= 130; double MPH_catfive = 1000 >= 157;

string windspeed ;

cout > windspeed ; }

}

return 0; }

Hurricane Wind speeds (for 1-minute maximum sustained winds) Category m/s knots (kn) mph km/h Five 270 m/s > 137 kn > 157 mph 252 km/h Four 5870 m/s 113136 kn 130156 mph 209251 km/h Three 50-58 m/s 96-112 kn 111129 mph 178208 km/h Two 4349 m/s 8395 kn 96110 mph 154177 km/h One 3342 m/s 6482 kn 7495 mph 119153 km/h

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Processing Fundamentals, Design, and Implementation

Authors: David M. Kroenke, David J. Auer

14th edition

133876705, 9781292107639, 1292107634, 978-0133876703

More Books

Students also viewed these Databases questions