03 Jul Saturday 13:00 Python Practice – 22.06.25.
Posted at 02:08h in Saturday 13:00 Homework 0 Comments
You are in a bike race which goes up and down a hill. You could create two variables: uphillDistance and downhillDistance give the distance (in km) of both parts of the race. Write a program that will print out the total distance for the entire race.
Uphill distance: 3
Downhill Distance: 5
The total distance is 8 km
Write a program that helps the user add up her change. The program should ask:
- “How many quarters?”
- “How many dimes?”
- “How many nickels?”
Then it should give the total value of the change
Sample Input: How many quarters? 1 How many dimes? 2 How many nickels? 4 Sample Output: The total is $0.65
Sorry, the comment form is closed at this time.