Question: Write a computer program as a Win32 console application in C to model the population growth on Gotham City for years after 1990. After studying
Write a computer program as a Win32 console application in C to model the population growth on Gotham City for years after 1990. After studying the population growth of Gotham City in the last 20^th century, we have modeled population function as P(t) = 52.966 + 2.184t where t is the years after 1990, and P is the population in thousands. Thus, P(0) represents the population in 1990, which was 52.966 thousand people. (see Programming Project 13, in Chapter 3, for a similar project) The name of your source program shall be p2.c and that of your executable program shall be p2.exe. Your program shall receive information from the user using the keyboard. Include a function that interacts the user called pop_finder. The function pop_finder shall have a return type of void, and a parameter list of void. The function pop_finder shall prompt the user for a single input value, representing the year for which the population is to be computed; compute the population; the result to the computer screen; and then return to main for program termination. A typical output to the screen, showing the program's title line, prompt, and program output, appears below: EE 233 Spring 2017 P2,
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
