This lab’s objective is to learn how to use loops and escape sequences to create conversion tables and make calculations. You will write 2 programs, the first is your conversion table which will convert celsius to fahrenheit in increments of 20 degrees. The second is your loop formula which will calculate all odd numbers from 0 to a number entered by the user.
In this week's lecture the topic of discussion will be for, while, and do-while loops. A loop
executes the sequence of statements many times until the stated condition becomes
false, as opposed to if statements which only run once.
Submit the three screenshot files and Part C source code (.c file) to MySeneca (using the Lab 4
page in the PRG155 lab site). Lab solutions received by due date will receive up to 1.5%
towards the PRG155 course grade. This mark depends on the completeness of the solution and
quality of your code (formatting counts)
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |