Question: Write a program that: Define a structure city to house a cities name (name not to exceed 20 char), the city's population as integer and

 Write a program that: Define a structure "city" to house a

Write a program that: Define a structure "city" to house a cities name (name not to exceed 20 char), the city's population as integer and surface area in square miles as a double. Create an array big enough to hold information about 3 cities and initialize the information as below. Write a function called density that returns no value but accept an array of my cities and prints for every city the city name and the population density as a double presenting person/square mile in the format. Have main print the information as below Shangri-La 250000 78000.00 Summit 250000 8000.00 Luxor 134000 4000.00 Shangri-La 3.21 person per square miles Summit 31.25 person per square miles Luxor 33.50 person per square miles

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!