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.:- M92532119
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Business Management

Business management need example about a company

Business Management, Need example about a company organization was not able to achieve their goals. Why did this occur?

What involvement does management need to have to achieve

What involvement does management need to have to achieve buy-in from internal stakeholders?

What are the benefits of asking open questions of clients

What are the benefits of asking open questions of clients in gaining your feedback?

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.

According to firestones tire recall case evaluate and

According to Firestone's tire recall case, evaluate and discuss the role of leadership when commercial realities conflict with the public safety concerns and the ethical dilemma that ensue for leaders in such situation. ...

How do you think diversity communication and organisational

How do you think diversity, communication and organisational structure could potentially constitute strong aspects of organisational culture? Why is it important for the manager to consider this relationship?

Prepare the outline of a financial plan for a small

Prepare the outline of a financial plan for a small business. In your plan include descriptions/ explanations of: financial records that will be kept the accounting procedures that will be used how the financial projecti ...

Read the article below and then answer the following

Read the article below and then answer the following questions. 1. Discuss the latest trends in Change management (short background, current situation, best practices and the future in the Change management field.). 2. W ...

As organizations build inclusion efforts to drive diversity

As organizations build inclusion efforts to drive diversity (e.g., pluralism, structural integration, informal network integration, absence of prejudice and discrimination, and minimum intergroup conflict), what barrier ...

Statistics and facts about smartphonessmartphones mobile

Statistics and facts about Smartphones Smartphones, mobile phones with more advanced computing capabilities and connectivity than regular mobile phones, came onto the consumer market in the late 90s, but only gained main ...

  • 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