Please help with this python assignment and include comments so I can understand, thanks!

Assignment This assignment involves coding and testing of a program based on the typical Hello World program.. The basic design of the first programs that you construct in this class consists of a prompt for information, receiving information, processing that information then display the results In this programming project you will use the raw_input and print functions along with some simple mathematics for conversion. The important part of the project is to learn the skills needed to install Python and to create and interpret a simple Python program. We are going to estimate the population of the United States based on some information found at a website provided by the US census: That website specifies the following information: A number that represents the current population. We will fix that number for the this project at the value: 307357870 3 rates every 7 seconds, a birth every 13 seconds, a death every 35 seconds, a new immigrant Predicting into the future using only these numbers is not very accurate since the rates are likely to change, but it does give you a general idea for short predictions (only a few years into the future). Longer predictions (100s of years) are likely to be more Program Specifications Your program will prompt the user for an integer representing the number of years into the future we are predicting. Your program then prints out the predicted population size as an integer. You must use the above-indicated values: the starting point and the rates. The input value must represent years. Use the following information about time conversion: 365 days in a year (not quite true, but lets use it anyway) 24 hours in a day 60 minutes in an hour

media%2F97e%2F97ed8ed9-574d-4ecd-bb45-72
media%2Fbf2%2Fbf2022d5-92bf-4c87-8a0a-79
media%2Ff82%2Ff82bb015-c98c-4a15-a0b3-19 Assignment This assignment involves coding and testing of a program based on the typical “Hello World” program.. The basic design of the first programs that you construct in this class consists of a prompt for information, receiving information, processing that information then display the results In this programming project you will use the raw_input and print functions along with some simple mathematics for conversion. The important part of the project is to learn the skills needed to install Python and to create and interpret a simple Python program. We are going to estimate the population of the United States based on some information found at a website provided by the US census: That website specifies the following information: A number that represents the current population. We will fix that number for the this project at the value: 307357870 3 rates every 7 seconds, a birth every 13 seconds, a death every 35 seconds, a new immigrant Predicting into the future using only these numbers is not very accurate since the rates are likely to change, but it does give you a general idea for short predictions (only a few years into the future). Longer predictions (100’s of years) are likely to be more Program Specifications Your program will prompt the user for an integer representing the number of years into the future we are predicting. Your program then prints out the predicted population size as an integer. You must use the above-indicated values: the starting point and the rates. The input value must represent years. Use the following information about time conversion: 365 days in a year (not quite true, but let’s use it anyway) 24 hours in a day 60 minutes in an hour



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *