Fundamentals of Programming
Fundamentals of Programming
History PSEUDOCODE
Alan Turing
2. Effective Analysis: Flowchart
can help analyze the problem
in more effective way.
3. Proper Documentation: It
serves as a good program
documentation, which is
needed for various purposes.
4. Efficient Coding: It act as a
guide or blueprint during the
systems analysis and program
development phase.
FLOWCHART
5. Proper Debugging: The
flowchart helps in debugging
process.
6. Efficient Program
Maintenance: Maintenance of
operating program becomes
easy. It helps the programmer
to put efforts more efficiently
on that part.
Arithmetic Operators
(+) – Addition
(-) – Subtraction
(*) – Multiplication
(/) – Division
MODULE 5: LOOPING
Repetition Structure
- Permits a sequence of
instructions to be executed Nested Loops – are those loops that
repeatedly until a certain are present inside another loop.
condition is reached.
- Three forms: while, do-while, MODULE 6: STRING MANIPULATION
and for loop String – a sequence of characters
For loop - considered as a stored in a certain address in
predefined loop because the memory. Characters enclosed in
number of times it iterates to perform double quotation marks.
its body is predetermined in the STRING VARIABLE
loop’s definition. It contains a
counter whose values determine the - The value of string depends on
number of times the loop iterates. the user input.
- The value changes throughout
the program.
ToCharArray() – convert string to
array of characters.
LastIndexOf() – “LAST”