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

  Prepare gross pay and net pay functions for valid user name

Prepare gross pay and net pay functions, and give user input validation to check for valid user name. Hours worked is between 0 and 80 hours, and hourly wage is between $8.95 and $50.

  From the e-activity, briefly describe through research

From the e-Activity, briefly describe through research one way the company you chose is using a data warehouse. Support your reasoning. Cite all references.

  What information do you need to be able to retrieve

What information do you need to be able to retrieve every record from a hashed file in ascending key order?

  Describe an application

Can you compare the two? 3.Class templates are typically used to replace overloaded functions. Can you compare the two?

  Write a java method to five a 10 percent raise to every

write a java method to five a 10 percent raise to every employee who has a student record and whose grade point index is higher than 3.0.

  How many block of main memory is needed-direct mapped cache

Suppose a computer using direct mapped cache has 2^32 words of main memory and a cache of 1024 blocks, where each cache block contains 32 words. How many block of main memory are there?

  Create a quick wedding program in indesign

create a quick wedding program in Indesign. Are there any websites with templates for wedding programs for Indesign? I am using Indesign CC.

  Takes a btree as it''s argument

Write a function that takes a btree as it's argument and returns a pair consisting of the left and right subtrees. Define an exception for the erroneous case where the tree is empty.

  Describe the different parts of the cia triad

Describe the different parts of the C.I.A. triad and how each can be used to improve the overall security of an information system.

  Which command displays network activity statistics for tcp

Which command displays network activity statistics for TCP, UDP, and IP? a. telnet b. nbtstat-s c. ping -s d. netstat -s e. nslookup

  Write ethical issues involved in eliminating jobs in k-mart

Sears is losing market share, has been acquired by K-Mart, and is eliminating jobs; Wal-mart is gaining market share and hiring. Write ethical issues involved, and which firm has a more ethical position?

  Explaining open-source software products like linux

Intellectual property as well as increase its support of open-source software products like Linux be a successful growth strategy in the "brutally competitive marketplace" in which it operates? Why or why not?

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