Question
1. open IDLE Shell, then click File -->New File, type or copy/paste chaos.py file into IDLE Scripts mode . (Find chaos.py file here: http://mcsp.wartburg.edu/zelle/python/ppics2/code/chapter01/ 2.
1. open IDLE Shell, then click File -->New File, type or copy/paste chaos.py file into IDLE Scripts mode. (Find chaos.py file here: http://mcsp.wartburg.edu/zelle/python/ppics2/code/chapter01/
2. For Project 1, you need to modify chaos.py program in THREE different ways:
PORTION ONE: Modify the chaos.py program so that it prints out 16 values instead of original 10.
PORTION TWO: Modify the chaos.py program so that the number of values to print is determined by the user's input. You will have to add a line near the top of the program to get another value from the user: n = eval (input ("How many numbers you want to print? ")). You also need to change the for i in range (10) to for i in range (n).
PORTION THREE: Add comments to a revision of chaos.py program: chaos_v5.py, which is modified, so that it accepts two inputs and prints a table with two columns similar to the one shown in textbook Page 18.
2. For each portion, run them one by one. Click Run --> Run Module (or just simple click shortcut F5). Respond this program within the Interactive mode.
3. If it does not work, check your codes again, DEBUG it, run again until it works.
4. For each portion, Copy/Paste .py file and running result into a single .txt file (you can use Notepad in Windows, or Text Edit in Mac, to create a .txt file),
Step by Step Solution
There are 3 Steps involved in it
Step: 1
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