Answered step by step
Verified Expert Solution
Question
1 Approved Answer
COMP1005/5005 - Practical Test 3 Run a web browser in the Virtual Machine and download the zip and data file from Blackboard/Assessments Unzip them
COMP1005/5005 - Practical Test 3 Run a web browser in the Virtual Machine and download the zip and data file from Blackboard/Assessments Unzip them into the PracTest3 directory. Complete the four tasks below - one mark for each task 1. Modify the code to: a. Use loops and indexing to create a list of 5 butterflies and a list of 5 ants, b. Use more loops to draw them for 5 timesteps (use the stepChange method as-is). c. Update the plot title to include the timestep #. 2. Read in the terrain file from the garden3.csv file. a. Change the colour map to terrain for showing soil and sky. b. Update LIMITS to match the size of the data that was read in 3. Update the stepChange method in the Butterfly to a. Use Moore neighbourhoods for the movement of the butterfly. b. Make all movements equally likely - including staying still 4. Update the stepChange method in the Ant class to a. Use Von Neumann neighbourhoods b. Only move through the tunnels README Update a README file to include info on your code and images Submission and Assessment Ask your tutor to assess your work when complete. All of your work should be submitted via Blackboard through the link on the Assessment page. This should be done as a single "zipped" file. zip PracTest2_ID* End of Test This is Plot 1 - space them out like Prac Test 2 Initial Code : 0 This is Plot 3- reckless ants, Moore butterflies Initial Code : 6 This is Plot 2 - with the wrong colormap Initial Code : 0 This is Plot 4 - well-behaved Von Neumann ants Initial Code: 26 IST
Step by Step Solution
★★★★★
3.56 Rating (149 Votes )
There are 3 Steps involved in it
Step: 1
1 Modify the code to a Use loops and indexing to create a list of 5 butterflies and a list of 5 ants ...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started