You are given two float variables population and land area


Problem

You are given two float variables, population and land area.

a) Write an if statement that will print the population if it is less than 10,000,000.

b) Write an if statement that will print the population if it is between 10,000,000 and 35,000,000.

c) Write an if statement that will print "Densely populated" if the land density (number of people per unit of area) is greater than 100.

d) Write an if statement that will print "Densely populated" if the land density (number of people per unit of area) is greater than 100 and that will print "Sparsely populated" otherwise.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: You are given two float variables population and land area
Reference No:- TGS02695377

Expected delivery within 24 Hours