Week3

We started learning if-else statements in C# and looked at an if-else as well as a nested if-else example. We also learned about Boolean expressions and looked at relational operators &&, ||, !.

We then looked at the switch statement as an alternative to if-else.

We started learning about loops with the while loop today. We looked at counter-controlled loop examples and also a sentinel-controlled loop example.

Powerpoint Slides

control_all

C# code we discussed in class (renamed as .txt files for security reasons)

maximum1_cs

maximum2_cs

gradebookswitch_cs

gradebooktestswitch_cs

sum10nums_cs

gradebookcountingwhile_cs

gradebookcountingwhiletest_cs

gradebooksentinelwhile_cs

gradebooksentinelwhiletest_cs

string_test_cs