Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Business Management Expert

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

Business Management, Management Studies

  • Category:- Business Management
  • Reference No.:- M92527931
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Business Management

Can anyone please describe how the quicksort works

Can anyone please describe how the quicksort works including a discussion of the pivot. Also how it is selected, and why the pivot is important to the quicksort.

Do you think that compensatory justice provides a

Do you think that compensatory justice provides a sufficient rationale for affirmative action programs in hiring or college admissions?

Many employees are unwilling to relocate because they like

Many employees are unwilling to relocate because they like their current community, and their spouses and children prefer not to move. Yet employees need to develop new skills, strengthen skill weaknesses, and be exposed ...

Explain the virtual integration of crm scm and e-erp

Explain the virtual integration of CRM, SCM, and e-ERP systems in the organisation

What are other contemporary issues regarding global

What are other contemporary issues regarding global organization structures?

How is it that a persons mental map impacts the ability of

How is it that a persons "mental map" impacts the ability of a leader to align the organization with the vision of the organization.

Could you help me solve the following economics problemin

Could you help me solve the following economics problem? "In order to maximize profits a firm should produce the level of output which yields the largest vertical gap between TR and TC curves." Explain this, using a grap ...

What goals seem to dominate early management principles why

What goals seem to dominate early management principles? Why do you think this is the case?

List the organizational characteristics or factors that

List the organizational characteristics or factors that have contributed to their longevity. You do not have to select any specific companies to report on. Instead, report on the research that explains long term success ...

What types of problems can cash or time off incentives in

What types of problems can cash or time off incentives in companies cause for safety in a work place?

  • 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