Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91730522
  • Price:- $20

Priced at Now at $20, Verified Solution

Have any Question?


Related Questions in Computer Engineering

You are requested to design an information technology

You are requested to design an Information Technology Infrastructure for an international nonprofit organization. The organization has six offices, one each in Ohio, Kentucky, Toronto, Michigan, Chicago, and Indiana. Col ...

Question suppose that new more powerful arithmetic

Question : Suppose that new, more powerful arithmetic instruction are added to the instruction set. On average, through the use of these more powerful arithmetic instructions, we can reduce the number of arithmetic instr ...

Question suppose alice bob and carol want to use secret key

Question : Suppose alice, bob and carol want to use secret key technology to authenticate each other. If they all use the same key, K, then bob would impersonate carol to alice. suppose instead that each had their own se ...

Question goal setting please respond to the

Question: "Goal Setting" Please respond to the following: • Early computers were only usable by experts with strong technical knowledge. Examine how interactive systems have changed throughout the years to accommodate av ...

On microsoft word what would be the advantage of using the

On Microsoft word, what would be the advantage of using the dialog box over setting various tabs directly on the ruler line? In what types of typing tasks would you find using the ruler line helpful?

When a 5606g sample of walnuts is burned with excess oxygen

When a 56.06g sample of walnuts is burned with excess oxygen in a bomb calorimeter with a heat capacity of 23.25kJK-1. The temperature of the calorimeter rises fro 17.78C to 94.57C. What is the (Delta)U(rxn) value, in un ...

Explain how financial leverage at investment banks differed

Explain how financial leverage at investment banks differed from financial leverage at more traditional commercial banks. What is the benefits of this leverage? What are the primary risks associated with financial levera ...

Advertisements suggest that a new window design can save

Advertisements suggest that a new window design can save $400 per year in energy cost over its 30-year life. At an initial cost of $8,000 and zero salvage value, using IRR, is this window a good investment? MARR is 8%.

Question an agile-focused mind-set in project

Question: "An Agile-focused Mind-set in Project Management" • Read the following two (2) articles: "The Scrum Guide," located here and "Core Scrum," located here. Contrast the role of a Scrum Master and the role of a pro ...

Assessment details part 1 design documentation and peer

Assessment Details: Part 1: Design Documentation and Peer Review This stage requires you to select a problem to solve using one of the available Mindstorms Robots, design a possible solution to this problem and submit th ...

  • 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