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

  Research the difference between static and dynamic ram

Research the difference between static and dynamic RAM. What are the uses of each? How do they store memory. What are the differences between the ways they access data. Create a table comparing static and dynamic RAM

  Review and compare a number of devices and operating systems

Device Hardware and OS Research In this assignment you will review and compare a number of devices and operating systems. This task will require you to undertake research.

  Research a computer organization

You are to research a computer organization/computer architecture topic and present your findings in a research paper. You should read various reference materials to gather information, which then should be presented in a logically organized and c..

  Develop a table that provides the optimum values

Maximize Q for a window with L win = 1 m, satisfying all the conditions previously stated for each TE unit. Can all the TE units satisfy the conditions imposed? Develop a table that provides the optimum values for the design variables,V te , Q , P , ..

  Construct a structure chart, as well as a flowchart

Construct a structure chart, as well as a flowchart and pseudocode,for the following problem. Assume that input record contains a taxpayer's name, the value of personal property belonging to taxpayer, and a code defining the type of a personal ..

  Create a list with or more rows and topics

Can someone give me detailed instructions on how to do this step by step please? Create a list with 8 or more rows and 3 topics. After you have this done, separate this list by topic.

  Write an algorithm in structured english

Write a program in Python that will ask for the number of ticket sold for each type of tickets one by one. That is, it will first ask "Please enter the number of Platinum tickets sold". Once the user enters the number of Platinum tickets sold it w..

  Practice with defining and using python module

Design a Python module by incorporating the two functions, greatest_trivial_factor andisPalindrome,  you defined in previous lab assignments. In other words, your Python module will contain ONLY those two functions. Name your module file aslib_yourfi..

  Identified users of the system

Who are the intended users and what was the main tasks that the users are expected to accomplish

  Explain the difference between oltp and olap data base

Explain the difference between transactional database (OLTP) and analytical database (OLAP).

  Significant product diversification

The Fortune 500 firms are very large and many of them have significant product diversification. Do you believe these large firms are overdiversified? Do they experience lower performance than they should? Explain your opinion and rationale and ..

  How drones can find and hack internet-of-things

Write a one-page summary concerning the specific article "How Drones Can Find and Hack Internet-of-Things Devices From the Sky and explain how you think the issue affects network and/or global security in general. Do not forget to include the APA cit..

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