Program to predict population by taking year as input


Question 1) After studying population of Gotham City in the last decade of the twentieth century the population is modelled as:

P(t) = 52.966 + 2.184t

where t is years after 1990 and P is population in thousands

P(0) represents population in 1990 which was 52.966 thousand people.

Write a program which defines a function named population which predicts Gotham's population in the year provided as an input argument. The program should call function and interacts with user as follows:

Enter the year after 1990> 2015

Predicted Gotham City population for 2010 (in thousands): 107.566

Question 2) Write the program that reads words from the file read.txt, find out whether or not it is a palindrome and output to a file the word. Use string functions.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Program to predict population by taking year as input
Reference No:- TGS04701

Expected delivery within 24 Hours