0% found this document useful (0 votes)
7 views2 pages

Tutorial Questions

Uploaded by

dq2hnq6gck
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Tutorial Questions

Uploaded by

dq2hnq6gck
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

TUTORIAL QUESTIONS

1. Sales Commission Calculation: Write a function that takes a sales


amount as input and calculates the commission based on the following
tiers:

- 0-10,000: 5%

- 10,001-50,000: 10%

- Above 50,000: 15%

Print the commission amount.

2. Temperature Converter: Implement a program that converts


temperatures from Celsius to Fahrenheit and vice versa. The user should
input the temperature and specify the conversion type.

3. Inventory Management: Create a function that takes a list of item


quantities in a store. If any item has a quantity less than 5, print a warning
message to reorder that item.

4. Expense Tracker: Write a function that takes a list of monthly expenses


and calculates the total and average expenditure.

5. Scientific Data Averaging: Given a list of sensor readings taken over a


week, calculate the weekly average and identify the highest and lowest
readings.

6. Sales Performance Analysis: Given a list of monthly sales figures,


determine the month with the highest sales and the month with the
lowest sales.

7. Employee Records: Create a program that reads employee records from


a CSV file and outputs the total number of employees and their average
salary.
8. Weather Data Logger: Implement a script that logs daily temperature
readings to a text file and later reads from the file to calculate the average
temperature over a specified period.

9. Customer Feedback Analysis: Write a function that reads customer


feedback from a text file and counts the number of positive and negative
comments based on specific keywords.

10. Loan Calculator: Write a function to calculate monthly loan payments


based on the principal amount, annual interest rate, and loan term (in
years). Use the formula for calculating monthly payments.

11. Production Efficiency: Create a function that takes the number of


products produced and the number of defects found. Calculate and return
the defect rate as a percentage.

12. Health Monitoring: Define a function that takes a list of daily step
counts and determines if the average number of steps per day meets a
target goal (e.g., 10,000 steps/day).

13. Profit Margin Calculation: Implement a function that calculates the


profit margin given the revenue and cost of goods sold. Return the profit
margin as a percentage.

14. Employee Performance Rating: Write a function that takes employee


performance scores and calculates their average rating. If the average
rating is below a certain threshold, return a message recommending
additional training.

15. Project Timeline: Create a function that takes the start and end dates
of a project and calculates the total number of working days between
them, excluding weekends and holidays.

You might also like