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

  Explaining data-tlb hit and data-cache hit

Upon a load instruction, event "data-TLB hit" followed by "data-cache hit" is the most probable to occur among four possibilities of Cartesian product.

  Two vulnerability analysis tools used in research

two Vulnerability Analysis tools used in research and/or commercially available and describe their main features and functionality. Compare and contrast their relative strengths and weaknesses

  Elements corresponding to the inorder sequence

Suppose that you are given two sequences of elements corresponding to the inorder sequence and the preorder sequence. Prove that it is possible to reconstruct a unique binary tree .

  Explain description design analyses

Description Design Analyses (perhaps include sub-categories for each process) Description of Units being Designed What do they remove? Explain how do they operate?

  Explain security awareness and training document

Amy walked into her office cubicle and sat down. The entire episode with the blond man had taken well over two hours of her day. Based on this case study, what security awareness and training documents and posters had an impact in this event?

  Advantages of the database approach

What are the advantages of the database approach over the traditional approach to database management? What is a data center, and why are they becoming increasingly important

  Design the administration program for a veterinary office

this is an individual assignment. You will design the administration program for a veterinary office: This office attends to three different kinds of animals: Dogs, Birds, and Fish. You are to capture these with their respective classes. Each subclas..

  Write fields to use as control break fields to make report

Write down fields that you want to use as control break fields to make a report which lists all inventory items in grocery store? Create a sample report.

  Experts suggest regarding search for information on internet

Which of the following do experts recommend regarding the search for information on the Internet? Avoid Boolean operators since new technology has made them obsolete.

  Company officers to find which planning approach is suitable

If you were in charge of systems planning for a small firm, what questions would you ask the company officers to determine which planning approach would be the most appropriate.

  Simulating problem for arriving for lunch at restaurant

Customers for lunch arrive into a restaurant at Exponential rate of 10 per hour for seated service and at  Exponential rate of 15 per hour for buffet. Simulate this problem for 8 hours using minutes as the basic time units.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

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