8000 GitHub - n4vrl0s3/Program-Tunggakan-SPP: This repository contains a Python-based program designed to manage and calculate outstanding school fees (SPP). It includes functionalities for tracking student records, calculating arrears, and generating detailed reports. Perfect for educational institutions or developers working on financial management systems.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

This repository contains a Python-based program designed to manage and calculate outstanding school fees (SPP). It includes functionalities for tracking student records, calculating arrears, and generating detailed reports. Perfect for educational institutions or developers working on financial management systems.

License

Notifications You must be signed in to change notification settings

n4vrl0s3/Program-Tunggakan-SPP

Repository files navigation

Program Tunggakan SPP

This repository aims to provide a comprehensive starting point for understanding and implementing an SPP (Education Development Contribution) arrears tracking system. This program is implemented in Python and is suitable as an introduction to managing and tracking SPP payments for students, suitable for beginner and intermediate programmers.



Purpose of This Repository

This repository aims to provide a complete guide to understanding and implementing an SPP (Education Development Contribution) arrears tracking system. This program uses Python and is designed to help school administrators monitor and manage student SPP payments. By using this program, users can easily record, check, and update the status of student SPP payments, making it suitable for beginner and intermediate programmers who want to learn data management and practical applications in education.



Demonstration

Here is a simple demonstration of how to use the main functions in the program:

# main.py

def read_pembayaran(filename):
    pembayaran = []
    with open(filename, 'r') as file:
        for line in file:
            tanggal, semester, jumlah = line.strip().split(', ')
            pembayaran.append({
                'tanggal': tanggal,
                'semester': semester,
                'jumlah': int(jumlah),
            })
    return pembayaran

def hitung_total_pembayaran(pembayaran):
    total = 0
    for bayar in pembayaran:
        total += bayar['jumlah']
    return total

def cek_tertunggak(pembayaran):
    semester_terbayar = [bayar['semester'] for bayar in pembayaran]
    for i in range(1, 13): # Semester 1 hingga 13
        if f"Semester {i}" not in semester_terbayar:
            return i
    return None

def ringkasan_pembayaran(filename):
    pembayaran = read_pembayaran(filename)
    total = hitung_total_pembayaran(pembayaran)
    tertunggak = cek_tertunggak(pembayaran)

    print(f"Total Pembayaran untuk {filename}: Rp{total}")
    if tertunggak:
        print(f"Tertunggak: Semester {tertunggak}")
    else:
        print("Tertunggak: Tidak ada")

def main():
    NIM = input("Masukkan NIM Anda: ")
    filename = f"{NIM}_pembayaran.txt"
    if os.path.exists(filename):
        ringkasan_pembayaran(filename)
    else:
        print(f"File '{filename}' tidak ditemukan")

if __name__ == "__main__":
    main()


Features

  • Record student SPP payments
  • Check payment status
  • Update payment status
  • SPP arrears report


Technologies Used

  • Python


Project Setup

  1. Clone this repository
    git clone https://github.com/n4vrl0s3/Program-Tunggakan-SPP.git
  2. Navigate to the project directory
    cd Program-Tunggakan-SPP
  3. Install the required dependencies
    pip install -r requirements.txt


Steps to Run

  1. Ensure you have Python installed on your machine.
  2. Run the program
    python main.py


License

This project is licensed under the MIT License. See the LICENSE file for details.



About

This repository contains a Python-based program designed to manage and calculate outstanding school fees (SPP). It includes functionalities for tracking student records, calculating arrears, and generating detailed reports. Perfect for educational institutions or developers working on financial management systems.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Sponsor this project

  •  

Languages

0