Predict the size of a population of organisms

Assignment Help Business Management
Reference no: EM131723429

Population

Write a program that will predict the size of a population of organisms. The program should ask the user for the starting number of organisms, their average daily population increase (as a percentage, expressed as a fraction in decimal form: for example 0.052 would mean a 5.2% increase each day), and the number of days they will multiply. A loop should display the size of the population for each day.

Prompts, Output Labels and Messages.The three input data should be prompted for with the following prompts: "Enter the starting number organisms: ", "Enter the daily increase: ", and "Enter the number of days the organisms will multiply: " respectively. After the input has been read in successfully, a table is produced, for example:

2            300.0

4            675.0

Under the heading is a line of 29 dashes followed by one line for each day, showing the day number and the population at the beginning of that day.

Input Validation.Do not accept a number less than 2 for the starting size of the population. If the user fails to satisfy this print a line with this message "Invalid. Must be at least 2. Re-enter: " and try to read the value. Similarly, do not accept a negative number for average daily population increase, using the message "Invalid. Enter a non-negative number: " and retrying. Finally, do not accept a number less than 1 for the number of days they will multiply and use the message "Invalid. Enter 1 or more: ".

Reference no: EM131723429

Questions Cloud

Present your research proposal poster : Present your research proposal poster.Both modalities must include the following: Abstract, including the research question.
What is passive income according to flynn : What is passive income according to Flynn - What are the main products or services on this website - Compare the latest monthly income report
Current value of the bank dollar-denominated assets : Suppose that Canterbury Bank has a net short position in U.S. dollars of $8 million, dollar-denominated liabilities of $115 million.
Write a term paper about human microbial diseases : Write a term paper about Human microbial diseases. Make sure to use at least 5 references! Reference everything properly and don't plagiarize.
Predict the size of a population of organisms : Write a program that will predict the size of a population of organisms. The program should ask the user for the starting number of organisms
Discuss in your words the definition of ethics : Discuss in your words the definition of Ethics and Discuss what is the difference between "Illegal" and "Unethical" acts
Discuss risks to the companys information system : make a chart to show all potential risks to the company's information system including from inside or outside the system
What are some key issues for country : Why are banks more prone to cross national borders today and even span continents to acquire other financial-service providers?
Write a program that asks the user : Write a program that asks the user how far they ran (in miles) and then how long it took them (in minutes), and print out their speed in miles per hour.

Reviews

Write a Review

Business Management Questions & Answers

  Is ollie bound to the confirmation

Sean of Sean's Shrimp House was enjoying a cup of cappuccino while visiting with Ollie at Ollie's Ocean Front Bar & Grill. During the course of their conversation, Sean agreed to supply 100 pounds of shrimp per month for the next year to Ollie's r..

  News and information affect news consumers

Research question "How does reliance on social media for news and information affect news consumers' perspectives on the world?"

  Binding on goody cafe and wacc

Assume the company Goody Café Pty Ltd ('Goody Café') is registered a month after the contract with WACC is executed. What must Malcolm do to ensure that the contract is binding on Goody Café and WACC and that he is not personally liable for the act..

  What could companies do to improve reception of initiatives

The companies described in the case encountered a fair amount of resistance from employees when introducing smartphone technologies. - What could companies do to improve the reception of these initiatives?

  Explain what have you learned about statistics

The question to address is: "What have you learned about statistics?" In developing your responses, consider - at a minimum - and discuss the application of each of the course elements in analyzing and making decisions about data (counts and/or m..

  Case from the text book managing information technology

Presentation - can be done in PowerPoint, Google Docs presentation, or other presentation software readable by the instructor. Each slide should include lecture notes - i.e., what would you say if you were actually presenting this? Make sure each sli..

  How to make a presentation on amended business plan

How to make a Presentation on Amended Business Plan for start-up business (what to include). If it possible can you sent me please an example.

  Training return on investment

Training return on investment (ROI) is a calculation of economic return on a project. Refer to the lecture for the formula. Review this problem.

  Leader-s challenge and personal potential in organization

The leader's challenge is to help individuals grow and fulfill their personal potential while advancing the organization's goals'.

  Which types of incentive pay are described in this case

Which types of incentive pay are described in this case? Are these based on individual, group, or company performance

  Risk management maturity stages

1. What are the risk management maturity stages? 2. Name the five elements of an sustainable ERM programme?

  The systems model of change were affected by the changes

Which of the target elements of change within the systems model of change were affected by the changes at HCL?

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