Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Business Economics Expert

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: ".

Business Economics, Economics

  • Category:- Business Economics
  • Reference No.:- M92747688
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Business Economics

Suppose that third national bank has reserves of 20000 and

Suppose that Third National Bank has reserves of $20,000 and check able deposits of $200,000. The reserve ratio is 10 percent. The bank sells $20,000 in securities to the Federal Reserve Bank in its district, receiving a ...

What p-value was found when determining whether there is a

What P-value was found when determining whether there is a difference in the IQ of girls and boys in problem 6? Should you reject the null hypothesis? 1. P-Value = 0.465. Yes, you should reject the null hypothesis which ...

Questionuse the data in the table which lists drive-thru

Question: Use the data in the table, which lists? drive-thru order accuracy at popular fast food chains. Assume that orders are randomly selected from those included in the table. Restaurant A-  Order accurate - 331 Orde ...

1 let z be a standard normal random variable with mean 0

1) Let Z be a standard normal random variable with mean = 0 and standard deviation = 1. Us the normal table to find the following answers. a) P(0 b) P(-1.22 c) Find the value Z 0  such that P(0 0 )= 0.4901. 2) On a typic ...

First two questionsdemand qdnbsp 175-5psupplyqsnbsp 1923p -

First two questions, Demand: Q d  = 175-.5*P Supply:Q S  = 1.923*P - 163.462 There is a $50 unit tax on the supplier side. what is the new equilibrium price? I know the new price is 179, looking for the formula explainin ...

Explain how financial leverage at investment banks differed

Explain how financial leverage at investment banks differed from financial leverage at more traditional commercial banks. What is the benefits of this leverage? What are the primary risks associated with financial levera ...

A club consists of 10 seniors 12 juniors and 15 sophomores

A club consists of 10 seniors, 12 juniors, and 15 sophomores. An organizing committee of size 5 is chosen randomly (with all subsets of size 5 likely). Find the probability that the committee has at least one representat ...

What are the differences between the programming lanaguages

What are the differences between the programming lanaguages of VHDL and Verilog? Why use one over the other? Provide some examples for pulsed waveforms.

As a single parent earning on a limited income how can you

As a single parent earning on a limited income, how can you stretch your grocery dollar to plan nutritious meals for you and your children? Would you seek the assistance of federal programs?

Assume you are working at the consumer protection agency

Assume you are working at the Consumer Protection Agency. Recently, you have been getting complaints about the highway gas mileage of a new minivan. The car company agrees to allow you to select randomly 40 of its new mi ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As