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

Questions Cloud

Define what is the solubility of mns : What is the solubility of MnS, in grams per liter, in a buffer solution that is 0.115M HC2H3O2 - 0.500M NaC2H3O2 ? For MnS, Kspa=3x10^7
Write the recursive function c++ : write main program that uses the sumbits function to compute the number of bits in the unsigned long integer, and illustrates the work of the show bits function.
How the company might respond strategically : Identify a foreign market that you feel this company should enter next, and explain why it should enter that market and which of the strategies should be used and explain the challenges from competition in the local market, and how the company might ..
What is the new balance sheet for the federal reserve banks : The Federal Reserve Banks sell $3 billion in securites to members of the public, who pay for the bonds with checks. Show the new balance sheet for commercial banks if reserves = 33, securites = 60, checkable deposits = 150, and reserve banks = 3.
Calculate population increase : 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.
Synthesise theories and models from the module readings : Synthesise theories and models from the module readings and literature and utilise effective discussion, analysis and conclusions showing critical thinking to propose solutions
What will be the effect of an increase of 10dollar per unit : Suppose that a perfectly competitive consant cost industry if initially in short and long-run equilibrium. In general, what will be the effect of an increase of $10 per uni in varialbe coss on he short-run equilibrium price, the short-run industry..
How much total profit is the firm earning at the price : Suppose a monopolist charges a price of $27 for its product and sells 10 units at that price. At 10 units of production the firm has average fixed cost equal to $10 and average variable cost equal to $12. How much total profit is the firm earning ..
Use double variable to represent the private data of class : Use double variable to represent the private data of the class. Provide a constructor that enables an object of this class to be initialized when it is declared.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Four consecutive clock pulses

A given FSM has an input w, and an output,z. During four consecutive clock pulses, a sequence of four values of the w is applied. Derive a state table for the FSM that produces z = 1 when it detects that either the sequence w: 0101 or w: 0111 has bee..

  Information system to use for stocks and trading futures

Write down some of the many considerations in selecting right information system to use for trading futures and stocks?

  Factoring is the problem of computing

Consider the one time pad encryption scheme to encrypt a 1-bit message. Replace the XOR operation with another operation X. For which X does the resulting scheme satisfy perfect secrecy?

  Explaining stepwise refinement and refactoring

Are stepwise refinement and refactoring the equivalent thing ? If not, describe how do they vary? Term component is sometimes a difficult one to define.

  How many different seven-digit phone numbers can be formed

How many different seven-digit phone numbers (ignoring area code) can be formed? Can city of 2 million people be served by single area code? Describe.

  Itsec measurably show practical effectiveness of security

To what extent does ITSEC quantitatively and measurably illustrate practical effectiveness of the security measures it mandates?

  Effort required for various project

Estimation of the effort required for various project tasks is one of the toughest assignments for a project planner. In an organization, who is the best judge for the effort needed for specific tasks? Please explain the basis for your answer.

  Describe how cpu can achieve i-o with teletype by registers

Consider a computer system that contains an I/O module controlling a simple keyboard/ printer Teletype. Describe how de CPU, using the first four registers listed in this problem, can achieve I/O with the Teletype.

  How computer system compares to state-of-the-art system

Write down 350- to 700-word paper in APA format which addresses the following items: How computer system compares to state-of-the-art system.

  Assigning value to last array of array list

Write a statement that assigns the value 160000 to the last element of the ArrayList salaryStep.

  Use strong induction to show that every positive

Use strong induction to show that every positive integer n can be written as a sum of distinct powers of two, that is.

  Create application to declares array of ten houseplant

Design an application that declares an array of 10 HousePlants. Prompt the user for data for each of the HousePlants, then display all values.

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