Cherry Cafe[1]
Cherry Cafe[1]
Cherry Cafe[1]
PROJECT FILE
SESSION: 2024-25
SUBJECT CODE: 083
DONE BY
NAME:
CLASS & SEC:
ROLL NO:
CHERRY CAFÉ MANAGEMENT
SYSTEM
ACKNOWLEDGEMENT
I wish to express my sincere thanks to our founder
and Chairman, SHRI.N.DEVARAJAN, for his endeavour
in educating us in his premiere instituition.
I would like to express my gratitude to our
Correspondent SHRI. BALAJI DAGUPATHI for his kind
words and enthusiastic motivation which inspired us a
lot in completing this project.
I wish to express my sincere thanks to our director
SHRI.SUMAN BABU YARLAGGADA, for providing us
with necessary facilities for completion of this project.
I would like to express my thanks and gratitude to our
principal Mrs. RENUKA BALAJI NALLAMAR for her
encouragement and her sincere guidance.
I am obliged to thank our senior Vice Principal
Mrs. Suchitra Santhosh for providing us with ample
time and encouragement for successful completion of
this Project.
I cover my thanks to Mrs. JULIYA and all the staffs in
the computer science department for their valuable
support.
INDEX
S.NO TOPIC
1 System Requirements
2 Feasibility study
3 Errors and its types
4 Testing
5 Maintenance
6 Project Synopsis
7 Flow chart of program
8 Coding and Output
9 Appendix
10 Bibliography
SYSTEM REQUIREMENTS
1. HARDWARE:
✓ Processor
✓ Keyboard
✓ Minimum memory - 2GB
2. SOFTWARE:
✓ Operating System –OS7, OS8
✓ Python IDLE
✓ MYSQL
FEASIBILITY STUDY:
Feasibility study is a system proposal according to its
work, ability, impact on the operation ability to meet
the needs of users and efficient use of resources. An
important outcome of preliminary investigations the
determination of that system requested feasible.
ECONOMICAL FEASIBILITY:
Economics analysis is the most frequent use method
for evaluating the effectiveness of the candidates the
benefits and savings that are expected from system
and compare them with cost.
This software is not very costly. It just worth Rs.5500/-.
So users records can be maintained at a cheaper cost
and every school would like to use this software so that
the student’s records can be managed easily.
TECHNICAL FEASIBILTY:
Technical feasibility centre on the existing computer
system and to what extent it can support the proposed
task. This involves financial consideration to
accommodate technical enhancements. It is technically
feasible because whatever technology is needed to
develop this software is easily available.
ERRORS AND ITS TYPES
An error, sometime called “A BUG” is anything in the
code that prevents a program from compiling and
running correctly. There are broadly three types of
errors as follows:
1. Compile- time errors: Errors that occurs during
compilation of a program is called compile time error.
It has two types as follows:
a. Syntax error: It refers to formal rules governingthe
construction of valid statements in a language.
b. Semantics error: It refers to the set of rules which
give the meaning of a statement.
2. Run time Errors
Errors that occur during the execution of program are
run time errors. These are harder to detect errors.
Some run-time error stop the execution of program
which is then called program “Crashed”.
3. Logical Errors:
Sometimes, even if you don’t encounter any error
during compiling-time and runtime, your program does
not provide the correct result. This is because of the
programmer’s mistaken analysis of the problem he or
she is trying to solve. Such errors are called logical
error
TESTING
1. Alpha Testing:
It is the most common type of testing used in the software industry. The
objective of this testing is to identify all possible issues or defects before
releasing it into the market or to the user. It is conducted at the
developer’s site.
2. Beta Testing:
It is a formal type of software testing which is carried out by the
customers. It is performed in a real environment before releasing the
products into the market for the actual end-users. It is carried out to
ensure that there are no major failures in the software or product and it
satisfies the business requirement. Beta Testing is successful when the
customer accepts the software.
3. Preventive Maintenance:
If possible the errors could be anticipated before they
actually occur; the maintenance is called Preventive
maintenance.
4. Perfective Maintenance:
In this rapidly changing world, information technology is
the fastest growing area. If the existing system is
maintained to keep tuned with the new features, new
facilities, new capabilities, it is said to be Perfective
maintenance.
User Authentication:
There is no user login system, which could lead to
unauthorized access to the database.
Data Validation:
The program lacks thorough input validation, which may
cause issues if users enter invalid data (e.g., non-numeric
quantities).
Concurrency Issues:
The current implementation does not handle multiple
users accessing the system simultaneously, which could
lead to data integrity issues.
Limited Functionality:
The program focuses solely on basic cart operations
without advanced features like search, filtering, or
sorting of items.
No Persistent Cart:
The cart is cleared upon program exit; there’s no
mechanism to save cart data for future sessions.
Error Handling:
There is minimal error handling; unexpected errors could
cause the program to crash without user-friendly
feedback.
No Item Removal Confirmation:
When deleting items from the cart, there’s no
confirmation prompt to prevent accidental deletions.
Fixed Menu Items:
The menu items are hardcoded, requiring code changes
to update or add new items instead of allowing dynamic
management through a user interface.
Limited Reporting:
The invoice generation is basic and lacks detailed
reporting features, such as sales summaries or item
popularity.
No User Interface:
The interaction is purely text-based in the console, which
may not be user-friendly for all users compared to a
graphical user interface (GUI).
FLOW CHART
╔════════════════╗
║ START ║
╚════════════════╝
│
▼
╔═══════════════════════════╗
║ Connect to Database ║
╚═══════════════════════════╝
│
▼
╔═══════════════════════════╗
║ Create Database & Tables ║
╚═══════════════════════════╝
│
▼
╔═══════════════════════════╗
║ Insert Menu Items ║
╚═══════════════════════════╝
│
▼
╔═══════════════════════════╗
║ Main Menu ║
╚═══════════════════════════╝
│
▼
╔═══════════════════════════╗
║ View Items / Cart ║
╚═══════════════════════════╝
│
▼
╔═══════════════════════════╗
║ Add / Update / Delete ║
╚═══════════════════════════╝
│
▼
╔═══════════════════════════╗
║ Generate Invoice ║
╚═══════════════════════════╝
│
▼
╔═══════════════════════════╗
║ EXIT ║
╚═══════════════════════════╝
│
▼
╔═══════════════════════════╗
║ END ║
╚═══════════════════════════╝
import mysql.connector as ms
def delete_cart():
name = input('Enter item name to delete: ')
cur.execute("DELETE FROM CART WHERE ITEM_NAME = %s", (name,))
if cur.rowcount == 0:
print(f"Item '{name}' not found in the cart.")
else:
print("Updated cart.")
view_cart()
if not rows:
print("Cart is empty, cannot generate invoice.")
return
total_amount = 0
for item_name, qty in rows:
cur.execute("SELECT PRICE FROM ITEMS WHERE ITEM_NAME = %s",
(item_name,))
price_row = cur.fetchone()
if price_row:
price = price_row[0]
total = price * qty
total_amount += total
print(f"| {item_name:<15} | {qty:<3} | {price:<5} | {total:<6} |")
print("-----------------------------------------")
print(f"Total Amount: {total_amount}")
print("------------------------------")
print("Thank you for your purchase!")
OUTPUT
WELCOME TO CHERRY CAFE
MAIN MENU
1. View Items
2. Add to Cart
3. View Cart
4. Update Cart
5. Delete Cart
6. Generate Invoice
7. Exit
| A10 | Churros (10 pcs) | 200 | Crispy churros sprinkled with sugar. |
MAIN MENU
1. View Items
2. Add to Cart
3. View Cart
4. Update Cart
5. Delete Cart
6. Generate Invoice
7. Exit
Enter your option: 2
Enter quantity: 3
MAIN MENU
1. View Items
2. Add to Cart
3. View Cart
4. Update Cart
5. Delete Cart
6. Generate Invoice
7. Exit
Enter quantity: 4
MAIN MENU
1. View Items
2. Add to Cart
3. View Cart
4. Update Cart
5. Delete Cart
6. Generate Invoice
7. Exit
| NAME | QTY |
--------------------------
| cheesecake |3 |
| milkshake |4 |
MAIN MENU
1. View Items
2. Add to Cart
3. View Cart
4. Update Cart
5. Delete Cart
6. Generate Invoice
7. Exit
Modify quantity: 3
Updated cart.
| NAME | QTY |
--------------------------
| cheesecake |3 |
| milkshake |3 |
MAIN MENU
1. View Items
2. Add to Cart
3. View Cart
4. Update Cart
5. Delete Cart
6. Generate Invoice
7. Exit
Enter your option: 5
Updated cart.
| NAME | QTY |
--------------------------
| cheesecake |3 |
MAIN MENU
1. View Items
2. Add to Cart
3. View Cart
4. Update Cart
5. Delete Cart
6. Generate Invoice
7. Exit
-----------------------------------------
-----------------------------------------
------------------------------
MAIN MENU
1. View Items
2. Add to Cart
3. View Cart
4. Update Cart
5. Delete Cart
6. Generate Invoice
7. Exit
MAIN MENU
1. View Items
2. Add to Cart
3. View Cart
4. Update Cart
5. Delete Cart
6. Generate Invoice
7. Exit