0% found this document useful (0 votes)
38 views39 pages

Aaditya Cs Project

This document is a certificate for a student named Aaditya Santosh Gupta who completed a project on a Food Processing System for their Computer Science class. It includes the student's details like name, roll number, class, subject, and project guide. It also contains a table of contents that lists sections like introduction, objectives, system development life cycle phases, flow chart, source code, output, hardware and software requirements, and bibliography. The project aims to design a comprehensive food processing system to streamline production, ensure quality control, and manage inventory.

Uploaded by

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

Aaditya Cs Project

This document is a certificate for a student named Aaditya Santosh Gupta who completed a project on a Food Processing System for their Computer Science class. It includes the student's details like name, roll number, class, subject, and project guide. It also contains a table of contents that lists sections like introduction, objectives, system development life cycle phases, flow chart, source code, output, hardware and software requirements, and bibliography. The project aims to design a comprehensive food processing system to streamline production, ensure quality control, and manage inventory.

Uploaded by

Aaditya Gupta
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 39

NARAYANA E-TECHNO SCHOOL

ACADEMIC YEAR: 2020-21

FOOD PROCESSING SYSTEM

ROLL NO :

NAME : AADITYA SANTOSH GUPTA

CLASS : XII

SUBJECT : COMPUTER SCIENCE

SUB CODE : 083

PROJECT GUIDE: Ms.Vimlesh Agrawal

PGT (CS)

Narayana E-Techno School

Andheri East, Mumbai

Maharashtra

1
NARAYANA E- TECHNO
SCHOOL

CERTIFICATE

This is to certify that AADITYA SANTOSH GUPTA, Roll No: ___________ has

successfully completed the project Work entitled FOOD PROCESSING SYSTEM in the

subject Computer Science (083) laid down in the regulations of CBSE for the purpose of

Practical Examination in Class XII to be held in Narayana E-Techno School on

____________.

(Ms. Vimlesh
Agrawal)
PGT Comp Science
M-Tech CS

Examiner:

Name: _______________

Signature:

2
TABLE OF CONTENTS [ T O C ]

SER DESCRIPTION PAGE NO

01 ACKNOWLEDGEMENT 04

02 CERTIFICATE

03 INTRODUCTION 05

04 OBJECTIVES OF THE PROJECT 05

05 SYSTEM DEVELOPMENT LIFE CYCLE (SDLC) 07

06 PHASES OF SYSTEM DEVELOPMENT LIFE CYCLE 08

07 FLOW CHART 15

08 SOURCE CODE 16

09 OUTPUT 19

10 HARDWARE AND SOFTWARE REQUIREMENTS 23

11 BIBLIOGRAPHY 24

3
ACKNOWLEDGEMENT

Apart from the efforts of me, the success of any project depends largely on the
encouragement and guidelines of many others. I take this opportunity to express my gratitude
to the people who have been instrumental in the successful completion of this project.

I express deep sense of gratitude to almighty God for giving me strength for the
successful completion of the project.

I express my heartfelt gratitude to my parents for constant encouragement while


carrying out this project.

I gratefully acknowledge the contribution of the individuals who contributed in


bringing this project up to this level, who continues to look after me despite my flaws,

I express my deep sense of gratitude to the luminary The Principal, Narayana E-


Techno School who has been continuously motivating and extending their helping hand to us.

I express my sincere thanks to the academician The Vice Principal, Narayana E-


Techno School, for constant encouragement and the guidance provided during this project

I am overwhelmed to express my thanks to The Administrative Officer for providing


me an infrastructure and moral support while carrying out this project in the school.

My sincere thanks to Ms. Vimlesh Agrawal, Master In-charge, A guide, Mentor all
the above a
friend, who critically reviewed my project and helped in solving each and every
problem, occurred during implementation of the project

The guidance and support received from all the members who contributed and who
are contributing to this project, was vital for the success of the project. I am grateful for their
constant support and help.

PROJECT ON FOOD PROCESSING SYSTEM

4
INTRODUCTION

