Select Page

## Python Programming – John Zelle: Chapter 3 ex. 3

Python Programming – John Zelle: Chapter 3 ex. 3 Write a program to calculate the molecular weight of a hydrocarbon based on the number of hydrogen, carbon and oxygen atoms. #Chapter 3 Exercise 3 #Write a program to calculate the molecular weight of a...

## Python Programming – John Zelle: Chapter 3 ex. 2

Python Programming – John Zelle: Chapter 3 ex. 2 Write a program to calculate the cost per square inch of a circular pizza. #Chapter 3 Exercise 2 #Write a program to calculate the cost per square inch of a circular pizza. from math import * def main():...

## Python Programming – John Zelle: Chapter 3 ex. 1

Python Programming – John Zelle: Chapter 3 ex. 1 Write a program to calculate the volume and surface area of a sphere from it’s radius, given it’s input. I modified the exercise to indicate the units of mesaure. #Chapter 3 Exercise 1 #Write a program to...

## Python Programming – John Zelle: Chapter 2 ex. 11

Python Programming – John Zelle: Chapter 2 ex. 11 Write an interactive Python calculator program. The program should allow the user to type a mathematical expression, and then print the value of the expression. Include a loop so that the user can perform many...

## Python Programming – John Zelle: Chapter 2 ex. 10

Python Programming – John Zelle: Chapter 2 ex. 10 Write a program to preform a unit conversion of your choosing. Make sure that the program prints an introduction that explains what it does. This is a program that will convert US gallons to liters. #Chapter 2...

## Python Programming – John Zelle: Chapter 2 ex. 9

Python Programming – John Zelle: Chapter 2 ex. 9 Write a program to converts distances measured in kilometers to miles. One kilometer is approximately 0.62 miles. #Chapter 2 Exercise 9 #convert kilometers to miles def main(): kilometers = int(input(“Enter...