Write the program to implement your algorithm

Assignment Help Basic Computer Science
Reference no: EM13208342

please read carefully, it's not as same as other ones. This program is designed to analyze the growth of two cities. Each city has a starting population and annual growth rate. The smaller city has the larger growth rate (required). Show the comparative populations of each city year by year until the smaller city has grown larger than the bigger city. As an example, Dogville has a population of 5000 growing at 20% annually while Cattown has a population of 7000 growing at 10% annually. The projected populations are: Year Dogville Cattown 1 6000 7700 2 7200 8470 3 8640 9317 4 10368 10249 1. Identify the inputs and outputs of the problem. 2. Identify the processing needed to convert the inputs to the outputs. 3. Design an algorithm in pseudocode to solve the problem. Make sure to include steps to get each input and to report each output. 4. Identify three significant test cases including one for incorrect input (ie Small town has lower growth rate). For each of the three test cases show what inputs you will use and calculate what your expected outputs should be. 5. Write the program to implement your algorithm. Test your program using your test cases.

Reference no: EM13208342

Questions Cloud

Draw a circuit using only two-input nand gates : Prove this by showing how you can implement the functions of an inverter, and AND gate, and an OR gate just using NAND gates. That is for each function draw a circuit using only two-input NAND gates that implements the operation.
Describe how the processes of transportation-deposition : Describe how the processes of transportation, deposition, and lithification influence the character of sediments. Use three detrital (clastic) and two chemical (non-clastic) rocks to illustrate.
Find the fraction of the conversion : Hint: use the logical operators to combine the 3 pins into one number, then divide that number by 8 (23) to find the fraction of the conversion and multiply that by 5V which would be the Arduino operating voltage.
Benefits of capitalism and mass production : What does Carnegie see as the most important benefits of capitalism and mass production? How does he justify the amassing of great fortunes?
Write the program to implement your algorithm : calculate what your expected outputs should be. 5. Write the program to implement your algorithm. Test your program using your test cases.
Designing a variable pay plan : "Analyze the short case below and recommend a new compensation system that includes variable pay components designed to address the specific problems this organization is experiencing.
Critics of television often suggest : Critics of television often suggest that executives of major television networks and movie corporations are white, wealthy males, who decide what programs or movies will be produced and which directors and actors will obtain jobs in the industry.
Reaction to media piece focusing on current political issue : Reaction to a media piece focusing on a current political issue relating to immigration.Possible media pieces include an article, a video or audio clip, a television show, a book, a documentary, or a movie
Competing notions of freedom following the civil war : What were the three competing notions of freedom following the Civil War in the United States? Who had these beliefs? What did each group want? How did they attempt to achieve their goals?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Is igital divide likely to last more than one generation

In developed countries and some less developed countries, computers and Internet access are available in schools. Is the "Digital Divide" likely to last more than one generation?

  Explain what benefits ipv6 will provide for her business

She wants to know if she should upgrade her information systems to IPv6. If so, explain what benefits IPv6 will provide for her business.

  Identify the monitoring points and levels for an sla

Determine if internal service-level agreements (SLAs) are necessary, and identify the monitoring points and levels for an SLA

  Difference between cyber crimes and cyber-related crimes.

Summarize the difference between cyber crimes and cyber-related crimes. On cyber crimes, define cyber trespass, cyber privacy and cyber vandalism. On cyber-related crimes explain the difference between cyber-assisted and cyber-enhanced crimes.

  Distinct integers that has the following property

You have an array A[0], A[1], ..., A[n - 1] of distinct integers that has the following property:The values in the array increase up to index p for some p between 0 and n - 1, and then decrease for all indices beyond p through positio

  A graph is two-connected iff

A graph is two-connected iff, removal of any single vertex and the edges adjacent to that vertex, leaves the graph connected. How can we tell if a graph is two-connected? Explain your algorithm in English

  Create an android project that contains two pages

Create an Android project that contains two pages. The button on the first page would open the second page.The first page contains a label, which states your name (Juan Ruiz) and a button states "Click to see my favorite animal".

  Style is require but comments are not

Style is require but comments are NOT required.  ? Include appropriate import statements for your file.

  Write program to make change for cost of item

Write down a C# program to make change. Enter cost of item which is less than one dollar. Output coins given as change, by using quarters, dimes, nickels, and pennies.

  Data blocks accesses to fetch record using linear search

How many data blocks accesses on the average are required to fetch the record using linear search? How many data blocks accesses are required to fetch a record using binary search?

  Explaining models in system analysis and design

In System Analysis and Design: Models are widely used in wide variety of technical occupations beyond information technology.

  Class that tests all the methods in the class

Write a test program for each class that tests all the methods in the class.

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