Skip to Main Content
Introduction to Computational Modeling Using C and Open-Source Tools
book

Introduction to Computational Modeling Using C and Open-Source Tools

by Jose M. Garrido
November 2013
Intermediate to advanced content levelIntermediate to advanced
461 pages
12h 1m
English
CRC Press
Content preview from Introduction to Computational Modeling Using C and Open-Source Tools
Chapter 6
Selection
6.1 Introduction
To completely describe an algorithm four design structures are used: sequence,
selection, repetition, and input/output. This chapter explains the selection structure
and the corresponding statements in pseudo-code and C statements for implementing
computational models.
Conditions are expressions that evaluate to a truth-value (true or false). Condi-
tions are used in the selection statements. Simple conditions are formed with rela-
tional operators for comparing two data items. Compound conditions are formed by
joining two or more simple conditions with logical operators.
The solution to a quadratic equation is discussed ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Computer Fundamentals and Programming in C (RMK)

Computer Fundamentals and Programming in C (RMK)

Anita Goel, Ajay Mittal

Publisher Resources

ISBN: 9781482216783