| Contact PSVM (Q & A) | Notes Below Audio | [toc] [prev] Slide 12 of 13 [next] |
|
|
| 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, [12 (top)], 13, [Lab] |
|
Notes for Slide 12 In the lab, you will write at least four programs. First, return to the example shown on Slide #4 of this step and replace the else-statements with elseif-statements. Do you add or remove any other statements. Your task is to correctly state the condition in the elseif-statements that will produce the same results as the program shown on the slide. Second, assign a letter grade of A, B, C, D or F for a single test score using only one if-statement. Third, write the same letter grade program but use more than one if-statement and do not use any elseif-statements. The fourth and final program will assign a letter grade given a list of scores requiring you to calculate the average of the scores. 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, [12 (top)], 13, [Lab] |