Model Exam QP- Python S10
Model Exam QP- Python S10
Qn.
Question Description
No. CO K PI
1 Library Management System - A library tracks the books issued to its
users. Each book’s details are stored in a nested list. The library calculates
the late fee based on the following criteria:
Each day a book is overdue, a fee of $1 is charged.
Books returned on time incur no late fee.
A grace period of 3 days is provided before charging the late fee.
If the book is returned after the grace period, an additional late fee
of $2 per day will be applied for each day beyond 10 days late.
a. Draw a flowchart for calculating the late fee based on the number CO1 1.4.1
of overdue days for books. 2.1.3
b. Develop a program to manage the library system. For each book, CO2 1.3.1
the program should read book_id, book_name, issued_date, 1.4.1
return_date, and calculate the late fee, considering the grace period K3 2.1.2
and additional late charges if applicable.
2.1.3
2.4.1
c. Develop user-defined functions for the following: CO3 2.4.1
Store the book details (including the late fee) in a nested list 3.2.2
Add a new book record to the nested list 3.4.2
Search for a book by its ID and return the book details, including
3.4.3
late fee calculation
Display all overdue books, calculate the total late fee for each, and
4.1.2
display them 4.2.1
d. Write the names of overdue books to a text file, including the total CO4 4.1.2
late fee for each book. Also, count the total number of books that have 5.2.2
no late fee.
COURSE OUTCOMES
1. CO1: Solve programming problems and express design solutions in pseudo code. (K3)
2. CO2: Apply sequential, alternate, and iterative approaches for solving problems. (K3)
3. CO3: Solve complex problems by using functions, strings, lists, tuples and dictionaries.
(K3)
4. CO4: Apply files and exception handling concepts for handling large data. (K3)
SRI SIVASUBRAMANIYA NADAR COLLEGE OF ENGINEERING
(An Autonomous Institution, Affiliated to Anna University, Chennai)
Kalavakkam-603 110
Qn.
Question Description
No. CO K PI
1 Employee Attendance System – A company tracks the attendance of its K3
employees. Each employee’s details are stored in a nested list. The
attendance score is calculated based on:
Present: 1 point per day
Absent: 0 points
Late: 0.5 points per day
Half-day attendance: 0.75 points
The program also calculates the monthly attendance percentage:
If the percentage is ≥ 90%, an "Excellent" rating is assigned.
If the percentage is 75–89%, a "Good" rating is assigned.
If the percentage is < 75%, a "Needs Improvement" rating is
assigned.
a. Draw a flowchart for calculating the attendance score of employees CO1 1.4.1
based on daily attendance data. 2.1.3
b. Develop a program to manage the attendance of N employees. For CO2 1.3.1
each employee, the program should read employee_id, 1.4.1
employee_name, and their daily attendance data (Present, Absent, 2.1.2
Late, Half-day) for each day of the month and calculate the attendance 2.1.3
score. The program should also compute the monthly attendance 2.4.1
percentage and assign a rating.
c. Develop user-defined functions for the following: CO3 2.4.1
Store the employee details (including the monthly score and 3.2.2
rating) in a nested list 3.4.2
Add a new employee record to the nested list
3.4.3
Search for an employee by ID and return the attendance details,
including rating 4.1.2
Display employees with "Excellent" ratings 4.2.1
d. Write the names of employees with "Needs Improvement" ratings CO4 4.1.2
to a text file and count the total number of employees with "Good" 5.2.2
ratings.
COURSE OUTCOMES
1. CO1: Solve programming problems and express design solutions in pseudo code. (K3)
2. CO2: Apply sequential, alternate, and iterative approaches for solving problems. (K3)
3. CO3: Solve complex problems by using functions, strings, lists, tuples and dictionaries.
(K3)
4. CO4: Apply files and exception handling concepts for handling large data. (K3)
Qn.
Question Description
No. CO K PI
1 Gym Membership System - A gym tracks the memberships of its clients. K3
Each membership’s details are stored in a nested list. The membership
status is tracked as:
Active
Expired
The gym also offers a premium membership, which includes access to
special classes and gym equipment:
Premium members pay an additional $20 per month.
Members who have been inactive for more than 3 months are
upgraded to "Inactive" status.
The program calculates the total membership fee for each client based on:
Regular membership: $30/month
Premium membership: $50/month
Inactive status: No access to gym services, but they still pay the
regular fee
a. Draw a flowchart for calculating the membership status based on CO1 1.4.1
the renewal status. 2.1.3
b. Develop a program to manage the gym memberships of N clients. CO2 1.3.1
For each client, the program should read member_id, member_name, 1.4.1
membership_type, last_activity_date, and renewal_status, and 2.1.2
calculate the total fee. 2.1.3
2.4.1
c. Develop user-defined functions for the following: CO3 2.4.1
Store the membership details (including the total fee) in a nested 3.2.2
list 3.4.2
Add a new membership record to the nested list
3.4.3
Search for a client by ID and return their membership details
Display all clients with inactive status and calculate the total fees
4.1.2
for those clients 4.2.1
d. Write the names of clients with "Premium" membership to a text CO4 4.1.2
file and count the total number of "Inactive" memberships. 5.2.2
COURSE OUTCOMES
1. CO1: Solve programming problems and express design solutions in pseudo code. (K3)
2. CO2: Apply sequential, alternate, and iterative approaches for solving problems. (K3)
3. CO3: Solve complex problems by using functions, strings, lists, tuples and dictionaries.
(K3)
4. CO4: Apply files and exception handling concepts for handling large data. (K3)
Qn.
Question Description (DT)
No. CO K PI
1 Hotel Room Reservation System - A hotel tracks reservations for its
rooms. Each room’s details are stored in a nested list. The program
calculates the total earnings and manages the room status based on the
following criteria:
Room rates vary by type:
1. Standard: $100/night
2. Deluxe: $200/night
3. Suite: $300/night
If a reservation is cancelled less than 24 hours before check-in, a
cancellation fee of 50% is applied.
If a customer books a room for more than 5 nights, a discount of
10% is applied.
a. Draw a flowchart for calculating the reservation status and available CO1 1.4.1
rooms. 2.1.3
b. Develop a program to manage reservations for N rooms. For each CO2 K3 1.3.1
room, the program should read room_id, room_type, booked_nights, 1.4.1
check_in_date, cancellation_status, and calculate the total revenue for 2.1.2
each booking. Update the room's availability status accordingly. 2.1.3
2.4.1
c. Develop user-defined functions for the following: CO3 2.4.1
Store the room details (including revenue and status) in a nested 3.2.2
list. 3.4.2
Add a new reservation record to the nested list.
3.4.3
Search for a room by ID and return its booking and revenue
details. 4.1.2
Display all available rooms with their room type and rates. 4.2.1
d. Write the details of canceled reservations (with revenue impact) to CO4 4.1.2
a text file and count the total number of long-term bookings (more 5.2.2
than 5 nights).
COURSE OUTCOMES
1. CO1: Solve programming problems and express design solutions in pseudo code. (K3)
2. CO2: Apply sequential, alternate, and iterative approaches for solving problems. (K3)
3. CO3: Solve complex problems by using functions, strings, lists, tuples and dictionaries.
(K3)
4. CO4: Apply files and exception handling concepts for handling large data. (K3)