Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For Programming Assignment 1 , you are required to write Python scripts ( or programs ) that compute the following. [ MO 1 . 2
For Programming Assignment you are required to write Python scripts or programs that compute the following. MO
a Write a script to compute and print the surface area of a sphere with radius The surface area is given by pi r where r is the radius and pi is Your script should include incode comments as necessary to allow a reviewer of the program to understand the objective and functioning of it Comments in Python begin with the # character.
b Write a script for computing and printing the speeding fine of a motorist. Assume the speed limit is mph the motorist was traveling at mph and the ticket is $ for each mph over the speed limit Your script should include incode comments as necessary to allow a reviewer of the program to understand the objective and functioning of it Comments in Python begin with the # character.
Submit your programs as script files named COSPAapy and COSPAbpy respectively.
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