Post date: Feb 22, 2017 4:51:38 AM
/!\ Quiz 1 will be on Week 5
Flow of Control
3.1 Branching Mechanism
Recommended Self-Test Exercises:
p 143: Ex. 9 and 10.
p 152: Ex. 17.
p 163-164: Ex. 19 and 21.
Lab Exercises:
Ask the user to enter a grade between 0 and 100 and display the letter grade corresponding to that grade using the following table:
Write a program that asks the user to enter 3 real numbers between 0 and 100, then display the average of these numbers, and then display "Sorry!" if the average if lesser than 60, or "Congratulations!" otherwise.
Write a program that reads the temperature of the water and then it displays "Solid" if the temperature is zero or below, "Vapor" when the temperature is greater or equal to 100, "Liquid" otherwise.