Posted by : Rhyf Ahmad Thursday, May 21, 2015

Making choices will be a fundamental element in all your programs. You need to be able to make decisions such as, "If the user wants to enter more data, then read another value from the keyboard," or, "If the bank balance is large, buy the car with the go-faster stripes, else renew the monthly bus ticket."
Whatever decision you want to make, in programming terms it requires the ability to make comparisons between variables, constants, and the values of expressions and then execute one group of statements or another, depending on the result of a given comparison. Thus, the first step to understanding how you make decisions in a program is to look at how you make comparisons.

Comtents:

Making Decisions
  1. Making Comparisons
  2. The if Statement
  3. Nested if Statements
  4. Comparing Enumeration Values

Logical Operators
The Conditional Operator
The switch Statement
  1. The General Case of the switch Statement

Variable Scope
Loops
  1. Varieties of Loop
  2. Counting Using Floating-Point Values
  3. Nested Loops
  4. The continue Statement
  5. The Labeled continue Statement
  6. Using the break Statement in a Loop

Assertions

  1. More Complex Assertions 




Ebook Preview
Get the ebook now (2.93 MB)

If the link above doesn't work, try the link below


Mirror: Get the ebook now (2.93 MB)

Leave a Reply

You can leave a comment to request any article(s), software(s), ebook(s) or report the dead link.
Then I will reply as soon as I can :)

Subscribe to Posts | Subscribe to Comments

Welcome to My Blog

Recent Post

Recent Posts Widget
Instagram

- Copyright © Madriva -Robotic Notes- Powered by Blogger - Designed by Johanes Djogan -