# data[].attributes.headline
Glow without waste: DIY Zero Waste Face Scrub

# data[].attributes.subject
Glow without waste: DIY Zero Waste Face Scrub

# data[].attributes.body
Glow without waste: DIY Zero Waste Face Scrub

# data[].attributes.body
Zero Waste Geometry Challenge

# data[].attributes.body
Zero waste Constitution

# data[].attributes.headline
From Scrap to Snacks: Zero Waste Cooking Challenge

# data[].attributes.subject
From Scrap to Snacks: Zero Waste Cooking Challenge

# data[].attributes.body
From Scrap to Snacks: Zero Waste Cooking Challenge

# data[].attributes.attachment_link.readable_text
import tkinter as tk
from tkinter import messagebox

def calculate_reduction():
    try:
        current_waste = float(entry_current.get())
        planned_reduction = float(entry_reduction.get())

        if planned_reduction > current_waste:
            messagebox.showerror("Input Error", "Planned reduction cannot exceed current waste.")
            return

        yearly_reduction = planned_reduction * 52
        label_result.config(text=f"Total waste reduced in a year: {yearly_reduction:.2f} kg")

    except ValueError:
        messagebox.showerror("Input Error", "Please enter valid numbers.")

# Create the main window
root = tk.Tk()
root.title("Waste Reduction Calculator")

# Create and place widgets
tk.Label(root, text="Current weekly waste (kg):").grid(row=0, column=0, padx=10, pady=5, sticky="e")
entry_current = tk.Entry(root)
entry_current.grid(row=0, column=1, padx=10, pady=5)

tk.Label(root, text="Planned weekly reduction (kg):").grid(row=1, column=0, padx=10, pady=5, sticky="e")
entry_reduction = tk.Entry(root)
entry_reduction.grid(row=1, column=1, padx=10, pady=5)

btn_calculate = tk.Button(root, text="CALCULATE", command=calculate_reduction)
btn_calculate.grid(row=2, column=0, columnspan=2, pady=10)

label_result = tk.Label(root, text="")
label_result.grid(row=3, column=0, columnspan=2, pady=10)

# Start the application
root.mainloop()

# data[].attributes.attachment_link.readable_text
import tkinter as tk

def calculate_reduction():
    try:
        current_waste = float(entry_current.get())
        reduction = float(entry_reduction.get())
        weekly_saving = min(current_waste, reduction)
        yearly_reduction = weekly_saving * 52
        result_label.config(
            text=f"Total waste reduced over a year: {yearly_reduction:.2f} kg"
        )
    except ValueError:
        result_label.config(text="Please enter valid numbers!")

# Create main window
root = tk.Tk()
root.title("Yearly Waste Reduction Calculator")

# Labels and Entry fields
tk.Label(root, text="Current weekly waste (kg):").grid(row=0, column=0, padx=10, pady=5, sticky='e')
entry_current = tk.Entry(root)
entry_current.grid(row=0, column=1, pady=5)

tk.Label(root, text="Planned weekly reduction (kg):").grid(row=1, column=0, padx=10, pady=5, sticky='e')
entry_reduction = tk.Entry(root)
entry_reduction.grid(row=1, column=1, pady=5)

# Calculate button
calc_button = tk.Button(root, text="CALCULATE", command=calculate_reduction)
calc_button.grid(row=2, columnspan=2, pady=10)

# Result display
result_label = tk.Label(root, text="")
result_label.grid(row=3, columnspan=2, pady=10)

# Run the GUI
root.mainloop()

# data[].attributes.body
wear the change t shirts and banners

# data[].attributes.attachment_link.readable_text
import tkinter as tk

def calculate():
    weekly = float(entry_weekly.get())
    reduction = float(entry_reduction.get())
    yearly_reduction = reduction * 52
    result_label.config(text=f"Yearly Reduction: {yearly_reduction} kg")

root = tk.Tk()
root.title("Waste Reduction Calculator")

