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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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