Professional Documents
Culture Documents
Leejan A. Tugon Bscs 1B 201-2463 Object Oriented Programming Assessment Task 5-1 Problem 1
Leejan A. Tugon Bscs 1B 201-2463 Object Oriented Programming Assessment Task 5-1 Problem 1
Tugon
BSCS 1B
201-2463
MODULE 5
Object Oriented Programming
Problem 1
Illustrated below is a program skeletal form of class UpaSaWork. Fill in the class methods to accept data
needed in tuples format and return the Netpay of the employee wiyh his/her name as part of the final
output.
Answer:
class UpaSaWork:
def __init__(self, empName, dailyRate, bilangNgAraw, bale):
self.empName = empName
self.dailyRate = dailyRate
self.bilangNgAraw = bilangNgAraw
self.bale = bale
def sweldo(self):
pass