label1 = tk.Label(root, text="Weekly Waste (kg):")
label1.pack()
entry_weekly = tk.Entry(root)
entry_weekly.pack()

label2 = tk.Label(root, text="Weekly Reduction (kg):")
label2.pack()
entry_reduction = tk.Entry(root)
entry_reduction.pack()

calc_button = tk.Button(root, text="Calculate", command=calculate)
calc_button.pack()

result_label = tk.Label(root, text="Yearly Reduction:")
result_label.pack()

root.mainloop()

# data[].attributes.attachment_link.readable_text
import tkinter as tk
from tkinter import messagebox

def calculate_reduction():
    try:
        weekly_waste = float(entry_waste.get())
        weekly_reduction = float(entry_reduction.get())
        yearly_reduction = weekly_reduction * 52
        result_label.config(text=f"Estimated Annual Waste Reduction:\n{yearly_reduction:.2f} kg")
    except ValueError:
        messagebox.showerror("Invalid input", "Please enter numbers only.")

window = tk.Tk()
window.title("Waste Reduction Calculator")
window.geometry("400x250")

tk.Label(window, text="Current Weekly Waste (kg):").pack(pady=5)
entry_waste = tk.Entry(window)
entry_waste.pack()

tk.Label(window, text="Planned Weekly Reduction (kg):").pack(pady=5)
entry_reduction = tk.Entry(window)
entry_reduction.pack()

tk.Button(window, text="CALCULATE", command=calculate_reduction).pack(pady=10)
result_label = tk.Label(window, text="", font=('Arial', 12, 'bold'))
result_label.pack(pady=10)

window.mainloop()

# data[].attributes.attachment_link.readable_text
import tkinter as tk
from tkinter import messagebox

def calculate_reduction():
    try:
        weekly_waste = float(entry_waste.get())
        weekly_reduction = float(entry_reduction.get())
        yearly_reduction = weekly_reduction * 52
        result_label.config(text=f"Estimated Annual Waste Reduction:\n{yearly_reduction:.2f} kg")
    except ValueError:
        messagebox.showerror("Invalid input", "Please enter numbers only.")

window = tk.Tk()
window.title("Waste Reduction Calculator")
window.geometry("400x250")

tk.Label(window, text="Current Weekly Waste (kg):").pack(pady=5)
entry_waste = tk.Entry(window)
entry_waste.pack()

tk.Label(window, text="Planned Weekly Reduction (kg):").pack(pady=5)
entry_reduction = tk.Entry(window)
entry_reduction.pack()

tk.Button(window, text="CALCULATE", command=calculate_reduction).pack(pady=10)
result_label = tk.Label(window, text="", font=('Arial', 12, 'bold'))
result_label.pack(pady=10)

window.mainloop()

# data[].attributes.body
WASTE REDUCTION CALCULATOR

# data[].attributes.body
Summer Holiday Homework

# data[].attributes.body
Summer Holiday Assignment

# data[].attributes.body
Zero waste face scrub

# data[].attributes.attachment_link.title
Glow without waste Zero waste face scrub

# data[].attributes.body
Zero waste constitution

# data[].attributes.body
Zero waste DIY snack

# data[].attributes.body
Zero waste geometry challenge

# data[].attributes.attachment_link.title
Zero Waste Constitution for a Green Classroom

# data[].attributes.headline
GlOW WITHOUT WASTE :DIY ZERO(0) WASTE FACE SCRUB 

# data[].attributes.subject
GlOW WITHOUT WASTE :DIY ZERO(0) WASTE FACE SCRUB 

# data[].attributes.body
Zero waste geometry challange

# data[].attributes.body
Wear the change

# data[].attributes.attachment_link.title
New Microsoft PowerPoint Presentation (2)

# data[].attributes.body
Ayesha Sahar Ahmad

# data[].attributes.body
Adnan

# data[].attributes.body
Adnan

# data[].attributes.body
Adnan