0% found this document useful (0 votes)
3 views5 pages

Script Group 10

The document outlines the step-by-step process of a barbershop management system, detailing how customers enter their information, select services, and make payments through a graphical user interface. It explains the programming structures used in Python, including sequential, decision, and repetition structures, as well as file handling for transaction records. The project emphasizes the application of programming concepts in real-world scenarios and highlights the development of teamwork and problem-solving skills.

Uploaded by

haz
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views5 pages

Script Group 10

The document outlines the step-by-step process of a barbershop management system, detailing how customers enter their information, select services, and make payments through a graphical user interface. It explains the programming structures used in Python, including sequential, decision, and repetition structures, as well as file handling for transaction records. The project emphasizes the application of programming concepts in real-world scenarios and highlights the development of teamwork and problem-solving skills.

Uploaded by

haz
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Moving on with the flowchart, The flowchart shows the step-by-step

process of how the system works. You can think of it as a guide that
explains what happens first, next, and until the transaction is completed.
The process starts when the program runs and the system asks the
customer to enter their personal information, such as their name and
contact number. After that, the system checks if the information is
complete. If the input is valid, the program proceeds to the next step, which
is displaying the available grooming services. The customer can then
choose the services they want. Once the services are selected, the system
calculates the total cost. The program then asks the customer to enter their
payment. If the payment is not enough, the system will ask the user to
enter the correct amount again. If the payment is sufficient, the program
calculates the change and generates the receipt. Finally, the transaction
ends and the system can start again for a new customer. (Next slide)

Next is the System Features. In this part, we show how the actual system
looks and how users interact with it. The program uses a Graphical User
Interface or GUI, which makes the system easier to use because users can
click buttons and see information on the screen. When someone uses the
system, the first page asks for the customer’s name and contact number.
After entering the information, the user moves to the service selection page
where they can choose the grooming services they want. The next page
shows the total amount and asks for the payment. After the payment is
entered, the system calculates the change and displays the receipt. These
pages guide the user through the entire process in a simple and organized
way. (Next slide)

The system works because it uses different programming structures in


Python. First, the program uses sequential structures, which means the
instructions are executed step by step. Next, it uses decision structures
such as if and else statements. These help the program check conditions,
for example, whether the user entered enough payment or whether the
input fields are empty. The program also uses repetition structures like
loops. These are used when the system needs to repeat certain actions,
such as displaying the list of services. In addition, lists and dictionaries are
used to store the services and their prices, while functions help organize
the program into smaller parts so the code is easier to manage. (Next slide)

Another important feature of the system is file handling. After a transaction


is completed, the system saves the transaction details in a CSV file. This
file stores information such as the date and time of the transaction, the
customer’s name and contact number, the selected services, and the total
payment. This works like a simple record system where the business can
keep track of all transactions. It also helps demonstrate how programs can
store data for future use. ( Next slide)

To conclude,, this project helped us understand how programming


concepts can be applied to real-world situations. By creating The Clean
Cuts Barbershop Management System, we were able to practice important
Python concepts such as functions, loops, dictionaries, decision-making
structures, and file handling. We also learned the importance of validating
user inputs to prevent errors and improve the user experience. Aside from
programming skills, this project also helped us improve our teamwork,
communication, and problem-solving abilities. Overall, the project allowed
us to see how software systems can be used to support real business
operations.
——————————————

In this part, I will briefly explain the main program file called “the_clean_cut.py.”
This file contains the main logic of our barbershop management system. It
controls the graphical interface, the services, the payment process, and the
receipt generation.

Import Section

At the beginning of the code, we import the required libraries. Tkinter is used to create the
graphical user interface or GUI. The messagebox module allows the program to show warning
or error messages to the user. The CSV library is used to save transaction records in a file. The
datetime module records the date and time of each transaction, while the OS module checks if
files or folders exist. Finally, the PIL library is used for image processing, such as displaying and
enhancing the barbershop animation.

Services Dictionary

Next, we define a dictionary called services. This dictionary stores the list of grooming services
along with their corresponding prices. The program reads this data when displaying the services
to the customer and when calculating the total amount.
Main Class

The program is organized using a class called BarberApp. This class contains the main
functions of the system. Using classes helps organize the code and makes the program easier
to manage.

Customer Information Page

This function creates the first page of the system where the customer enters their name and
contact number. The system checks if the input fields are complete before allowing the user to
proceed to the next page.

Service Selection

In this section, the program displays the available services using checkboxes. The user can
select one or more services, and the program stores the selected services in a list
.Payment Processing

Next is the payment processing function. The program calculates the total cost of the selected
services and asks the user to enter the payment. If the payment is not enough, the system
displays an error message. If the payment is valid, the system calculates the change.

Receipt and Transaction Saving

Finally, the program shows the receipt page and displays the change. The transaction details
are also saved in a CSV file so the system can keep a record of all transactions.

Program Execution

This is the main part of the program that runs the application. It creates the main Tkinter window
and starts the barbershop system. The program will continue running until the user closes the
window.

You might also like