Ivan Webster J.
Razo September 9, 2020
CpE-1
START
Variables num1, 1. Flowchart that used to input
num2, product, two numbers and display the
quotient product and quotient
Input num1
and num2
product = num1 * num2
quotient = num1 / num2
Output var.
product and
quotient
STOP
START
Variables int1, int2, 2. Flowchart that used to enter
int3, sum, diff, three integers and display the
product, quotient sum, difference, product and
quotient.
Input int1,
int2 and int 3
sum = int1 + int2 + int3
diff = int1 - int2 - int3
product = int1 * int2 * int3
quotient = int1 / int2 / int3
Output var. sum,
diff, product and
quotient
STOP
START
Variables num1, 3. Flowchart that used to enter
num2, num3, num4, four numbers and display the
sum and avg sum and average
Input num1,
num2, num3,
and num4
sum = num1 + num2 + num3 + num4
avg = sum / 4
Output var. sum
and avg
STOP
START
Variables num1 and
num2
Input num1
and num2
Output
Is num1 > TRUE “num1 is
num2 ? greater than
num2”
FALSE
Output
“num2 is
greater than
num1”
STOP
START
4. Flowchart that will input five
grades then compute the
Variables gr1, gr2, average and determine
gr3, gr4, gr5 and avg whether the average is
“PASSED” or “FAILED”. If the
average is greater or equal to
60 then display the remarks
Input gr1, gr2, “PASSED”, otherwise
gr3, gr4 and “FAILED”.
gr5
avg = (gr1 + gr2 + gr3 + gr4 + gr5) /4
TRUE
Is avg >= TRUE
Output
60 ?
“PASSED”
FALSE
Output
“FAILED”
STOP
START
5. Flowchart that will input five
item price and compute for
Variables itm1, itm2,
the Total Price. If the total
itm3, itm4, itm5,
price is greater than one
sum, and discntd
thousand pesos then discount
is ten percent of the total
price otherwise five percent
Input itm1, only. Display the discounted
itm2, itm3, total price.
itm4, itm5
sum = itm1 + itm2 + itm3 + itm4 + itm5
TRUE
Is sum > TRUE Output
1000 ? “10 %
Discount”
FALSE
Output discntd = sum * 10 / 100
“5%
Discount”
discntd = sum * 5 / 100
Output
“discntd”
STOP