Due: October 14, 2024
Points: 34
In the given examples, what you type is in red and the program prints what is in black. Your program output should look exactly like the output in the examples, except that what you type won’t be in red. Also, the symbol “↵” is a newline (return or enter keys).
To turn in: Please turn in the program in the file pi-ex.py.
Sample output: only the first 4 lines are shown
100000 3.141582653589720 0.000010000000073 200000 3.141587653589762 0.000005000000031 300000 3.141589320256464 0.000003333333329 400000 3.141590153589744 0.000002500000049
To turn in: Please turn in the program in the file new_make_change.py.
Examples:
Amount of change: 92 92 cents is 3 quarters, 1 dime, 1 nickel, and 2 pennies Amount of change: 16 16 cents is 1 dime, 1 nickel, and 1 penny Amount of change: 15 15 cents is 1 dime and 1 nickel Amount of change: 30 30 cents is 1 quarter and 1 nickel Amount of change: 34 34 cents is 1 quarter, 1 nickel, and 4 pennies Amount of change: 1 1 cent is 1 penny
|
ECS 235A, Computer and Information Security Version of September 24, 2024 at 10:32AM
|
You can also obtain a PDF version of this. |