A student’s school is at a distance of 5 km 350 m from her home. She travels
1 km 70 m on foot and rest by bus. Write a program to determine how much distance she
travels by bus.
_____________________________
I NEED WITH PROGRAM
PLZZZZ ANSWER SOON
_/\_
Answers
Answered by
8
Answer:
The code below is in Basic. Let me know if you need in any other language.
'First we will convert the distances to the same unit i.e. meters
Dim distanceToSchool as integer = (5*1000)+350
Dim distanceTraveledOnFoot as integer = (1*1000)+70
Dim distanceTraveledByBus as integer = distanceToSchool - distanceTraveledOnFoot
Print ("Total distance traveled by bus: " + distanceTraveledByBus + " meters")
This will print "Total distance traveled by bus: 4280 meters
Explanation:
Answered by
4
Explanation:
4280 is the right answer
Similar questions