Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Laboratory Activity #1

Subject Code: FPROGLAB

Subject Description: Fundamentals of Programming 1

Name: Aplasca, John kert

Course: BSCS-1

Instruction. Write an algorithm and flowchart for the following given problems.

1. Read two numbers, compute the sum, difference, product, quotient and modulus of these

values then display the result.

STEP 1: START

STEP 2: Input (num1, num2)

STEP 3: Compute the Sum(num1+num2), Difference (num1-num2), Product(num1*num2)


Qoutient(num1/num2), modulus(num1%num2)

STEP 4: Display the sum, difference, product, quotient and modulus

STEP 5: END

START

Input
(Num1,
Num2)

Compute:

Sum(num1+num2)
Display:
Product(num1*num2)
(Sum, Difference,
Difference(num1-num2) END
Product, Qoutient,
Quotient(num1/num2) Modulus)

Modulus(num1%num2)
2. Enter two integers then determine if the input number is positive or negative. Display the

results.

STEP 1: START

STEP 2: Input Num1, Num2

STEP 3: Determine the Num1, Num2

STEP 4: Display the Result

STEP 5: END
START

Input (N)

Print “N is TRUE N>0 Print “N is


FALSE N<0 FALSE
Positive” Negative”

T
R
U
E

Print “N if is
END Equal to 0”

You might also like