Disease will reduce the survival rates of juveniles

Assignment Help Basic Computer Science
Reference no: EM131014837

Tasks 1. Develop a main menu for the program. The options on the main menu should be:

• Set the Generation 0 values

• Display the Generation 0 values

• Run the model

• Export data

• Quit.

2. Develop the part of the program that allows the user to set the Generation 0 values for the:

• population numbers of juveniles, adults and seniles

• survival rates for juveniles, adults and seniles

• birth rate

• number of new generations to model. This should be between 5 and 25. The program should then return to the menu.

3. Develop the part of the program that will display the Generation 0 values for juveniles, adults and seniles, the birth rate and the survival rates. The program should then return to the menu.

4. Develop the part of the program that runs the model, displaying the number of juveniles, adults and seniles and the total population size for each generation from 0 to the number of new generations entered. The program should then return to the menu.

5. The model needs an export feature to save the data so that it can be used in another application (such as a spreadsheet package). Develop your program so that when the user chooses to export the data:

a) They are asked to enter a suitable filename

b) The program should check whether a file of the same name already exists.

c) If the file does not already exist, then the data are saved.

d) If the file does already exist, the user should be asked whether they want to overwrite the existing file.

e) If they choose to overwrite the existing file, then the data are saved.

f) If they choose not to overwrite the existing file, then they should be returned to step a. After this option has been completed, the program should return to the menu

6. In a real population, if the total population becomes too high, the survival rates will decrease because of disease.
When the total population size reaches a disease trigger point, disease will take effect. When the total population size falls below this trigger point, disease will have no effect

The effect of disease is unpredictable. To simulate this effect a disease factor is applied to the survival rates of juveniles and seniles.

• The disease factor is represented by a random percentage between 20% and 50%.

• To calculate the new number of juveniles and seniles in the next generation, the following formula is used: New number of individuals = Current number of individuals * survival rate * disease factor Extend your menu from Task 1 to include an option to enter the total population disease trigger point. Extend your program to allow for the effect of disease in calculating the population sizes. Disease will reduce the survival rates of juveniles and seniles only

Reference no: EM131014837

Questions Cloud

Define a class client which has attributes name : Your menu should allow you to add new clients, accept payments from clients using the client's name, make loans, look up a client's balance, remove a client,
Guatemalan quetzal cross rate : Isaac Díez Peris lives in Rio de Janeiro. While attending school in Spain he meets Juan Carlos Cordero from Guatemala. Over the summer holiday Isaac decides to visit Juan Carlos in Guatemala City for a couple of weeks. What is the Brazilian real/Guat..
Photographic paper and developing materials for traditional : Kodak used to primarily produce and distribute photographic paper and developing materials for traditional (i.e., non digital) photographic methods. A sizable portion of their business was home photography. Given the assumptions listed above, what is..
How large a sample should be taken : After a brief time study on a delivery job, the data showed an average time to do the delivery job of 5.7 minutes with a standard deviation of 0.35 minutes. If we use an alpha value of 2%, and we want our final estimate to be within 0.1 minutes of..
Disease will reduce the survival rates of juveniles : Develop your program so that when the user chooses to export the data
Annuity to retiring professors : Professor’s Annuity Corp. offers a lifetime annuity to retiring professors. For a payment of $70,000   ("present value") at age 65, the firm will pay the retiring professor $500 a month until death. If the professor’s remaining life expectancy is 20 ..
Specific management and leadership theories : Using Coach Boone or Yoast as an example, identify situations man demonstrated the four functions of management (planning, organizing, leading, and controlling).
What is the product or service being advertised : Persuasion happens all around us every day. Even if we are just passively consuming media, we are surrounded by persuasive messages. Find a TV commercial that you find persuasive and post a link to it, so your classmates can see it to. What is the pr..
Dynamics of organizational compensation plans : What are your thoughts as why the dynamics of organizational compensation plans are changing? How has society influenced the way we compensate employees? What do you believe to be some of the more important employee benefits that could be offered by ..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Program consists of a 200-instruction

A given program consists of a 200-instruction loop that is executed 50 times. If it takes 20,000 cycles to execute the program on a given system, what are that system's cycle per instruction

  Information technology support company-s business processes

How can information Technology support a company's business processes and decision making and give it competitive advantage? Give examples to illustrate your answer.

  The mother board to the hard drive and cd/dvd drive

Cables inside of the computer that connect the mother board to the hard drive and CD/DVD drive.

  Describe at least three changes that would make it easier

Although the subsequent code compiles and runs, the programmer broke some major readability rules -  Describe at least three changes that would make it easier for other programmers to read and understand the code.

  Coordinate the other source files, main calls functions

Copy the directory lab5 from the cis18b directory. This is the directory where you will do your work for Module 5 lab. In this directory are some source files that work together to allow the user to multiply 2 integers (yes, the code is a no-brain..

  How much would it have cost to have corrected fault

How much would it have cost to have corrected the fault during the specification phase? What should be the best answer to this question by a software engineering?

  Use jsp to display current date & time

Fail authentication page will ask user to create the new account if the user does not have an account on the system.

  Possibly liscense cub or act as a service provider

What is your opinion on whether CenterPoint should possibly liscense CUB or act as a service provider?

  Examine the specifications for an enterprise class firewall

Examine the specifications for an enterprise class firewall and a personal or home firewall. Determine why all firewalls are not equal. Assess the effectiveness of each and determine if one outperforms another at its intended function.

  Give a formal proof

Give a formal proof

  Which is not true about the telecommunications act of 1996

Under the rate-of-return regulation, plant depreciation is handled by subtracting the depreciation from the rate base and by the application of return on capital investment. Which of the following is not true about the Telecommunications Act of 1996...

  Develop an i/o port decoder

Using a PLD, develop an I/O port decoder that generates the following high-bank I/O strobes: 300DH, 300BH, 00B6H, and 00EEH.

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