Question: Problem 1. (Three Equal Numbers) Write a program equality.py that takes three integers as command-line arguments and writes equal if all three are equal, and

Problem 1. (Three Equal Numbers) Write a program equality.py that takes three integers as command-line arguments and writes "equal" if all three are equal, and "not equal" otherwise. s python equality.py 5 5 5 equal python equality.py 515 not equal Problem 3. (Newton's Method) Using Program 1.3.6 (sqrt.py) from the IPP text as a model, develop a program root.py that takes a float c and an integer k as command-line arguments and writes c (kth root of c to 5 decimal places of accuracy ie, use-0.00001 Hint: at each iteration, replace the estimate t by t f(t)//"(t), where f(x-zr_c and f'(z-kzk 1 and use the condition |1 -c/t*|>e to continue the loop. s python root.py 3 2 1.73205081001 $ python root.py 64 3 4.00000050864
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
