3Software Engineering with Control Structures

3.1 Relational Operators and Expressions

3.2 if and if-else Statements

3.3 The Type double

3.4 Program Design with the while Loop

3.5 Debugging

Our C# programs so far have been simple. All we have learned to do is execute one statement after another in order. We have not had any choices. If we lived ‘life like that, we would get up every day, get dressed, and have breakfast no matter how we felt. In reality, we make decisions among alternatives. If we are very sick we might stay in bed and not get dressed. (If we are very lucky, someone might bring us breakfast in bed.) We might not be hungry one morning, so we would get up, get dressed, but skip breakfast. Here is a description of our morning, ...

Get Computing with C# and the .NET Framework, 2nd Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.