Lost your password?

Don't have an account ?
Register (It's FREE) ×

CPP All : Multiple-Nested-Ladder of If Else
Concept Learning Code Sheets

If Else If – Simple If Ladder #1914

Simple if-else-if in a ladder style comparison

If Else If – Age of Friend problem bettered #1917

Simple if-else-if in a ladder style comparison to resolve age of friends problem which was not able to compare two friends with equal age.

Volume purchase discount – multiple levels #1922

Calculating volume discounts on purchase quantity volumes based on multiple levels of quantity slabs.

Marks Based Division #1924

Finding division of a student based on marks using if-else-if ladder

Electricity Bill – if-else-if – successive slab-wise rates #1929

Classic case of successive slab wise rates calculation for electricity bill generation solved using if-else-if and slab rate formulas.

Check character entry as digit, uppercase, lowercase, special #1931

Finding if the character entered by the user is a digit, upper case alphabet, lower case alphabet or other special character using if-else-if ladder.

Age and gender discount – Nested if condition #1937

Solving for more than one if conditions using nested if for conditions on age and gender of person

Territory-wise volume based sales commission – nested if #1945

Finding the volume based sales commissions based on multiple territories using the nesting of if conditions

Multiple if conditions #1947

Using multiple if conditions which are often redundant in nature.

Body temperature diagnosis and diversion – Multiple if and if ladder #1950

Handling of patients diversion to doctors based on there body temperatures using multiple if and if ladder.

Userid and password verification – nested if #1953

Learning to verrify user id and password using nested if selection

Userid, password match with dangling else issue #1959

Userid and password matching with nested if and the dangling else issues.

Dangling else Problem in Leap Year Calculation #2284

Understanding dangling else problem in a typical leap year calculation situation.

Solved Problems

Leap year finding #2008

Write a c++ program to take the value of a four digit year from the user and

Write a c++ program to take the value of a four digit year from the user and then print whether the given year is a leap year or not.

Largest of three numbers using if else ladder #2946

Write a c++ program to find the largest of three numbers using the if-else se

Write a c++ program to find the largest of three numbers using the if-else selection ladder. Please do report with an appropriate message if two large numbers or all numbers are same.

Code Sheets:13  Solved Problems:2 
Introductory Sessions Beginning to Program Tokens Keyword and Identifiers Data Types Variables and Constants Operators Simple User Input Building Expressions and Formulas Simple Real World Problems Simple If and If Else Multiple-Nested-Ladder of If Else Switch case selection Simple Loops Tricks in Loops - break continue scope Loop Applications - Handling numerals Series printing loops Nested Loops Pattern printing loops Number Varieties and Crunches String Handling (Null Terminated) Strings - string class type Functions (Built-in) Functions - user defined Functions Reference Passing/Returning Arrays Concepts and 1-D Arrays Array Data Management Two dimensional arrays and Matrices Structures Basics Structures passing/returning 2D Array Memory Addressing Display Using IO Manipulation Display Using C Formatting Tricks User Defined Data Types Enumerated Types Preprocessor Directives And Macros Exception Handling Programming Paradigms and OOPs Advantages Abstraction and Encapsulation Polymorphism Inheritance Function Overloading Concepts Function Overloading Varieties Function Overloading Special Cases Defining Classes Creating and Using Class Objects Class Members Accessibility Class Function Types Inline Functions Constant Functions Nesting of Functions Class Members Scope Resolution Static Members in a Class Array of Objects Constructor Concepts Default Constructor Parameterized Constructor Copy Constructor Constructor Overloading Destructors Inheritance Fundamentals Public Derivations Private and Protected Derivations Multiple Inheritance Multi-Level Inheritance Class Nesting Data File Concepts Handling Text Files Handling Binary Files Pointer Concepts Pointer and Arrays Pointers and Functions Object Pointers This Pointer Linked Lists Stacks Queues