Question: I want a Netlogo cod for making an Agent system contain the following Items:- Setup Button to do this following points - clear-all - Generate
I want a Netlogo cod for making an Agent system contain the following Items:-
- Setup Button to do this following points
- clear-all
- Generate the number of student agents (i.e. turtles)
o randomly positioned in the world/campus.
o Initial color must be green (representing not infected)
o Set turtle/student size to 0.3
- Assign random ages to students (range between 15 19).
- Assign random mask protection levels to the students
- reset-ticks
2- Infect button to
Infect only one of the turtles (ask one-of turtles)
o Set infected to true
o Set color to red
3-The Go function (button) must:
- Initiate random movement of agents
- Plot a graph of the number of infected agents.
- Stop simulation if all turtles become red (i.e. infected)
4-The virus spread function must:
- Check if any turtles close to the infected turtle is infected and the protection level is
o Set infected to true
o Set color to red

When the user click on the Setup Button it will show to him the number of student that he selected from the slider
When the user click on the infect button it will change one of the student color to red
When the user click go button the students moving randomly and the become red one by one , when all of student become red the program will stop immediately Depend on (mask-protection-strength) slider.
Age Distribution of Students students 21 100 mask protection_strength 0.40 setup infect 0 15 Frequency 20 go Rate of Infection 10 Infected Infected Population 0 Students 0 Time (week) 10 Age Distribution of Students students 21 100 mask protection_strength 0.40 setup infect 0 15 Frequency 20 go Rate of Infection 10 Infected Infected Population 0 Students 0 Time (week) 10
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