Food processing is a crucial aspect of the food industry that involves converting raw

agricultural products into consumable forms. With the growing demand for processed foods

and the need for efficient, automated systems, the development of a Food Processing System

is a significant area of focus. This Computer Science project for Class 12 aims to design and

implement a comprehensive system that addresses various aspects of food processing,

including production, quality control, and inventory management.

Project Overview: The Food Processing System is designed to streamline the entire food

production process, ensuring efficiency, quality, and traceability. The system encompasses

different modules to handle specific tasks, providing a holistic solution for food

manufacturers.

Key Features:

Product Master: Create a centralized database of all food products, including details such as

name, ingredients, nutritional information, and production specifications. Implement a user-

friendly interface for adding, updating, and deleting product records.

Production Module: Automation of the production process to enhance efficiency and reduce

manual errors. Real-time monitoring of production lines, ensuring adherence to predefined

recipes and standards.

Quality Control: Incorporate quality control measures at various stages of production to

ensure the final product meets industry standards. Implement checks for factors like weight,

colour, and texture, with automated alerts for deviations.

5
Inventory Management: Track raw materials, semi-finished goods, and finished products in

real-time. Implement reorder alerts and inventory optimization algorithms to prevent

stockouts or overstock situations.

Supplier Management: Maintain a database of suppliers and automate order placement

based on production needs. Evaluate supplier performance and establish a streamlined

communication channel.

User Authentication and Access Control: Implement a secure login system with different

access levels for administrators, production staff, and quality control personnel.

Reporting and Analytics: Generate comprehensive reports on production output, quality

metrics, and inventory levels. Provide visual analytics to identify trends, bottlenecks, and

areas for improvement.

Technology Stack:

Programming Language: Java, Python, or any language suitable for the development

environment. Database: MySQL, PostgreSQL, or MongoDB for data storage.

User Interface: HTML, CSS, and JavaScript for a responsive and interactive web-based

interface.

Conclusion: This Food Processing System project aims to demonstrate the practical

application of computer science concepts in the context of the food industry. By automating

and optimizing various processes, the system contributes to increased efficiency, reduced

operational costs, and improved overall quality in food production. Throughout the

development process, emphasis will be placed on user-friendly interfaces, data security, and

scalability to ensure the system meets the diverse needs of the food processing industry.

OBJECTIVES OF THE PROJECT

6
The objective of this project is to let the students apply the programming knowledge

into a real- world situation/problem and exposed the students how programming skills helps

in developing a good software.

1. Write programs utilizing modern software tools.

2. Apply object-oriented programming principles effectively when developing small to

medium sized projects.

3. Write effective procedural code to solve small to medium sized problems.

4. Students will demonstrate a breadth of knowledge in computer science, as

exemplified in the areas of systems, theory and software development.

5. Students will demonstrate ability to conduct research or applied Computer Science

project, requiring writing and presentation skills which exemplify scholarly style in

computer science.

SYSTEM DEVELOPMENT LIFE CYCLE (SDLC)

7
The systems development life cycle is a project management technique that divides
complex projects into smaller, more easily managed segments or phases. Segmenting projects
allows managers to verify the successful completion of project phases before allocating
resources to subsequent phases.
Software development projects typically include initiation, planning, design,
development, testing, implementation, and maintenance phases. However, the phases may be
divided differently depending on the organization involved.
For example, initial project activities might be designated as request, requirements-
definition, and planning phases, or initiation, concept-development, and planning phases. End
users of the system under development should be involved in reviewing the output of each
phase to ensure the system is being built to deliver the needed functionality.

PHASES OF SYSTEM DEVELOPMENT LIFE CYCLE

INITIATION PHASE

The Initiation Phase begins when a business sponsor identifies a need or an opportunity.

The purpose of the Initiation Phase is to:

