Activity in JAVA
Activity in JAVA
18 Dalsol Street, GSIS Village, Barangay Sangandaan, Quezon City, Philippines 1116
Tel. Nos. 8-926-2431 / 8-929-0856
Telefax 8-929-0857
https://www.vmc.edu.ph
Objective:
Instructions:
1. Algorithm Writing: Write step-by-step instructions (pseudocode) for the following problems.
3. Code Tracing: Given a set of pseudocode, determine the output for specific inputs.
Activity Problems:
Write an algorithm and flowchart that asks the user for a number and determines if it is even or odd.
Create a flowchart and algorithm that accepts three subject grades, calculates the average, and determines if
the student passes (≥75) or fails (<75).
Write an algorithm and flowchart to compute the factorial of a given number (e.g., 5! = 5×4×3×2×1).
Develop an algorithm that takes a word as input and prints it in reverse order. Example: Input = "HELLO", Output
= "OLLEH".
Design a process where a user enters a PIN and a withdrawal amount. If the PIN is correct and the amount is
available, dispense cash; otherwise, display an appropriate message.
Expected Output:
Students submit their handwritten pseudocode and flowchart for at least 3 of the problems.