Question: Q1:Write a Python class Employee with attributes like emp_id, emp_name, emp salary, and emp_department and methods like calculate_emp_salary, emp_assign_department, and print employee_details. (30 pts) Sample

Q1:Write a Python class Employee with attributes like emp_id, emp_name, emp salary, and emp_department and methods like calculate_emp_salary, emp_assign_department, and print employee_details. (30 pts)

Sample Employee Data:

"ADAMS", "E7876", 50000, "ACCOUNTING" "JONES", "E7499", 45000, "RESEARCH"

"MARTIN", "E7900", 50000, "SALES" "SMITH", "E7698", 55000, "OPERATIONS"

This department method to change the department of an empl ent employee details method to print the details of an employee Use Valculate emp salary method takes two arguments: salary and honest, which the number of hours worked by the employee. If the number of hours worked i the method computes overtime and adds it to the salary Overtime is calculated a g formula:

overtime-hours worked-50 Overtime amount- (overtime (salary/50))?

Q2: Write a Python program to create an array of six integers (40 pts)

a) Print all members of the array

b) Remove the first occurrence of a specified element from an array c) Search an element in array

d) Remove an element at the specified position of the array e) Update an element in array

Use a method that returns the position at the first occurrence of the specified value?

Q3: Write a Python program to sort the items of a list in ascending order. (10 pts)

Q4. Write a Python program to reverse the order of the items in the array (15 pts)

Q5Q1:Write a Python class Employee with attributes like emp_id, emp_name, emp salary,

1. that What will be the output of the following code below: (15 pts) Python Code: [1] class Student: pass class Marks: pass student 1 = Student () marks1 = Marks () print (isinstance (studenti, student)) print (isinstance (marks1, student)) print (isinstance (marks1, Marks)) print (isinstance (student1, Marks)) print("Incheck whether the said class print (issubclass(Marks, object))

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!