Select Page

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

Python Programming – John Zelle: Chapter 3 ex. 9 Write a program to calculate the area of a triangle given the length of its three sides a, b, c. #Chapter 3 Exercise 9 # Write a program to calculate the area of a triangle given the length of its three sides a,...

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

Python Programming – John Zelle: Chapter 3 ex. 8 The Gregorian Epact is the number of days between Jan. 1st and the previous 1st quarter moon phase. This value is used to figure out the date of Easter. Write a program that prompts the user for a 4-digit year and...

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

Python Programming – John Zelle: Chapter 3 ex. 7 Write a program that accepts two points (see previous problem) and determines the distance between them. #Chapter 3 Exercise 7 #Write a program that accepts two points (see previous problem) and determines the...

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

Python Programming – John Zelle: Chapter 3 ex. 6 Two points in a plane are specified using the coordinates (x1,y1) and (x2,y2). Write a program that calculates the slope of a line through two (non-vertical) points entered by the user. #Chapter 3 Exercise 6 #Two...

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

Python Programming – John Zelle: Chapter 3 ex. 5 The Konditorei coffee shop sells coffee at \$10.50 a pound plus the cost of shipping. Each order ships for \$0.86 per pound + \$1.50 fixed cost for overhead. Write a program that calculates the cost of an order....

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

Python Programming – John Zelle: Chapter 3 ex. 4 Write a program to calculate the distance to a lightning strike based on the time lapsed between the flash and the sound of thunder. The speed of sound is approx. 1100 ft/sec and 1 mile is 5280 ft. #Chapter 3...