Professional Documents
Culture Documents
Cs002l-Final-Assessment-Test 2T 21 22
Cs002l-Final-Assessment-Test 2T 21 22
Problem Definition: Create and design a program that will accept employee’s
information such as employee number, employee name, employee status (T-
Tenured / P-Probitionary / C-Contractual), employee position title, basic
salary, year end bonus and year hired.
Program Specifications:
1. Create and design a Menu Option for Employee Information with an
ASCII Art.
2. A Python class/object concept must be apply to perform the following
individual method:
Data Entry. Create the Python Methods to accept employee’s
information.
Salary Entry. Designed a screen message to accept employee’s
salary.
o Gross salary = hours worked multiply (160 hrs) by rate per
hour
o Year End Bonus = Annual Salary * Bonus % (see table below)
o Annual Salary = Gross salary multiply by 12 months
Display Information. Designed the employee’s information pay slip.
Years of
Employee (rate per Employee
Service Year Bonus hour) Status
10% of Annual
1 500.00 to 950.00 C
Salary
20% of Annual
2 to 3 1000.00 to 1500.00 P
Salary
50% of Annual
4 to 10 1950.00 to 2500.00 T
Salary
75% of Annual
11 & above 3000.00 to 5000.00 T
Salary
Problem Definition:
Create and design a Python program that will determine a product,
price, quantity, total amount etc. (i.e. Menu Options)
Demonstrate the concept of Python Program using Sequential,
Selection and Loop Control Statement.
Addition to the Python structure, you may apply the use of Python
Function/Method or Python Module.
Construct the Flowchart to show the program logic sequence.
FINAL OUTPUT >>> At least 3 to 4 sample transaction.
Herewith are the requirements:
i. Store Name
ii. Name of Customer
iii. Address
iv. Contact Number
v. List of Product to offer
vi. Price List
vii. Cash Amount
viii. Total Quantity of Product
ix. Total Amount to be paid.
x. Changed
PLEASE BE GUIDED.
GUIDELINES:
a. Use the official inbox bin during the submission of the MACHINE PROBLEM.
b. However, if there will be unwanted scenario like health and technical issues,
the student must report at once before the deadline of the final project, send a
letter through the respective MS Teams or Email Outlook with parents or
guardian signature .
c. Herewith is the deadline of the Machine Problem: on or before March
5, 2022 until 11:55 PM.
d. Moreover, the main reason for no. 2, if the student failed to comply with the
deadline before the Final Viewing of the 2nd Term Grade on March 10, 2022.
The student and I must agree on the result of his or her grade which is
equivalent to INC or Incomplete.
e. Please do not overlap your solution in one page, make it organize and avoid
ambiguous code.
f. DEMERIT OF 5 POINT FOR LATE SUBMISSION.
g. NO ACCEPTANCE OF FINAL COURSE REQUIREMENT LATER THAN
MARCH 5.2022. FOR STRICT COMPLIANCE.
#FLOWCHART
#PYTHON CODE
current_year = 2022
class Employee:
# constructor
self.employee_no = 0
self.name = ""
self.status = ""
self.position = ""
self.basic_salary = 0
self.year_end_bonus = 0
self.year_hired = 0
def get_data(self):
print("xx-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-xx")
print("xx-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-x-xx")
def calculate_gross_salary(self):
def calculate_annual_salary(self):
self.calculate_gross_salary()
return self.basic_salary * 12
def calculate_year_end_bonus(self):
# case 1
bonus = .1
# case 2
bonus = .2
# case 3
bonus = .5
# case 4
bonus = .75
def display(self):
print("**********************************************")
self.calculate_year_end_bonus()
print("PAY SLIP")
print("###############################################")
print("###############################################")
print("***********************************************")
emp = Employee()
emp.get_data()
emp.display()