0% found this document useful (0 votes)
4 views1 page

Lab Evaluation II: Problem Solving CSE

The document outlines a lab evaluation for I B.Tech. CSE students at Amrita School of Computing, focusing on computational problem-solving. It includes tasks related to managing employee data using tuples and handling student course enrollments using sets, with specific functions to be implemented for each task. The evaluation is scheduled for December 1, 2023, and is worth a total of 20 marks.

Uploaded by

vamsidhar9191
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)
4 views1 page

Lab Evaluation II: Problem Solving CSE

The document outlines a lab evaluation for I B.Tech. CSE students at Amrita School of Computing, focusing on computational problem-solving. It includes tasks related to managing employee data using tuples and handling student course enrollments using sets, with specific functions to be implemented for each task. The evaluation is scheduled for December 1, 2023, and is worth a total of 20 marks.

Uploaded by

vamsidhar9191
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

Set - 1

Amrita School of Computing


Department of Computer Science and Engineering
I [Link]. CSE (2023-27) – Section ‘F’
23CSE006 Computational Problem Solving
Lab Evaluation - II
Date: 01 – Dec – 2023, Friday Time: 02:20 pm to 03:35 pm (1 hr. & 15 min.)
Total Marks: 20
CO# Course Outcomes
CO01 Apply algorithmic thinking to understand, define and solve problems.

CO02 Design and implement algorithm(s) for a given problem.


CO03 Apply the basic programming constructs for developing solutions and programs.
Analyze an algorithm by tracing its computational states, identifying bugs and
CO04
correcting them.

1. You are tasked with creating a program to manage employee data. Each employee's
information is represented using a tuple, where the elements are (employee_id, name,
position, salary). (10 marks) [CO3][BTL3]
i. Create a list called employees to store the employee information. (2 marks)
ii. Write a function called add_employee that takes parameters for employee information
(id, name, position, salary) and adds a new tuple to the employees list. (3 marks)
iii. Write a function called find_highest_paid that finds and prints the details of the
employee with the highest salary. (3 marks)
iv. Write a function called display_employees that prints out the details of each employee.
(2 marks)

2. You are working with a dataset of students and their course enrollments. Each student is
represented by a unique student ID, and their course enrollments are stored in sets. (10 marks)
[CO3][BTL3]
i. Initialize sets for the course enrollments of three students: (2 marks)
• Student 1 (ID: 101) is enrolled in courses A, B, and C.
• Student 2 (ID: 102) is enrolled in courses B, C, and D.
• Student 3 (ID: 103) is enrolled in courses C, D, and E.
ii. Write a function called find_common_courses that takes two sets of course enrollments
and returns a set containing the common courses. (2 marks)
iii. Write a function called find_unique_courses that takes two sets of course enrollments
and returns a set containing the courses that are unique to each student. (3 marks)
iv. Write a function called find_all_courses that takes all three sets of course enrollments
and returns a set containing all unique courses across all students. (3 marks)

You might also like