Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Two buses leave the Success Academy High School in Manhattan to take the Top 20 students to a campus visit at Syracuse University. The first bus to leave is driving at 40 mph and the second bus is moving at 50 mph. How long will it take each bus to get 75 miles away from the high school campus? Use the substitution property from Algebra 1
- mySpeed = input('Enter a speed: ');
- speed = float(mySpeed);
- myDistance= input('Enter a distance:');
- distance = float(myDistance);
- myTime = distance / speed;
- print(myTime)
- # Two cars start at the same point at 5 o'clock am traveling in opposite directions at 40 mph and 50 mph, respectively. At what time will the cars be exactly 450 miles apart?
- carSpeed1 = float(input('Enter speed of car 1: '))
- carSpeed2 = float(input('Enter speed of car 2: '))
- totalSpeed = carSpeed1 + carSpeed2
- totalDistance = float(input('Enter distance: '))
- time = totalDistance / totalSpeed
- print(time)
Add Comment
Please, Sign In to add comment