CGS2423, Assignment 3
Due Tuesday, March 5 at the start of class
Write a complete program using C that will meet the requirements of problem
4 on page 160 of the text.
-
Write and use a function for a program introduction. It will be similar to
the function you wrote in the last assignment.
-
Read the pollutant number as an integer. If a number other than 1, 2, 3,
or 4 is entered, print an error message.
-
As part of the output, display the message indicated in the book, along with
the name of the pollutant that was chosen, the level of pollution that your
program calculated, and the number of miles on the odometer.