Professional Documents
Culture Documents
LABORATORY ACTIVITY
LEARNING OUTCOME
MATERIAL/S
ACTIVITIES
General instruction: Solve the following programming problems. Copy and paste
the code/ solutions in MS Word or yellow paper and screenshot the created
program during runtime.
tax= 6%
cost= 500
cost_with_tax= (cost * .06) + cost
cost_with_tax= (500 * .06) + 500
= 30 + 500 = 530
payment= 1000
change= 470
PROGRAM CODES:
import java.io.*;
Page 2 of 3
PART 2: PROGRAMMING
Problem 2.1 Create a java program that will compute and display the sum,
difference, product, and quotient of two numbers (user input) using methods.
Problem 2.2 Create a java program that will compute for the salary of an
employee. Apply the concept of methods.
Compute for the gross pay and net pay of the employee for a month.
Note: Underlined words/numbers are the only user inputs.
Process Completed.
Page 3 of 3