Question: 5. Write a program that asks the user to input a distance in meters. Then, the program breaks it into kilometers and meters. (Test your

 5. Write a program that asks the user to input a
distance in meters. Then, the program breaks it into kilometers and meters.

5. Write a program that asks the user to input a distance in meters. Then, the program breaks it into kilometers and meters. (Test your program using various values such as 1048,780,3000 meters). 6. Write a program that asks the user to input a period of time in minutes. Then, the program breaks it into hours and minutes. (Test your program using various values such as 89,180 and 50 minutes). 7. Modify the previous program to input a large period of time in minutes (e.g. 3040). Then, the program breaks it into days, hours and minutes. Page 3 of 4 Userididild Arab Academy for Science, Technology \& Maritime Transport CoUrSE: INTRODUCTON TO Programming (BIS227E) LECTURER: DR. AL ALLAM Assistants: Ms. MARY WILLAM / Mr. AHMED AL-GALLAD 8. Bonus Question: Write a program to break the date down into day, month, and year pieces. Assign the date value 20180214 to a variable. Use arithmetic expressions to break the date down into its yyyy, mm, dd pieces. Store the yyyy, mm and dd into three separate variables and then print them

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!