MIDTERM Exam - Programming 2 - 2SEM 2020
MIDTERM Exam - Programming 2 - 2SEM 2020
MIDTERM Exam - Programming 2 - 2SEM 2020
Enter your name here: > Daryl Andrada Course and Yr: BSCS 1B Date: May 2, 2020 Score:
TEST I: ONLINE MIDTERM EXAM - PROGRAMMING 2 – 2020 FILENAME: MIDTERM 45 points Typewritten
Problem:
Using Java programming language create the program in an array, number and string entry to generate the output below.
points:
OUTPUT:
No. Emp_Name Emp_Dept Hrs_Worked Hrly_Rate Liv_Allow Basic_Sal G_Pay SSS_Pre Medicare Tax_With Tot_Ded Net_Pay
m
1 Super, Man CCIS 100 150 900
2 Vol, Ta CCIS 200 160 700
3 Iron, Man MIS 150 170 800
Where:
1. Basic Salary = Hours Worked * Hourly Rate;
2. Gross Pay = Basic Salary + Living Allowance;
3. SSS Prem = P 300.00;
4. Medicare = P 150.00;
5. Tax_With = Grosspay * 0.05;
6. Total Deduction = SSS_Prem + Medicare + Tax_With; and
7. Net Pay = Gross Pay – Total Deduction;
TEST III: Sudoku. Write the missing numbers to complete the nos. 1 – 9 in the table below without any duplication in a row, column, and in 3x3 box.
14 points points:
8 3 1 7 9 5 4 6 2
7 9 2 4 6 8 1 3 5
5 4 6 3 2 1 8 7 9
3 2 9 6 1 4 7 5 8
4 1 5 8 3 7 2 9 6
6 8 7 2 5 9 3 4 1
9 6 4 1 8 3 5 2 7
1 5 3 9 7 2 6 8 4
2 7 8 5 4 6 9 1 3