# Solved Homework: Question: Write a Program to determine a city's Hurricane Vulnerability Level (HVL). (60 points) Miami, Flo…

Write a Program to determine a city’s Hurricane Vulnerability Level (HVL). (60 points) Miami, Florida is the most vulnerable city at risk of being hit by a hurricane, according to data from the NOAA’s Hurricane Research Division. Due to its large population density of 12,645 (number of people /square miles) the effects of a major hurricane would be catastrophic to the city. Any city in the U.S. with a population density greater than 11,000 is considered a highly populated city The Hurricane Wind Scale is a 1 to 5 rating based on a hurricane’s sustained wind speed. This scale estimates potential property damage. Hurricanes reaching Category 3 and higher ar Sustained Winds Types of Damage Due to Hurricane Winds 96-110 mphExtremely dangerous winds will cause 111-129 mph Devastating damage wil occur 130-156 mph Catastrophic damage will occur. 157 mph or higher Catastrophic damage will occur HIGH (major) HIGH (major) HIGH (major) Write a program that will determine .AU.S. city’s population density (as a whole number) the hurricane vulnerability of the city given the city’s name, total population, the city’s total area in square miles, and the current wind speed. To be considered a highly vulnerable city (like Miami) it must be a highly populated city AND must have a current wind speed of at least 111 miles per-hour. In these cases we The program will let the user know (in a full sentence) the city’s population density and their Hurricane Vulnerability Level (HVL).

No language mentioned so I did it in C++

#include <bits/stdc++.h>

using namespace std;

int main() {

//take input city_name,total_population,total_area,wind_speed

string city_name;

int total_population,total_area,wind_speed;

//taking input

cin>>city_name>>total_population>>total_area>>wind_speed;

//calculate population density

int population_density=total_population/total_area;

//if population density is greater than 11000 and wind speed is greater than 111

//print HVL very high

if(population_density>=11000&&wind_speed>=111)

{

cout<<“Population density of “<<city_name<<” is “<<population_density<<” and its hurricane vulnerabilty level(HVL) is VERY HIGH”<<endl;

}

//in all other cases

else

{

//if wind_speed<74 HVL is low

if(wind_speed<74)

cout<<“Population density of “<<city_name<<” is “<<population_density<<” and its hurricane vulnerabilty level(HVL) is LOW”<<endl;

//according to table in this case HVL is moderate

if(wind_speed>=74&&wind_speed<=95)

cout<<“Population density of “<<city_name<<” is “<<population_density<<” and its hurricane vulnerabilty level(HVL) is MODERATE”<<endl;

//In this case also HVL is moderate

if(wind_speed>=96&&wind_speed<=110)

cout<<“Population density of “<<city_name<<” is “<<population_density<<” and its hurricane vulnerabilty level(HVL) is MODERATE”<<endl;

//In all other cases HVL is high

else

cout<<“Population density of “<<city_name<<” is “<<population_density<<” and its hurricane vulnerabilty level(HVL) is HIGH”<<endl;

}

return 0;

}

Pages (550 words)
Approximate price: -

Help Me Write My Essay - Reasons:

Best Online Essay Writing Service

We strive to give our customers the best online essay writing experience. We Make sure essays are submitted on time and all the instructions are followed.

Our Writers are Experienced and Professional

Our essay writing service is founded on professional writers who are on stand by to help you any time.

Free Revision Fo all Essays

Sometimes you may require our writers to add on a point to make your essay as customised as possible, we will give you unlimited times to do this. And we will do it for free.

Timely Essay(s)

We understand the frustrations that comes with late essays and our writers are extra careful to not violate this term. Our support team is always engauging our writers to help you have your essay ahead of time.

Customised Essays &100% Confidential

Our Online writing Service has zero torelance for plagiarised papers. We have plagiarism checking tool that generate plagiarism reports just to make sure you are satisfied.

Try it now!

## Calculate the price of your order

Total price:
\$0.00

How it works?

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

HOW OUR ONLINE ESSAY WRITING SERVICE WORKS

Let us write that nagging essay.

By clicking on the "PLACE ORDER" button, tell us your requires. Be precise for an accurate customised essay. You may also upload any reading materials where applicable.

Pick A & Writer

Our ordering form will provide you with a list of writers and their feedbacks. At step 2, its time select a writer. Our online agents are on stand by to help you just in case.

Editing (OUR PART)

At this stage, our editor will go through your essay and make sure your writer did meet all the instructions.