Question
The state of Florida maintains a census file in which each record contains: the name of a county, the current population, a number representing the
The state of Florida maintains a census file in which each record contains: the name of a county, the current population, a number representing the rate at which the population is increasing per year. For example, one record might contain Miami-Dade County, 2,253,000, 2 percent. The governor wants a report listing each county and the number of years it will take for the population of the county to double, assuming the present rate of growth remains constant. Design an application that reads records from an input file (until "eof") and prints the countys name and the number of years it will take for the population to double. If a countys record contains a negative growth rate, then instead of displaying the number of years it takes for the population to double, display a message indicating the population is never expected to double.
Pseudocode:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started