Predict the size of a population of organisms

Assignment Help Business Economics
Reference no: EM131909020

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: EM131909020

Questions Cloud

Manufacturing durable goods for decades : Component-based design and development have been the norm in manufacturing durable goods for decades.
Prepare a gantt chart schedule for the policies : The Security Life Insurance Company processes all new life insurance policies through three departments: incoming mail (I), underwriting (U).
What is meant by a dynamic array : What is meant by a dynamic array? What is the advantage of a dynamic array over a regular array?
Security concerns for a financial organization : Discuss the potential security concerns for a financial organization looking to optimize its costs by using cloud services, such as those from Amazon or Google.
Predict the size of a population of organisms : 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
What are the bottleneck work centers : What are the bottleneck work centers in part a of the problem. Suggest capacity additions that might be needed.
Investigate a specialist processor : Investigate a specialist processor such as a graphics processor, FPGA, deep learning chip or signal processors.
Showing npv vs. interest rate for alternatives : Create graph showing NPV vs. interest rate for these alternatives. Show the plot from i=0% to i=100%.
Calculate a suitable value of the battery capacity : ENG733S2 Smart Grid Fundamentals Coursework Assignment. Calculate a suitable value of the battery capacity and power rating

Reviews

Write a Review

Business Economics Questions & Answers

  Economics assignment

This document contains various important questions and their appropriate answers in the subject field of Economics.

  Demand and supply curves

Economics is the study of the principles governing the allocation of scarce means among competing ends when the objective of the allocation is to maximize the attainment of the ends.

  Long-run perfectly competitive equilibrium for the firm

Evaluate Government intervene and correct this situation?(a) Explain the concept of a concentration ratio. A rise in the price of magarine Explain the impact of external costs and external benefits on resource allocation long-run perfectly c..

  Supply and demand diagrams

Explain each of the following using supply and demand diagrams,  With the use of a graph, explain how these two programs affect cigarette consumption and the price of cigarettes.

  Case study: fisher-price toys

The case study of the Fisher-Price Toys, Inc., a popular case in basic economics and management from the prestigious Harvard Business School.

  Draw the production possibility curve

Draw the production possibility curve and a. Define consumer surplus and producer surplus.

  Tax revenue

The Australian government administers two programs that affect the market for cigarettes

  Maximize total welfare

How many tickets to sell to maximize total welfare.

  Difference between the cv and the ev

The change in consumer surplus (?CS) is not "theoretically" justifiable like the CV and EV but it continues to be the most widely used measure of consumer welfare change. Explain how this can be reconciled

  Depict von neumann-morgenstern utility index u in a diagram

Depict the von Neumann-Morgenstern utility index u in a diagram

  What is the market solution

What is the market solution (market price and quantity) and What is the total surplus of the society under the market solution

  Calculate gross national product and net national product

Calculate gross national product and net national product

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