1) Draw a flow chart for the C program that prompts for a temperature, reads the temperature and prints the appropriate message according to the following:

Temperature Message
88 or hotter "Its cooking out there!"
80 to 87 "Its alittle warm out there!"
65 to 79 "Its nice outside!"
64 or below "Its cool outside!"

2) Consider the following program segment.

int value;

value = 5;

while (value <= 100) {

printf("%d\n", value);

value = value + 5;

} /* end while */

a) Draw a box showing the output of this program.

b) Describe in English what this program does.

c) After the while statement completes, what is the value of the variable "value"?

3) Write a program that reads test scores to tally (count) the number of scores 70 or above and the number of test scores below 70. Use a sentinel value of -999 to indicate no more input.