Skip to content

This is a simple energy consumption management system written in C. Users can register, log in, input their monthly electricity usage, calculate the cost based on consumption, and pay their bills. The program also identifies the most expensive paid month. It supports up to 20 users and runs through a console-based menu.

Notifications You must be signed in to change notification settings

Efthymiapp/Energy-Consumption-Management-System

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”Œ Energy Consumption Management System (in C)

This is a C-based console application that simulates a simple energy billing system for residential users. It allows up to 20 clients to register, track their monthly energy consumption (in kWh), calculate charges, and make payments based on their usage.


πŸ“‹ Features

  • πŸ“ User Sign-up & Login System

    • Creates a unique username based on the surname (e.g., smith123)
    • Password-based login authentication
  • πŸ“Š Monthly Consumption Tracking

    • Users input their monthly kWh consumption
    • Calculates energy cost based on consumption range:
      • Up to 1600 kWh β†’ €0.005 per unit
      • 1601–2000 kWh β†’ €0.008 per unit
      • Above 2000 kWh β†’ €0.009 per unit
    • Cost is weighted by days in each month (e.g., February has 28 days)
  • πŸ’³ Payment System

    • Displays calculated cost per month
    • Allows the user to pay for any unpaid month (must input the exact amount)
    • Marks each month as "paid" upon successful payment
  • πŸ“ˆ Most Expensive Month

    • Identifies the month with the highest paid energy bill
  • πŸ› οΈ Edit User Details

    • Allows users to update their address and home size

🧠 How it Works

The system is entirely command-line based and consists of structured menus. Each user’s data is stored in memory using struct, and energy cost is stored in a 2D array.

Data is not persistent (not saved to files), so all progress resets on restart.


image

image

About

This is a simple energy consumption management system written in C. Users can register, log in, input their monthly electricity usage, calculate the cost based on consumption, and pay their bills. The program also identifies the most expensive paid month. It supports up to 20 users and runs through a console-based menu.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages