Calculate population increase

Assignment Help Basic Computer Science
Reference no: EM13219822

This Program will Generate a table showing the projected population growth over the next 10 years. Inputs: Allow the user to enter in 2 numbers that represent the current population, and a growth rate. Output: Your program should output two things: 1. A table of the projected population for the next ten years 2.A projection of how many years it will take for a population to get to 1 million people. Tips: You will need 2 different loops to do this program The first loop you can use to print out 10 years of data. So use FOR loop that runs 10 times, and each time through the loop increase the population by the rate entered. Inside the loop print out a year and the current population. The second loop will need to calculate population increase until (so do a do/ until, or a do/ while loop) the population gets to 1 million (or more) and count how many times the loop ran. The output then would be that count. You will want to use 2 variables, one for the index of the for loop ( and the counter in the do loop) and the other variable to keep track of your "current" population.

Reference no: EM13219822

What are the time and space efficiencies of your algorithm

Binomial coefficient Design an efficient algorithm for computing the binomial coefficient C(n, k) that uses no multiplications. What are the time and space efficiencies of y

Write a short program to interpolate the hat function

Write a short program to interpolate the hat function of Example 13.3 by trigonometric polynomials for l = 2,4,8,16, and 32. Measure maximum absolute error on the mesh 0:.01

Find the inverse of a and call it matrix x

Define the matrices: A = [12 16 4;23 1 21;9 10 1] and B = [2 7 14;3 11 2;-9 10 12]. Perform matrix multiplication AB. Perform matrix multiplication BA. Are the answers from Pa

What is the geometric center frequency

A band-pass filter has a lower cutoff frequency of 100 Hz and an upper cut-off frequency of 144 Hz. What is the geometric center frequency? (Points : 3) 120 Hz 130 Hz 134.5

How could concepts of an earth system

Do you think they have a true or good "real to life" experience of what it would be like to live on Mars for a year? Why or why not? How could concepts of an Earth system (o

What role do users have in the development phase

At least 200 words for each question 1.  What role do users have in the development phase and integration phase for information systems? 2.  What advantages does commercial

Corporate embezzlement

Imagine you are employed by a large city police department as the leader of the digital forensics division. A large corporation in the city has contacted the police for assi

Create a spreadsheet to track personal expenses

Creating a spreadsheet to track personal expenses is an excellent use of Microsoft Excel. For this exercise, you will create a spreadsheet to enter a personal budget and tr


Write a Review

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd