Enjoying the preview?
This is the free first lesson. Get full access — request a demo or sign in.
Enjoying the preview?
This is the free first lesson. Get full access — request a demo or sign in.
This Data Types course covers how to make decisions in C programs using the different types of If statements. All nontrivial programs need to be able to make decisions, such as how a payroll program decides how much to pay an employee based on the number of hours they worked. Making decisions is one of the key constructs of all programming languages, and is vital for problem-solving within your program.
These lessons first discuss how to create relational expressions to generate true and false values once inputs are submitted into your code. You will learn to implement the basic If statement, followed by the more commonly used If-else statement and the If-else If statement. Then we’ll proceed to the Switch statement, how it’s used for more structured decisions that only involve evaluated integral (whole number) data, and how to apply it in such situations.
It covers how to make decisions in C programs using the different types of If statements, how to create relational expressions that generate true and false values, the basic If statement, the If-else and If-else If statements, and the Switch statement for structured decisions involving integral (whole number) data.
The course teaches the three If statement types for making decisions from relational expressions, while the Switch statement is used for more structured decisions that only involve evaluated integral (whole number) data; you will learn to differentiate between them and when to use each.
The course builds skills in C (Programming Language), C Data Types, C-Based Programming Languages, Interactive C, Modular Programming in C, and Operators in C and C++.
The lessons cover The Numeric Data Types, the Char Data Type and Creating Strings, and How C Handles Boolean Types.
All nontrivial programs need to make decisions, such as a payroll program deciding how much to pay an employee based on hours worked, and making decisions is one of the key constructs of all programming languages and vital for problem-solving within your program.