Question: ou will need to submit a Python program for each scenario ( scenario _ 1 . py , scenario _ 2 . py , etc.
ou will need to submit a Python program for each scenario scenariopy scenariopy etc.
Your program should:
Connect to the MySQL database using mysqlconnectorpython.
Execute SQL queries using the cursor.execute method.
Fetch and process the results eg storing them in variables or lists
Provide recommendations based on the data retrieved from the database.
Scenario : Budget Optimization in School Districts
Problem Statement:
A school district is struggling with budget constraints and wants to ensure that it is allocating
salaries effectively without compromising the quality of education.
Tasks:
Analyze salary distribution: Identify districts with the highest and lowest average teacher
salaries.
Experience vs Salary: Investigate whether there is a relationship between teacher salaries
and years of experience across different districts No regression models just exploratory
data analysis using SQL commands
Hint: SQL Command: Use AVG GROUP BY and ORDER BY to group data by experience
and calculate average salaries.
Recommendations: Based on your analysis, provide recommendations for salary
adjustments that can help the district manage its budget more effectively.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
