How kaisermdhashem/python-assignment-module-2 works
This repository contains two independent, command-line Python assignments: a student grade calculator and a simple shopping cart. Each reads user-provided values, applies its own calculations and conditional rules, then prints a formatted result. The scripts are monolithic, so the stages shown are logical sections within each file, not separate modules. The README documents their behavior; no shared runtime components or external services are shown.
Main entry points: student_grade_calculator.py Student inputs · shopping_cart.py Customer and products
Components 9
Grade calculator
- Student inputs
student_grade_calculator.py - Total and average
student_grade_calculator.py - Grade rules
student_grade_calculator.py - Formatted result
student_grade_calculator.py
Shopping cart
- Customer and products
shopping_cart.py - Subtotal
shopping_cart.py - Discount and total
shopping_cart.py - Shopping summary
shopping_cart.py
Other components
- User
Connections 10
- User → Student inputs: enters marks
student_grade_calculator.py - Student inputs → Total and average: calculates
student_grade_calculator.py - Total and average → Grade rules: classifies average
student_grade_calculator.py - Grade rules → Formatted result: formats result
student_grade_calculator.py - Formatted result → User: prints result
student_grade_calculator.py - User → Customer and products: enters products
shopping_cart.py - Customer and products → Subtotal: sums prices
shopping_cart.py - Subtotal → Discount and total: applies discount
shopping_cart.py - Discount and total → Shopping summary: formats summary
shopping_cart.py - Shopping summary → User: prints summary
shopping_cart.py