0% found this document useful (0 votes)
42 views4 pages

Seatwork 1

Uploaded by

YuKii
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views4 pages

Seatwork 1

Uploaded by

YuKii
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 4

SEATWORK 1

Directions: Write the pseudo code and draw the flowchart of the following program
specifications.

1. Write a pseudocode and draw a flowchart to compute for the simple interest. Use
variables, PA for Principal Amount, ROI for Rate of Interest, and T for Time.

Simple Interest = Principal Amount x Interest Rate x Time

Pseudocode Flowchart
START
INPUT pa, roi, t
CALCULATE Simple Interest = pa * roi *
t
OUTPUT Simple Interest
END

CCS0003-Computer Programming 1 Page 2 of 7


2. Write an algorithm and draw a flowchart that prints all the numbers divisible by 3
in the numbers from 1 to 30. Clue: mod is used to get the remainder in dividing
two numbers.

Pseudocode Flowchart

START
SET number = 1

CCS0003-Computer Programming 1 Page 3 of 7


WHILE number <=30
IF number mod 3 ≠ 0
PRINT number
END IF
Increment number + 1
END WHILE
END

CCS0003-Computer Programming 1 Page 4 of 7

You might also like