8
Identify and validate an opportunity to improve business accomplishments of the
organization or a deficiency related to a business need.
Identify significant assumptions and constraints on solutions to that need.
Recommend the exploration of alternative concepts and methods to satisfy the need
including questioning the need for technology, i.e., will a change in the business
process offer a solution?
Assure executive business and executive technical sponsorship. The Sponsor
designates a Project Manager and the business need is documented in a Concept
Proposal. The Concept Proposal includes information about the business process and
the relationship to the Agency/Organization.
Infrastructure and the Strategic Plan. A successful Concept Proposal results in a
Project Management Charter which outlines the authority of the project manager to
begin
the project.

Careful oversight is required to ensure projects support strategic business objectives


and resources are effectively implemented into an organization's enterprise architecture. The
initiation phase begins when an opportunity to add, improve, or correct a system is identified
and formally requested through the presentation of a business case. The business case should,
at a minimum, describe a proposal’s purpose, identify expected benefits, and explain how the
proposed system supports one of the organization’s business strategies. The business case
should also identify alternative solutions and detail as many informational, functional, and
network requirements as possible.

SYSTEM CONCEPT DEVELOPMENT PHASE

The System Concept Development Phase begins after a business need or opportunity is
validated by the Agency/Organization Program Leadership and the Agency/Organization
CIO.

The purpose of the System Concept Development Phase is to:

9
Determine the feasibility and appropriateness of the alternatives.
Identify system interfaces.
Identify basic functional and data requirements to satisfy the business need.
Establish system boundaries; identify goals, objectives, critical success factors, and
performance measures.
Evaluate costs and benefits of alternative approaches to satisfy the basic functional
requirements
Assess project risks
Identify and initiate risk mitigation actions, and develop high-level technical
architecture, process models, data models, and a concept of operations. This phase
explores potential technical solutions within the context of the business need.
It may include several trade-off decisions such as the decision to use COTS software
products as opposed to developing custom software or reusing software components,
or the decision to use an incremental delivery versus a complete, onetime deployment.
Construction of executable prototypes is encouraged to evaluate technology to support
the business process. The System Boundary Document serves as an important
reference document to support the Information Technology Project Request (ITPR)
process.
The ITPR must be approved by the State CIO before the project can move forward.

PICTORIAL REPRESENTATION OF SDLC:

10
PLANNING PHASE

The planning phase is the most critical step in completing development, acquisition,
and maintenance projects. Careful planning, particularly in the early stages of a project, is
necessary to coordinate activities and manage project risks effectively. The depth and
formality of project plans should be commensurate with the characteristics and risks of a
given project. Project plans refine the information gathered during the initiation phase by
further identifying the specific activities and resources required to complete a project.
A critical part of a project manager’s job is to coordinate discussions between user,
audit, security, design, development, and network personnel to identify and document as
many functional, security, and network requirements as possible. During this phase, a plan is
developed that documents the approach to be used and includes a discussion of methods,
tools, tasks, resources, project schedules, and user input. Personnel assignments, costs,
project schedule, and target dates are established.
A Project Management Plan is created with components related to acquisition
planning, configuration management planning, quality assurance planning, concept of
operations, system security, verification and validation, and systems engineering management
planning.

REQUIREMENTS ANALYSIS PHASE

11
This phase formally defines the detailed functional user requirements using high-level
requirements identified in the Initiation, System Concept, and Planning phases. It also
delineates the requirements in terms of data, system performance, security, and
maintainability requirements for the system. The requirements are defined in this phase to a
level of detail sufficient for systems design to proceed. They need to be measurable, testable,
and relate to the business need or opportunity identified in the Initiation Phase. The
requirements that will be used to determine acceptance of the system are captured in the Test
and Evaluation Masterplan.

The purposes of this phase are to:

