Python Practice Problems
Variables:
Write a program that declares variables named width and height. In your program, output the area of a rectangle and the area of a right-angled triangle given the values you assigned for width and height.
The volume of a sphere with radius r is 43πr3. Write a program that will calculate the volume of a sphere with a radius of 5.
Suppose the cover price of a book is $24.95, but bookstores get a 40% discount. Shipping costs $3 for the first copy and 75 cents for each additional copy. Write a program that calculates the total wholesale cost for 60 copies?
Para is training for the cross country team. Write a program that will calculate how long it will take her to run 1 mile at an easy pace (8:15 per mile), then 3 miles at a faster pace (7:12 per mile) and then 1 mile at the easy pace again.
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
"assignmentexpert.com" is professional group of people in Math subjects! They did assignments in very high level of mathematical modelling in the best quality. Thanks a lot
Comments
Leave a comment