MAT181 PROGRAMMING FOR SCIENTIFIC APPLICATIONS
Chapter 1: Introduction to C++ Program
Chapter 2: Simple Choices and Repetition
COMPUTER
PROGRAMMING LANGUAGES
Software
Hardware
Assembly
language
High level
language
Machine
language (0 // 1)
TYPES OF ERROR
Syntax
errors
Sematic / Logic error
Run-time error
Precedence of Operators
Arithmetic operators
. Relational operators
Statement Blocks
While Loop
Syntax
Definition
used to repeatedly execute a particular statement or a compound statement
Chapter 3: Problem solving and program design
SDLC
- Design
- Implementation/Coding
- Analysis
- Testing and Verification
- User-requirement specification
- Documentation and Maintenance
Developing algorithm
Designing output appearance
Chapter 4: More control structures and operators
Switch
do-while
break statement
continue statement
for
Go-to statement
used to execute one of many choices or actions depending on the expression value.
:
Another facility provided by C++ to perform repetitive procedure.
click to edit
for (initial_Value; loop_control_condition;increment/decrement_expression)
The do-while loop is a post-test repetitive procedure provided by C++.
The break statement is used to exit the current control statement such
as in while, for, do-while or switch, and execute the next statement after the loop.
Use the continue statement within loops to pass control to the end of the
innermost enclosing brace; and Execute the next expression in the loop.
Chapter 5: Output formatting
include<iomaniap>
Setw
Setiosflags
Setfill
Setprecision