Objectives
- Prompt the user for input
- Get input from the user
- Convert user input into the proper data type
- Perform simple calculations
- Display output to the user
The source code listings for these programs, and all others due in this course, must include comments at the beginning of the source code which contain your name, the course, the date, and the assignment number. Follow style conventions covered in class. Assignments should be submitted to the assignment dropbox in Desire2Learn. You must submit the source code (.py) files. Flowcharts representing the basic algorithms for each program are provided.
(15 points) Write a program that displays the following output on the screen. You can print a " within a "-delimited Python string using the character combination: \". Likewise, you can print a ' within a '-delimited Python string using the character combination: \'.
Note: Output was generated by the figlet program using the univers font - but that is not relevant to your completing this assignment.
Sample output:
,ad8888ba, 88 ad88888ba 88 88 88 d8"' `"8b 88 d8" "8b ,d88 ,d88 ,d88 d8' 88 Y8, 888888 888888 888888 88 88 `Y8aaaaa, 88 88 88 88 88 `"""""8b, 88 88 88 Y8, 88 `8b 88 88 88 Y8a. .a8P 88 Y8a a8P 88 88 88 `"Y8888Y"' 88 "Y88888P" 88 88 88
(25 points) Write a program which gets the number of hours, minutes, and seconds the user was riding their bicycle and the number of miles the user travelled. Then calculate and display the average miles per hour for the user's bicycle trip.