SRI SIVASUBRAMANIYA NADAR COLLEGE OF ENGINEERING
(An Autonomous Institution, Affiliated to Anna University, Chennai)
Kalavakkam-603 110
B. E/B. TECH DEGREE EXAMINATIONS, DECEMBER 2024
Regulations - 2024
First Semester
UGE3188 – Problem Solving And Programming Using Python
Model Practical Examination
Batch: 2024-2028 (S08) Academic Year: 2024-2028 (ODD) Date: 10-12-23 (FN)
Time: 3 Hours SET-1 Max. Marks: 100
Design Source Code & Output (80) Best
(Alg/FC/ Total
b c d Practices
Pseudo)
Max.
15 20 20 20 20 5 100
Marks
Marks
scored
Qn.
Question Description
No. CO K PI
1 E-commerce Product Review System - An e-commerce platform tracks
user reviews for its products. Each product’s details are stored in a nested
list. Reviews are rated on a scale of 1 to 5 stars. The program calculates
the following:
Average rating: Total stars/Number of reviews.
If the product has more than 100 reviews and an average rating of
4 or higher, it is flagged as a "Top Product".
Products with an average rating below 3 are flagged as "Needs
Improvement".
The program should also track the percentage of reviews that are
5-star reviews.
a. The flowchart computes the average rating of products and CO1 1.4.1
categorizes them based on their performance. 2.1.3
b. Develop a program to manage the reviews of N products. For each CO2 1.3.1
product, the program should read product_id, product_name, K3 1.4.1
category, total_reviews, total_stars, and calculate the average 2.1.2
rating and percentage of 5-star reviews. Flag the products as "Top 2.1.3
Product" or "Needs Improvement" as necessary. 2.4.1
c. Develop user-defined functions for the following: CO3 2.4.1
Store the product details (including flags) in a nested list. 3.2.2
Add a new product review record to the nested list. 3.4.2
Search for a product by ID and return its review details and rating.
3.4.3
Display all "Top Products" with their average rating and
percentage of 5-star reviews. 4.1.2
4.2.1
d. Write the names of "Needs Improvement" products to a text file CO4 4.1.2
and count the total number of products with an average rating of 5.2.2
exactly 3.
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
B. E/B. TECH DEGREE EXAMINATIONS, DECEMBER 2024
Regulations - 2024
First Semester
UGE3188 – Problem Solving And Programming Using Python
Model Practical Examination
Batch: 2024-2028 (S08) Academic Year: 2024-2028 (ODD) Date: 10-12-23 (FN)
Time: 3 Hours SET-2 Max. Marks: 100
Design Source Code & Output (80) Best
(Alg/FC/ Total
b c d Practices
Pseudo)
Max.
15 20 20 20 20 5 100
Marks
Marks
scored
Qn.
Question Description
No. CO K PI
1 Online Examination System – An online examination system tracks the K3
performance of students in various tests. Each student’s details are stored
in a nested list. The program calculates the total score and grade based on:
Each correct answer awards 4 points, Each incorrect answer deducts 1
point, Unanswered questions earn 0 points.
Grades are assigned based on the total score:
Grade A: Total Score ≥ 80% of the maximum score.
Grade B: 50–79% of the maximum score.
Grade C: Below 50% of the maximum score.
The system also calculates the test difficulty based on average student
performance:
"Easy": Average ≥ 70% of the maximum score.
"Moderate": Average 50–69% of the maximum score.
"Difficult": Average < 50% of the maximum score.
a. Draw a flowchart for calculating the grade based on the percentage CO1 1.4.1
of correct answers. 2.1.3
b. Develop a program to manage test results for N students. For each CO2 1.3.1
student, the program should read student_id, student_name, 1.4.1
correct_answers, incorrect_answers, unanswered_questions, and 2.1.2
calculate the total score, grade, and test difficulty. 2.1.3
2.4.1
c. Develop user-defined functions for the following: CO3 2.4.1
Store the student exam details in a nested list 3.2.2
Add a new student record to the nested list 3.4.2
Search for a student by ID and return the exam details
3.4.3
Display all students with Grade A
4.1.2
4.2.1
d. Write the names of students with Grade B to a text file and count CO4 4.1.2
the total number of students with Grade C, then display the class 5.2.2
average.
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
B. E/B. TECH DEGREE EXAMINATIONS, DECEMBER 2024
Regulations - 2024
First Semester
UGE3188 – Problem Solving And Programming Using Python
Model Practical Examination
Batch: 2024-2028 (S08) Academic Year: 2024-2028 (ODD) Date: 10-12-23 (AN)
Time: 3 Hours SET-1 Max. Marks: 100
Design Source Code & Output (80) Best
(Alg/FC/ Total
b c d Practices
Pseudo)
Max.
15 20 20 20 20 5 100
Marks
Marks
scored
Qn.
Question Description
No. CO K PI
1 Customer Order Tracking System - A store tracks the orders of its K3
customers. Each order’s details are stored in a nested list. The store
calculates the order total based on:
Quantity * Price = Order Total
If an order is above $100, a discount of 10% is applied.
If the customer is a VIP, an additional 5% discount is applied on
the total.
The program should also calculate the shipping cost based on:
Orders with a total value under $50: Shipping = $5
Orders with a total value between $50 and $100: Shipping = $2
Orders with a total value above $100: Free shipping
a. Draw a flowchart for calculating the total order value and tracking CO1 1.4.1
the order status. 2.1.3
b. Develop a program to manage the orders for N customers. For each CO2 1.3.1
order, the program should read order_id, customer_id, product_name, 1.4.1
quantity, price, order_status, and VIP status, calculate the order total 2.1.2
after applying discounts, and determine the shipping cost. 2.1.3
2.4.1
c. Develop user-defined functions for the following: CO3 2.4.1
Store the order details (including the final total and shipping cost) 3.2.2
in a nested list 3.4.2
Add a new order record to the nested list
3.4.3
Search for an order by ID and return the order details, including
the final total and shipping 4.1.2
Display all VIP orders with a total above $100 4.2.1
d. Write the names of customers who have spent over $200 to a text CO4 4.1.2
file and count the number of customers who qualify for free shipping. 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)
SRI SIVASUBRAMANIYA NADAR COLLEGE OF ENGINEERING
(An Autonomous Institution, Affiliated to Anna University, Chennai)
Kalavakkam-603 110
B. E/B. TECH DEGREE EXAMINATIONS, DECEMBER 2024
Regulations - 2024
First Semester
UGE3188 – Problem Solving And Programming Using Python
Model Practical Examination
Batch: 2024-2028 (S08) Academic Year: 2024-2028 (ODD) Date: 10-12-23 (AN)
Time: 3 Hours SET-2 Max. Marks: 100
Design Source Code & Output Best
(Alg/FC/ Total
b c d Practices
Pseudo)
Max.
15 20 20 20 20 5 100
Marks
Marks
scored
Qn.
Question Description (DT)
No. CO K PI
1 Inventory Management System - A warehouse tracks its inventory. Each K3
product’s details are stored in a nested list. The stock levels are tracked as:
Quantity in stock
Products are categorized by their types, and low-stock products (less than
10 units) are flagged. The system should also track product sales:
Sales above $500 trigger a 5% discount on the next batch of
products.
The program should calculate the inventory value based on:
Quantity * Price per unit = Inventory Value
If the total inventory value exceeds $5000, a special discount of
10% is applied to the entire inventory.
a. Draw a flowchart for calculating the total order value and tracking CO1 1.4.1
the order status. 2.1.3
b. Develop a program to manage the inventory of N products. For each CO2 1.3.1
product, the program should read product_id, product_name, 1.4.1
quantity_in_stock, price_per_unit, category, and sales data, and 2.1.2
calculate the inventory value. 2.1.3
2.4.1
c. Develop user-defined functions for the following: CO3 2.4.1
Store the product details (including the calculated inventory value) 3.2.2
in a nested list 3.4.2
Add a new product record to the nested list
3.4.3
Search for a product by ID and return the product details
Display all low-stock products and calculate their total value
4.1.2
4.2.1
d. Write the names of products with a total inventory value above CO4 4.1.2
$5000 to a text file and apply the special discount. 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)