Further define and refine the functional and data requirements and document them in
the Requirements Document,
Complete business process reengineering of the functions to be supported (i.e., verify
what information drives the business process, what information is generated, who
generates it, where does the information go, and who processes it),
Develop detailed data and process models (system inputs, outputs, and the process.
Develop the test and evaluation requirements that will be used to determine
acceptable system performance.

DESIGN PHASE

The design phase involves converting the informational, functional, and network
requirements identified during the initiation and planning phases into unified design
specifications that developers use to script programs during the development phase. Program
designs are constructed in various ways. Using a top-down approach, designers first identify
and link major program components and interfaces, then expand design layouts as they
identify and link smaller subsystems and connections. Using a bottom-up approach, designers
first identify and link minor program components and interfaces, then expand design layouts
as they identify and link larger systems and connections. Contemporary design techniques
often use prototyping tools that build mock-up designs of items such as application screens,

12
database layouts, and system architectures. End users, designers, developers, database
managers, and network administrators should review and refine the prototyped designs in an
iterative process until they agree on an acceptable design. Audit, security, and quality
assurance personnel should be involved in the review and approval process. During this
phase, the system is designed to satisfy the functional requirements identified in the previous
phase. Since problems in the design phase could be very expensive to solve in the later stage
of the software development, a variety of elements are considered in the design to mitigate
risk. These include:

Identifying potential risks and defining mitigating design features.


Performing a security risk assessment.
Developing a conversion plan to migrate current data to the new system.
Determining the operating environment.
Defining major subsystems and their inputs and outputs.
Allocating processes to resources.
Preparing detailed logic specifications for each software module. The result is a draft
System Design Document which captures the preliminary design for the system.
Everything requiring user input or approval is documented and reviewed by the user.
Once these documents have been approved by the Agency CIO and Business Sponsor,
the final System Design Document is created to serve as the Critical/Detailed Design
for the system.
This document receives a rigorous review byAgency technical and functional
representatives to ensure that it satisfies the business requirements. Concurrent with
the development of the system design, the Agency Project Manager begins
development of the Implementation Plan, Operations and Maintenance Manual, and
the Training Plan.

DEVELOPMENT PHASE

The development phase involves converting design specifications into executable


programs. Effective development standards include requirements that programmers and
other project participants discuss design specifications before programming begins. The
procedures help ensure programmers clearly understand program designs and functional

13
requirements. Programmers use various techniques to develop computer programs. The
large transaction-oriented programs associated with financial institutions have
traditionally been developed using procedural programming techniques. Procedural
programming involves the line-by-line scripting of logical instructions that are combined
to form a program. Effective completion of the previous stages is a key factor in the
success of the Development phase. The Development phase consists of:

Translating the detailed requirements and design into system components.


Testing individual elements (units) for usability.
Preparing for integration and testing of the IT system.

INTEGRATION AND TEST PHASE

Subsystem integration, system, security, and user acceptance testing is conducted


during the integration and test phase. The user, with those responsible for quality
assurance, validates that the functional requirements, as defined in the functional
requirements document, are satisfied by the developed or modified system. OIT
Security staff assess the system security and issue a security certification and
accreditation prior to installation/implementation.

Multiple levels of testing are performed, including:

Testing at the development facility by the contractor and possibly supported by end
users

Testing as a deployed system with end users working together with contract personnel

14
Operational testing by the end user alone performing all functions. Requirements are
traced throughout testing, a final Independent Verification & Validation evaluation is
performed and all documentation is reviewed and accepted prior to acceptance of the
system.

IMPLEMENTATION PHASE

This phase is initiated after the system has been tested and accepted by the user. In
this phase, the system is installed to support the intended business functions. System
performance is compared to performance objectives established during the planning phase.
Implementation includes user notification, user training, installation of hardware, installation
of software onto production computers, and integration of the system into daily work
processes. This phase continues until the system is operating in production in accordance
with the defined user requirements.

OPERATIONS AND MAINTENANCE PHASE

The system operation is ongoing. The system is monitored for continued performance
in accordance with user requirements and needed system modifications are incorporated.
Operations continue as long as the system can be effectively adapted to respond to the
organization’s needs. When modifications or changes are identified, the system may reenter
the planning phase.

The purpose of this phase is to:

Operate, maintain, and enhance the system.


Certify that the system can process sensitive information.
Conduct periodic assessments of the system to ensure the functional requirements
continue to be satisfied.
Determine when the system needs to be modernized, replaced, or retired.

15
SOURCE CODE
print("\n" * 5)

import datetime
import os

list_foods = []
list_drinks = []
list_services = []

16
list_item_price = [0] * 100

var_discount_1 = 200
var_discount_2 = 1000
var_discount_3 = 5000
var_discount_1_rate = 0.05
var_discount_2_rate = 0.10
var_discount_3_rate = 0.15

navigator_symbol = "/"

if os.name == "nt":
navigator_symbol = "\\"

def def_default():

global list_drinks, list_foods, list_services, list_item_order, list_item_price


list_item_order = [0] * 100
def_default()

def def_main():

while True:
print("*" * 28 + "FOOD PROCESSING SYSTEM" + "*" * 24 + "\n")
print("*" * 31 + "MAIN MENU" + "*" * 32 + "\n"

17
"\t(O) ORDER\n"
"\t(R) REPORT\n"
"\t(P) PAYMENT\n"
"\t(E) EXIT\n" +
"_" * 72)

input_1 = str(input("Please Select Your Operation: ")).upper()

if (len(input_1) == 1):

if (input_1 == 'O'):
print("\n" * 10)
def_order_menu()
break

elif (input_1 == 'R'):


print("\n" * 10)
def_report()
break

elif (input_1 == 'P'):


print("\n" * 10)
def_payment()
break

elif (input_1 == 'E'):


print("*" * 32 + "THANK YOU" + "*" * 31 + "\n")
break

18
else:
print("\n" * 10 + "ERROR: Invalid Input (" + str(input_1) + "). Try
again!")

else:
print("\n" * 10 + "ERROR: Invalid Input (" + str(input_1) + "). Try
again!")

def def_order_menu():

while True:
print("*" * 31 + "ORDER PAGE" + "*" * 31 + "\n"
"\t(F) FOODS AND DRINKS\n"
"\t(O) OTHER SERVICES\n"
"\t(M) MAIN MENU\n"
"\t(E) EXIT\n" +
"_" * 72)

input_1 = str(input("Please Select Your Operation: ")).upper()

if len(input_1) == 1:

if (input_1 == 'F'):
print("\n" * 10)
def_food_drink_order()
break

elif (input_1 == 'O'):


print("\n" * 10)

19
def_other_services()
break

elif (input_1 == 'M'):


print("\n" * 10)
def_main()
break

elif (input_1 == 'E'):


print("*" * 32 + "THANK YOU" + "*" * 31 + "\n")
break

else:
print("\n" * 10 + "ERROR: Invalid Input (" + str(input_1) + "). Try
again!")

else:
print("\n" * 10 + "ERROR: Invalid Input (" + str(input_1) + "). Try
again!")

def def_full_file_reader():
file_foods = open('files'+navigator_symbol+'list_foods.fsd', 'r')

for i in file_foods:
list_foods.append(str(i.strip()))
file_foods.close()

file_drinks = open('files'+navigator_symbol+'list_drinks.fsd', 'r')

20
for i in file_drinks:
list_drinks.append(str(i.strip()))
file_drinks.close()

file_services = open('files'+navigator_symbol+'list_services.fsd', 'r')

for i in file_services:
list_services.append(str(i.strip()))
file_services.close()

i=0

while i <= (len(list_foods) - 1):


if '$' in list_foods[i]:
list_foods[i] = str(list_foods[i][:list_foods[i].index('$') - 1]) + ' ' * (20 -
(list_foods[i].index('$') - 1)) + str(list_foods[i][list_foods[i].index('$'):])
i += 1

i=0

while i <= (len(list_drinks) - 1):


if '$' in list_drinks[i]:
list_drinks[i] = str(list_drinks[i][:list_drinks[i].index('$') - 1]) + ' ' * (20 -
(list_drinks[i].index('$') - 1)) + str(list_drinks[i][list_drinks[i].index('$'):])
i += 1

i=0

while i <= (len(list_services) - 1):

21
if '$' in list_services[i]:
list_services[i] = str(list_services[i][:list_services[i].index('$') - 1]) + ' ' *
(20 - (list_services[i].index('$') - 1)) + str(list_services[i]
[list_services[i].index('$'):])
i += 1
def_full_file_reader()

def def_file_sorter():

global list_foods, list_drinks, list_services


list_foods = sorted(list_foods)
list_drinks = sorted(list_drinks)
list_services = sorted(list_services)

i=0

while i < len(list_foods):


list_item_price[i] = float(list_foods[i][int(list_foods[i].index("$") + 2):])
i += 1

i=0

while i < len(list_drinks):


list_item_price[40 + i] = float(list_drinks[i][int(list_drinks[i].index("$") +
2):])
i += 1

i=0

22
while i < len(list_services):
list_item_price[80 + i] = float(list_services[i][int(list_services[i].index("$")
+ 2):])
i += 1
def_file_sorter()

def def_food_drink_order():

while True:
print("*" * 26 + "ORDER FOODS & DRINKS" + "*" * 26)
print(" |NO| |FOOD NAME| |PRICE| | |NO| |DRINK NAME|
|PRICE|")

i=0

while i < len(list_foods) or i < len(list_drinks):


var_space = 1
if i <= 8:
var_space = 2

if i < len(list_foods):
food = " (" + str(i + 1) + ")" + " " * var_space + str(list_foods[i]) +
" |"

else:
food = " " * 36 + "| "
if i < len(list_drinks):
drink = "(" + str(41 + i) + ")" + " " + str(list_drinks[i])

23
else:
drink = ""
print(food, drink)
i += 1

print("\n (M) MAIN MENU (P) PAYMENT (E)


EXIT\n" + "_" * 72)

input_1 = input("Please Select Your Operation: ").upper()

if (input_1 == 'M'):
print("\n" * 10)
def_main()
break

if (input_1 == 'E'):
print("*" * 32 + "THANK YOU" + "*" * 31 + "\n")
break

if (input_1 == 'P'):
print("\n" * 10)
def_payment()
break

try:
int(input_1)
if ((int(input_1) <= len(list_foods) and int(input_1) > 0) or
(int(input_1) <= len(list_drinks) + 40 and int(input_1) > 40)):

24
try:
print("\n" + "_" * 72 + "\n" + str(list_foods[int(input_1) - 1]))

except:
pass
try:

print("\n" + "_" * 72 + "\n" + str(list_drinks[int(input_1) - 41]))


except:
pass

input_2 = input("How Many You Want to Order?: ").upper()

if int(input_2) > 0:
list_item_order[int(input_1) - 1] += int(input_2)
print("\n" * 10)
print("Successfully Ordered!")
def_food_drink_order()
break

else:
print("\n" * 10 + "ERROR: Invalid Input (" + str(input_2) + ").
Try again!")

except:
print("\n" * 10 + "ERROR: Invalid Input (" + str(input_1) + "). Try
again!")

def def_other_services():

25
while True:
print("*" * 29 + "OTHER SERVICES" + "*" * 29)
print(" |NO| |SERVICE NAME| |PRICE|")

i=0
while i < len(list_services):
print(" (" + str(81+ i) + ")" + " " + str(list_services[i]))

i += 1

print("\n (M) MAIN MENU (P) PAYMENT (E)


EXIT\n" + "_" * 72)

input_1 = input("Please Select Your Operation: ").upper()

if (input_1 == 'M'):
print("\n" * 10)
def_main()
break

if (input_1 == 'E'):
print("*" * 32 + "THANK YOU" + "*" * 31 + "\n")
break

if (input_1 == 'P'):
print("\n" * 10)
def_payment()
break

26
try:
int(input_1)
if (int(input_1) > 80) and (int(input_1) < 100):
print("\n" * 10)
print("Successfully Ordered: " + str(list_services[int(input_1) - 81]))
list_item_order[int(input_1) - 1] = 1
def_other_services()
break

else:
print("\n" * 10 + "ERROR: Invalid Input (" + str(input_1) + "). Try
again!")
except:
print("\n" * 10 + "ERROR: Invalid Input (" + str(input_1) + "). Try
again!")

def def_report():

while True:
print("*" * 33 + "REPORT" + "*" * 33 + "\n")
file_report = open('files'+navigator_symbol+'report.fsd', 'r').read()
print(file_report)
print("\n(M) MAIN MENU (E) EXIT\n" + "_" * 72)
input_1 = str(input("Please Select Your Operation: ")).upper()

if (input_1 == 'M'):
print("\n" * 10)
def_main()

27
break

elif (input_1 == 'E'):


print("*" * 32 + "THANK YOU" + "*" * 31 + "\n")
break

else:
print("\n" * 10 + "ERROR: Invalid Input (" + str(input_1) + "). Try
again!")

def def_payment():

while True:
print("*" * 32 + "PAYMENT" + "*" * 33 + "\n")
total_price = 0

report_new = "\n\n\n" + " " * 17 + "*" * 35 + "\n" + " " * 17 + "DATE: " +
str(datetime.datetime.now())[:19] + "\n" + " " * 17 + "-" * 35
i=0

while i < len(list_item_order):


if(list_item_order[i] != 0):

if (i >= 0) and (i < 40):


report_new += "\n" + " " * 17 + str(list_foods[i]) + " x " +
str(list_item_order[i])
print(" " * 17 + str(list_foods[i]) + " x " + str(list_item_order[i]))
total_price += list_item_price[i] * list_item_order[i]

28
if (i >= 40) and (i < 80):
report_new += "\n" + " " * 17 + str(list_drinks[i - 40]) + " x " +
str(list_item_order[i])
print(" " * 17 + str(list_drinks[i - 40]) + " x " +
str(list_item_order[i]))
total_price += list_item_price[i] * list_item_order[i]

if (i >= 80) and (i < 100):


report_new += "\n" + " " * 17 + str(list_services[i - 80])
print(" " * 17 + str(list_services[i - 80]))
total_price += list_item_price[i] * list_item_order[i]
i += 1
else:
i += 1

if total_price > var_discount_3:


total_price -= total_price * var_discount_3_rate
report_new += "\n" + " " * 17 + "-" * 35 + "\n" \
"" + " " * 17 + "DISCOUNT RATES: %"+
str(var_discount_3_rate * 100) + "\n" \
"" + " " * 17 + "DISCOUNT AMOUNTS: $ " + str(round(total_price
* var_discount_3_rate, 2)) + "\n" + " " * 17 + "_" * 35 + "\n" \
"" + " " * 17 + "TOTAL PRICES: $ " + str(round(total_price, 2))
+ "\n" + " " * 17 + "*" * 35
print(" " * 17 + "-" * 35 + "\n"
"" + " " * 17 + "DISCOUNT RATES: %"+
str(var_discount_3_rate * 100) + "\n"

29
"" + " " * 17 + "DISCOUNT AMOUNTS: $ " + str(round(total_price
* var_discount_3_rate, 2)) + "\n" + " " * 17 + "_" * 35 + "\n"
"" + " " * 17 + "TOTAL PRICES: $ " + str(round(total_price, 2)))

elif total_price > var_discount_2:


total_price -= total_price * var_discount_2_rate
report_new += "\n" + " " * 17 + "-" * 35 + "\n" \
"" + " " * 17 + "DISCOUNT RATES: %"+
str(var_discount_2_rate * 100) + "\n" \
"" + " " * 17 + "DISCOUNT AMOUNTS: $ " + str(round(total_price
* var_discount_2_rate, 2)) + "\n" + " " * 17 + "_" * 35 + "\n" \
"" + " " * 17 + "TOTAL PRICES: $ " + str(round(total_price, 2))
+ "\n" + " " * 17 + "*" * 35
print(" " * 17 + "-" * 35 + "\n"
"" + " " * 17 + "DISCOUNT RATES: %"+
str(var_discount_2_rate * 100) + "\n"
"" + " " * 17 + "DISCOUNT AMOUNTS: $ " + str(round(total_price
* var_discount_2_rate, 2)) + "\n" + " " * 17 + "_" * 35 + "\n"
"" + " " * 17 + "TOTAL PRICES: $ " + str(round(total_price, 2)))

elif total_price > var_discount_1:


total_price -= total_price * var_discount_1_rate
report_new += "\n" + " " * 17 + "-" * 35 + "\n" \
"" + " " * 17 + "DISCOUNT RATES: %"+
str(var_discount_1_rate * 100) + "\n" \
"" + " " * 17 + "DISCOUNT AMOUNTS: $ " + str(round(total_price
* var_discount_1_rate, 2)) + "\n" + " " * 17 + "_" * 35 + "\n" \
"" + " " * 17 + "TOTAL PRICES: $ " + str(round(total_price, 2))
+ "\n" + " " * 17 + "*" * 35

30
print(" " * 17 + "-" * 35 + "\n"
"" + " " * 17 + "DISCOUNT RATES: %"+
str(var_discount_1_rate * 100) + "\n"
"" + " " * 17 + "DISCOUNT AMOUNTS: $ " + str(round(total_price
* var_discount_1_rate, 2)) + "\n" + " " * 17 + "_" * 35 + "\n"
"" + " " * 17 + "TOTAL PRICES: $ " + str(round(total_price, 2)))

else:
report_new += "\n" + " " * 17 + "-" * 35 + "\n" + " " * 17 + "TOTAL
PRICES: $ " + str(round(total_price, 2)) + "\n" + " " * 17 + "*" * 35
print(" " * 17 + "_" * 35 + "\n" + " " * 17 + "TOTAL PRICES: $"+
str(round(total_price, 2)))

print("\n (P) PAY (M) MAIN MENU (R) REPORT (E)


EXIT\n" + "_" * 72)
input_1 = str(input("Please Select Your Operation: ")).upper()

if (input_1 == 'P'):
print("\n" * 10)
print("Successfully Paid!")
file_report = open('files'+navigator_symbol+'report.fsd', 'a')
file_report.write(report_new)
file_report.close()
def_default()

elif (input_1 == 'M'):


print("\n" * 10)
def_main()
break

31
elif (input_1 == 'R'):
print("\n" * 10)
def_report()
break

elif ('E' in input_1) or ('e' in input_1):


print("*" * 32 + "THANK YOU" + "*" * 31 + "\n")
break

else:
print("\n" * 10 + "ERROR: Invalid Input (" + str(input_1) + "). Try
again!")
def_main()

32
OUTPUT

33
34
35
36
37
SYSTEM REQUIREMENTS OF THE
PROJECT

RECOMMENDED SYSTEM REQUIREMENTS


Processors: Intel® Core™ i3 processor 4300M at 2.60 GHz.
Disk space: 2 to 4 GB.
Operating systems: Windows® 10, MACOS, and UBUNTU.
Python Versions: 3.X.X or Higher.

MINIMUM SYSTEM REQUIREMENTS


Processors: Intel Atom® processor or Intel® Core™ i3 processor.
Disk space: 1 GB.
Operating systems: Windows 7 or later, MACOS, and UBUNTU.
Python Versions: 2.7.X, 3.6.X.

PREREQUISITES BEFORE INSTALLING MYSQL CONNECTOR PYTHON


You need root or administrator privileges to perform the installation process.
Python must be installed on your machine.
Note: – MySQL Connector Python requires python to be in the system’s PATH.
Installation fails if it doesn’t find Python.
On Windows, If Python doesn’t exist in the system’s PATH, please manually add the
directory containing python.exe yourself.

38
BIBLIOGRAPHY
1. python.org
2. Code Academy
3.tutorialsPoint.com
4. PythonChallenge.com
5. Google’s Python Class
6. LearnPython.org
7. layak.in

39

You might also like