0% found this document useful (0 votes)
7 views12 pages

MICROCONTROLLER

The document outlines the objectives of understanding coding, including its challenges and simplification methods, emphasizing the importance of pseudo-coding and process flow diagrams. It explains that coding involves giving step-by-step instructions to computers and introduces pseudocode as a human-readable format for programming logic. Additionally, it discusses flowcharting as a graphical representation of problem-solving processes and provides sample problems for creating flowcharts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views12 pages

MICROCONTROLLER

The document outlines the objectives of understanding coding, including its challenges and simplification methods, emphasizing the importance of pseudo-coding and process flow diagrams. It explains that coding involves giving step-by-step instructions to computers and introduces pseudocode as a human-readable format for programming logic. Additionally, it discusses flowcharting as a graphical representation of problem-solving processes and provides sample problems for creating flowcharts.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 12

MICROCONTROLLER

PROCESS FLOW DIAGRAM


Objectives
To determine challenges in coding
To simplify the idea of coding
To learn methods to easily give instructions to
the computer
To appreciate pseudo-coding and the use of
process flow diagrams
Is coding hard?
• Computers are dumb that’s why we “code” the
instructions to them like giving instructions to a 3
year old kid.
• Coding is giving the step-by-step instruction to
the computer, so give the instruction up to the
smallest/easiest instruction.
• Computer language tells you what command to
use so the computer will interpret as an
instruction. Use google as your translator from
human language to computer language.
PSEUDO CODING
Pseudocode is an informal high-level description of
the operating principle of a computer program or
other algorithm. It uses the structural conventions of
a normal programming language, but is intended for
human reading rather than machine reading.

Pseudocode is not an actual programming language.


So it cannot be compiled into an executable
program. It uses short terms or simple English
language syntaxes to write code for programs
before it is actually converted into a specific
programming language

https://economictimes.indiatimes.com/definition/pseudocode
FORMAL / PROFESSIONAL PSEUDO CODING
SIMPLE PSEUDO CODING
Input variables and setup

Setup use of Serial Monitor

welcome message
input message
binary translation

If input is 1 turn on LED pattern 1

LED pattern 1
LEDs will turn on one by one from LED1-LED8

If input zero
LED pattern lahat LOW/OFF
PROCESS FLOW DIAGRAM / FLOW CHART
Flow charting is one of the processes used
in designing or planning the solution to a
problem. It is a graphical representation to
the solution of a problem. It uses shapes to
show instructions and arrow lines and heads
to display the flow.
IMAGE EXAMPLE OF FLOW CHART
Use of Decision Symbol
One of the symbols used in flowchart is the decision or the diamond symbol. This
symbol requires logical test that could be determined by using conditional statements
or characters. Through logical test, this symbol provides two answers, if the value
evaluated by the decision symbol produces a “true” result or if it did not meet the
value on the conditional statement it renders a “false” value.
SAMPLE PROBLEM
Draw a flowchart
Requirement of the Problem Number 1
1. Ask the user to enter 2 integers
2. Process it with sum
3. Display result
Requirement of the Problem Number 2
1. Ask the user to input three quiz scores
2. Get the average of the three quizzes
3. Display result
Requirement of the Problem Number 3
1. Ask the user to enter the password
2. Display “Access Granted” if the password is equal to
“Computer”, on the false side display “Access Denied”

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy