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

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, , Enter a year 1990> 2017 Predicted Gotham city population for 2017 (in thousands) is: (Fill in the real data in place of item, and be sure to follow the final output with a newline. Do not include the less-than, and greater-than symbols. The underlined response from the user in this example, is NOT a part of the prompt itself)

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!