Ex 2 Sample Input/Output Given a negative rate a, 8, 7, 6, ko, uo as: -2 The program outputs ==> Bull Kelp and Purple Urchin Population Simulator <== Model Parameters Kelp growth rate: Error: cannot have a negative growth rate Ex 3 Sample Input/Output Given a negative population size a, B, y, 8, ko, uo as: 1.5 .001 .05 2.5 100 -2 The program outputs Bull Kelp and Purple Urchin Population Simulator <== Model Parameters Kelp growth rate: Kelp death rate: Urchin birth rate: Urchin death rate: Initial Population Kelp population (in thousands) at t = 0: Urchin population (in thousands) at t = 0: --- Simulation Time t = 0: 100.000k kelp, 0.000k urchins Time t = 1: 250.000k kelp, 0.000k urchins

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
100%

How to solve this question using pythons code 

Checkpoint A
For Checkpoint A, you will need to demonstrate a program that does the following:
1. Prompts the user for the parameters of the model: x, 3, 7, 8
• If a user inputs a negative value for any of these parameters, the program should immediately print an error message and exit.
2. Prompts the user to enter the initial values of the populations ko, uo, representing thousands of individuals.
• If a user inputs a negative value for the initial population for either kelp or urchins, the program should treat the population as
zero.
3. The program should calculate and output the populations k₁, ₁. Outputs should be shown with precision 3 decimal places,
representing the population in thousands. The population should never grow negative (treat negative populations as zero).
Sample Output
Sample input/output behavior for Checkpoint A are provided below. Your program's spacing, spelling, capitalization, and punctuation will
need to match the sample output EXACTLY for this project.
Ex 1 Sample Input/Output
Given inputs a, 3, 7, 8, ko, un as:
1.5
.001
.05
2.5
100
2
The program outputs
==> Bull Kelp and Purple Urchin Population Simulator <==
Kelp growth rate:
Kelp death rate:
Urchin birth rate:
Urchin death rate:
Model Parameters
---
Initial Population
Kelp population (in thousands) at t = 0:
Urchin population (in thousands) at t = 0:
---
---
Simulation ---
Time t = 0: 100.000k kelp, 2.000k urchins
Time t = 1: 249.800k kelp, 7.000k urchins
Transcribed Image Text:Checkpoint A For Checkpoint A, you will need to demonstrate a program that does the following: 1. Prompts the user for the parameters of the model: x, 3, 7, 8 • If a user inputs a negative value for any of these parameters, the program should immediately print an error message and exit. 2. Prompts the user to enter the initial values of the populations ko, uo, representing thousands of individuals. • If a user inputs a negative value for the initial population for either kelp or urchins, the program should treat the population as zero. 3. The program should calculate and output the populations k₁, ₁. Outputs should be shown with precision 3 decimal places, representing the population in thousands. The population should never grow negative (treat negative populations as zero). Sample Output Sample input/output behavior for Checkpoint A are provided below. Your program's spacing, spelling, capitalization, and punctuation will need to match the sample output EXACTLY for this project. Ex 1 Sample Input/Output Given inputs a, 3, 7, 8, ko, un as: 1.5 .001 .05 2.5 100 2 The program outputs ==> Bull Kelp and Purple Urchin Population Simulator <== Kelp growth rate: Kelp death rate: Urchin birth rate: Urchin death rate: Model Parameters --- Initial Population Kelp population (in thousands) at t = 0: Urchin population (in thousands) at t = 0: --- --- Simulation --- Time t = 0: 100.000k kelp, 2.000k urchins Time t = 1: 249.800k kelp, 7.000k urchins
Ex 2 Sample Input/Output
Given a negative rate a, 6, 7, 8, ko, uo as:
-2
The program outputs
---
Bull Kelp and Purple Urchin Population Simulator
Model Parameters
Kelp growth rate:
Error: cannot have a negative growth rate
1.5
.001
.05
2.5
100
-2
Ex 3 Sample Input/Output
Given a negative population size a, b, y, 8, kỵ, u as:
The program outputs
==> Bull Kelp and Purple Urchin Population Simulator <==
Model Parameters
---
Kelp growth rate:
Kelp death rate:
Urchin birth rate:
Urchin death rate:
Initial Population
Kelp population (in thousands) at t = 0:
Urchin population (in thousands) at t = 0:
---
Simulation
Time t = 0: 100.000k kelp, 0.000k urchins
Time t = 1: 250.000k kelp, 0.000k urchins
Transcribed Image Text:Ex 2 Sample Input/Output Given a negative rate a, 6, 7, 8, ko, uo as: -2 The program outputs --- Bull Kelp and Purple Urchin Population Simulator Model Parameters Kelp growth rate: Error: cannot have a negative growth rate 1.5 .001 .05 2.5 100 -2 Ex 3 Sample Input/Output Given a negative population size a, b, y, 8, kỵ, u as: The program outputs ==> Bull Kelp and Purple Urchin Population Simulator <== Model Parameters --- Kelp growth rate: Kelp death rate: Urchin birth rate: Urchin death rate: Initial Population Kelp population (in thousands) at t = 0: Urchin population (in thousands) at t = 0: --- Simulation Time t = 0: 100.000k kelp, 0.000k urchins Time t = 1: 250.000k kelp, 0.000k urchins
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 5 images

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY