Some examples to work on in class.

Problem #1: Take in the height, width and length of a box and calculate its volumn (height times width times length). If the volume is over 100 put out a message that says too big. Otherwise put out a message that says OKAY.

Problem #2: Take in the hours you worked for each of the weekdays. Display the total hours worked, the average of the hours worked. If the hours worked is greater than 40, display a message saying entitled to overtime otherwise display a message sayig no overtime.

Problem #3: Redo problem #2 but take in the hours worked in a loop so that each pass through the loop takes in the total for one day.

Problem #4: You want to write a loop that takes in an amount spent, displays it and adds it to a total. You want to continue the loop until the total is greater than 200. You want to display each amount as you process it and you want to display the total at the end.

Problem #5: Take in the cost of a chair, the cost of a table and the cost of a lamp. If the total cost exceeds 1000 display a message that says too expensive, if the cost is between 500 and 1000 display a message that says ok, otherwise display a message that says too cheap.