SLC S21 Week3 || Mastering Records and Record Arrays with Python

josepha -

Exercise 1: Advanced Employee Records Management (2points)

Here I have implemented an advanced employee records management system using Python data class as requested by the professor. The program supports the following; adding, updating, and displaying employee information, and also supports the calculation of the average performance scores and identifying top performers which you can see below.

Code

Output

Interpretation

In the program, the top performers are;


Exercise 2: Comprehensive Student Grades Analysis (2points)

Here I have shared a program that uses NumPy structured arrays to store and analyze student grades as requested by the professor. The program also has functions that calculate averages, identify top students, analyze subject-wise performance, etc which you can see below.

Code:



Output

Interpretation


Exercise 3: Enhanced Inventory Management System (2points)

Here I have implemented an enhanced inventory management system using named tuple which is a Python program to track products. In the program, there are functions to add products, update quantities, generate low stock alerts, etc which you can see below.

Code

Output

The program especially the code provided us with a comprehensive inventory management system that can be further expanded with additional functionalities like product removal or tracking product suppliers.


Exercise 4: Advanced Customer Orders Processing (2points)

Here I have created a program that uses NumPy structured arrays to process customer orders as requested by the professor. This program includes several functions for calculating order totals, identifying large orders, analyzing customer spending, and as well finding frequently ordered products as seen below.

Interpretation

The Order structured Array: We can define a structured Array order"type, with a field for order_id, customer_name, product,quantity,order date, andprice_per_unit`.


Exercise 5: In-Depth Weather Data Analysis (2points)

Here I have implemented an in-depth weather data analysis using dataclass and NumPy. The program includes functionalities for calculating averages, identifying trends, and detecting anomalies in weather data which you can see below.

Interpretation

I am inviting; @dove11, @simonmwigwe, and @ruthjoe

Cc:-
@kouba01