Lesson 6: Simple if structure

[spoiler title=”Lesson Video”] Direct Download of Video (For mobile / offline viewing)(right click > save target as) [/spoiler] [spoiler title=”Lesson Source Code”] #include #include using namespace std; int main(){ // == Double equals sign -- boolean comparison operator // boolean = type of variable that can only hold true or false // || or, &&... » read more

Lesson 7: Nested If Statements

[spoiler title=”Lesson Video”] Direct Download of Video (For mobile / offline viewing)(right click > save target as) [/spoiler] [spoiler title=”Lesson Source Code”] #include using namespace std; int main(){ //9>8 == true == 1, 1>7 ==false //nested if's //if inside of an if //Homework: If the salesperson made less than 4000 in a month, they do... » read more

C++ Tutorial #6 — Nested if statements

Homework: C++ Homework 3: Using if statements to control program flow Topics Discussed: If statements, using bool(ean) operators as custom if-conditionals. #include using namespace std; int main() { double accountBalance = 5000.0, withdrawAmount = 0; cout > withdrawAmount; if (withdrawAmount > accountBalance) { cout 1000) { cout