Professional Documents
Culture Documents
Algorithm To Find Area and Perimeter of A Square
Algorithm To Find Area and Perimeter of A Square
SEATWORK #2
PROFESSOR: FREDDIE M. TAMAYAO, MENG-CPE, CISSP
Step 1: Start
Step 3: A = a * a
Step 5: P = 4 * a
Step 8: Stop
Step 1: Start
Step 4: A = W * L
Step 4: P = 2 * (L + W)
Step 6: Stop
3. Algorithm to find simple interest
Step 1: Start
Step 5: SI = (P * R * T/ 100)
Step 7: Stop
Step 1: Start
Step 8: Stop
5. Algorithm to determine if student is qualified for scholarship. A student is qualified if the general
weighted average is greater than 90% and number of units enrolled was 30 units
Step 1: Start
Step 6: Stop
6. Algorithm to find odd numbers from 1 to n where n is a positive integer
Step 1: Start
Step 5: If (O%2 != 0)
Step 6: Print O
Step 7: O++
Step 9: O++