CSC 171 - Introduction to Computer Programming

Lab Assignment #13 - Using Functions to Write Messages

Due Thursday, October 26, 2023

Earlier in the term, we wrote a program that allowed the user to enter the number of miles driven and the number of hours it took to drive that distance. The program calculated and printed the user's speed and if the driver was driving at faster than 55 miles per hour, it printed out a warning.

Rewrite the program so that it uses two functions: one to print instructions at the beginning of the program run and a second to print the warning if the user is driving faster than 55 mph. Include the flowchart and pseudocode for the main program.

[Back to the Lab Assignment List]