- Instructor: Dan Neumann, daniel.neumann@indwes.edu
-
Enter and run the Chaos program from Section 1.6. Try it out with various values of input to see that it functions as described in the chapter.
-
Modify the Chaos program using 2.0 in place of 3.9 as the multiplier in the logistic function.
Your modified line of code should look like this:
x = 2.0 * x * (1 - x)
- Run the program for various input values and compare the results to those obtained from the original program.
- Create a text file called 'results.txt'
- Write a short paragraph in that file describing any differences that you notice in the behavior of the two versions.
- Change the loop counter from 10 to 20.
- As it stands, the program contains several "Magic Numbers". Modify the code by adding a constant value for the multiplier and the loop count.
- Push up to GitHub and create a pull request on the original repository.
- Fork the repository for the exercise/project (found under github.com/advanced-js).
- Clone the repository to your computer.
- Open the
index.html
file in a browser and open the Developer Tools. - Modify the files to complete your solution.
- Refresh the
index.html
page to see the results, and repeat. - Make sure all of your code is committed.
- Push/sync up to GitHub.
- Create a pull request on the original repository. All assignments are due at the start of the following class, unless otherwise specified.
- You can continue to push fixes and improvements until the close date (listed in Classes) – just add a comment in the pull request to let me know it's been updated.