Please enable JavaScript.
Coggle requires JavaScript to display documents.
Programming for Scientific Applications (C++) - Coggle Diagram
Programming for Scientific Applications
(C++)
Conditional Statement
if
Only control 1 statement at a time
compound statement
if-else
Only control 1 statement at a time
compound statement
while
Replace original
REPEATING
statement
Example
Replace with >>>
SDLC
Process
3.Design
2.Pseudocode
1.Output Apprearance
2.Analysis
4.Implementation
1.User-Requirement Specifications
5.Test +Verfiy
6.Documentation
Examples
Gross Salary Calculation
Quadratic Equation
Water Bill Calculation
Operators
Arithmetic
Binary
Involve 2 operands
Unary
Involve 1 operand
Example :++a, a++, --a, a--
Shorthand
+=, -=, *= , /=, %=
Logical / Boolean
|| or; && and; ! not
Conditional
Statement 1 : PASSED; Statement 2: FAILED
Manipulators
include <iosmanip>
setiosflags()
ios::fixed
ios::scientific
ios::right
ios::showpoint
ios::left
ios::showpos
resetiosflags()
setfill()
setprecision()
setw()
Naming variable rules
Begin with letter
OR
"_"
NO SPACE
NO reserved word eg sqrt
can consist with letter, digits and "_"