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

4 Laboratory Activities

The document contains instructions for 4 programming problems. Students are asked to create Python programs that take in user input, perform calculations, and output specified results. The problems involve calculating tuition fees, payroll, utility bills, and employee wages. Students must provide the code, input/output specifications, and screenshots of their solutions in a single PDF file.

Uploaded by

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

4 Laboratory Activities

The document contains instructions for 4 programming problems. Students are asked to create Python programs that take in user input, perform calculations, and output specified results. The problems involve calculating tuition fees, payroll, utility bills, and employee wages. Students must provide the code, input/output specifications, and screenshots of their solutions in a single PDF file.

Uploaded by

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

LABORATORY ACTIVITIES:

Be sure that you will TRY DOING it INDEPENDENTLY and placed your answer it in ONE PDF FILE
ONLY (program code equivalent and screenshot of your answer).

PROBLEM #1:
CREATE A PYTHON PROGRAM FOR THE GIVEN PROBLEM BELOW:

Input Specifications Output Specifications


Input the following The program should print the following:
STUDENT NAME (ALEXANDER SY) STUDENT NAME (ALEXANDER SY)
STUDENT NUMBER (2023-12357) STUDENT NUMBER (2023-12357)
COURSE (BS INFOR TECH) COURSE (BS INFOR TECH)
YEAR (3RD YEAR) YEAR (3RD YEAR)
TOTAL NUMBER OF TUITION FEE (10,132.29)
LECTURE UNITS ENROLLED (18) BALANCE (7, 632.29)
TOTAL NUMBER OF
LABORATORY UNITS ENROLLED (6)
RATE PER UNIT (375.27)
DOWN PAYMENT (2,500.00)

Processing Specifications
Compute for the following:
BALANCE = TUITION FEE – DOWN PAYMENT
TUITION FEE = LECTURE FEE + LABORATORY FEE
LABORATORY FEE = TOTAL NUMBER OF LABORATORY UNITS ENROLLED X
LABORATORY RATE
LECTURE FEE = TOTAL NUMBER OF LECTURE UNITS ENROLLED X RATE PER UNIT
LABORATORY RATE = 1.5% OF THE RATE PER UNIT

SOLUTION #1 SCREENSHOT #1:


PROBLEM #2:
Create a PYTHON program on the given problem below:
Input Specs: Output Specs:
Service Crew Name (ANDREI) Output: Service Crew Name (ANDREI)
No. of Hours Worked (80) Under Time Pay (1,125.00)
Extra Service Hours (OT) (30) Over Time Pay (67.50)
No. of Hours Late (UT) (15) Extra Income (Tip) (1,800)
Rate per Hour (75.00) Gross Pay (6,067.50)
Food Deduction (475.50) Deduction (2,692.65)
Extra Income (Tip) (1,800) Net Pay (5,174.85)

Computation:
Overtime Rate = additional 3% of regular rate per hour
Tax = 10% of Gross Pay
Deduction = Under Time Pay + Insurance + Tax + SSS + Food Deduction
SSS = 5% of Gross Pay
Gross Pay = No. of hours worked x Rate per hour + Overtime Pay
Insurance = 3% of Gross Pay
Under Time Pay = No. of hours late x Rate per hour
Over Time Pay = No. of Extra service hour x Over time rate
Net Pay = Gross Pay – Deduction + Extra Income (Tip)

SOLUTION #2: SCREENSHOT #2:


PROBLEM #3:
Problem: Create a PYTHON program for the given data input, processing specification, and
required information.

INPUT: Consumer Name (ANDREI) OUTPUT: Consumer Name (ANDREI)


Consumer ID (60897-1) Consumer Id (60897-1)
Consumer Category (Residential/Commenrcial) Consumer Category (Residential)
Consumer Address (ROSARIO) Consumer Address (ROSARIO)
Present Reading (1005.32) CMU (23.24)
Previous Reading (982.08) Net Bill (3,502.23314)
Current Amount Rate (23.75) Other Charges (2,950.28314)
Due Date (Every 15th of the Month) Amount Due (551.95)

COMPUTATION:
Net Bill = Amount Due + Other charges
Other Charges Rate = 23% of the Amount Due
Other Charges = CMU x Other Charges Rate
Amount Due = CMU x Current Amount Rate
CMU = Present Reading – Previous Reading

SOLUTION #3:SCREENSHOT #3:


PROBLEM #4:
Create a C PYTHON for the given problem below:

INPUT Specifications:
Employee Name (ROSE ANN GONZALES)
Employee Number (2017- 1- 004537)
Employee Department (ADMINISTRATION)
Number of days present (consider 8hrs/day working hours) (13 DAYS)
Number of days absent (consider working hours) (3.5 DAYS)
Rate per hour (76.80)
Extra Income (number of hours worked) (40 HRS)

PROCESSING SPECS:
Amount paid = Total amount – Premiums + Extra Income Pay
Total amount = Total regular wage – Absences deductions
Extra Income Pay= Extra Income x Rate per hour
Premiums = SSS premium is 15% of the total amount + Medicare premium is 10% of the total
amount + tax is 25% of the total amount
Absences Deductions = Rate per hour x Number of days absent
Total Regular Wage = Rate per hour x Number of days present

OUTPUT Specifications:
Employee Name (ROSE ANN GONZALES)
Employee Number (2017- 1- 004537)
Employee Department (ADMINISTRATION)
Total Regular Wage (7987.2)
Premiums (2918.4)
Absences Deductions (2150.4)
Amount Paid (5990.4)

SOLUTION #4:SCREENSHOT #4:

You might also like