0% found this document useful (0 votes)
11 views21 pages

ELECTRICITEA

The document describes a simple purchasing program for ordering milk tea drinks. The program allows customers to select their milk tea flavor, sugar level, size, and any add-ons. It then calculates and displays the total price including VAT. The programming language used is Python, with variables defined for the menu items, sizes, sugar levels, and add-ons. Conditional statements and loops are used to navigate the user through the ordering process and perform calculations. The purpose is to assist milk tea business owners and customers with an easy digital ordering system.
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)
11 views21 pages

ELECTRICITEA

The document describes a simple purchasing program for ordering milk tea drinks. The program allows customers to select their milk tea flavor, sugar level, size, and any add-ons. It then calculates and displays the total price including VAT. The programming language used is Python, with variables defined for the menu items, sizes, sugar levels, and add-ons. Conditional statements and loops are used to navigate the user through the ordering process and perform calculations. The purpose is to assist milk tea business owners and customers with an easy digital ordering system.
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
You are on page 1/ 21

Simple Purchasing Program for ElectriciTEA

Calumpang, Jean Karl V.

Carandang, Carmela M.

Huelgas, Ram Kenneth P.

Pascua, Joshua Gerard B.


The system that was developed is Purchasing. It utilizes the mechanics of

ordering and buying milk teas. This program has included the menu and has the option

to order the desired drink of the customer.

A. BACKGROUND OF THE STUDY

The Milk Tea industry has been prevalent in the Philippines. With its’ sweet,

and refreshing taste, the Philippines made the drink an everyday feel-good staple.

(Philippine Inquirer, 2020). With the popularity of the Milk Tea industry, the company

“Electricitea” decided to reach the proponents to create a system that would benefit

the companies’ Milk Tea Business. The system that the researchers made was a

purchasing system, specifically for ordering Milk Tea.

The purchasing system shows the menu and will ask the name of the

customer, what Milk Tea the customer wants, the sugar level, add-ons, and shows

the total price with the VAT of 12%. The researchers used Python as the

programming language. Utilizing variables, Conditional Statements, Operators,

Loops, and Functions in the source code, ensures a functioning code that is easy to

use and understand.

B. PURPOSE

The purpose of this study was to assist consumers of milk tea by

developing a program that will help them order their desired drink. Its system was

designed for purchasing. It's focused on providing the consumer's options on

flavors, sugar levels, and add-ons. At the end of the selection, the program will

automatically show the cost upon ordering.


C. SIGNIFICANCE OF THE STUDY

The study aims to become a part of the changing and developing

economy with the world with the help of programming. Each country aims to

become better in all aspects of society. This research will contribute not only to

the Philippines’ development but also give a share to neighboring countries.

Milk tea shops are one of the best businesses to start with. The

Philippines positions second in Southeast Asia for the most number of milk tea

consumers since it's hot and lasting through the year, milk tea, shakes, and

jazzed drinks are requested every day to keep cool while working and learning at

home. Furthermore, the beverages are quick and simple to plan. Individuals can

begin this private company even with practically zero insight. There are even

providers and establishments accessible, so there is a compelling reason need to

begin a business without any preparation (Prosperna, 2022). Technology is one

of the easiest and most professional ways to handle a business successfully.

Coding can assist in exhibiting one's imagination on the web. For instance, with

coding information can make online sites or complex sites and modify them to

make your own as opposed to utilizing previous layouts. This can be an

incredible method for assisting people with standing apart while planning an

internet-based portfolio or for making areas of strength for a personality for one’s

image as a hopeful entrepreneur. Likewise, it can open up numerous potential

open doors for additional imaginative fields, like visual depiction, web, or

application improvement (FDM, 2021). Nowadays fewer papers are used


because things aren’t done manually or mechanically today, most are done

electronically and that’s good because it could save a lot of papers. With

programming, digitally it could compute things without the need to use

calculators, ball pens, or anything. According to Dale Stokdyk (2021) of Southern

New Hampshire University programming sticks to best practices in execution,

dependability, and security. Programming makes it possible to create portable

applications, coding computer games, programming sites, and significantly more.

This would contribute a lot to Milk Tea businesses. The proponents chose to start

a Milk Tea business for it is possible to project a positive cash flow statement with

the help of programming, and it could also support neighboring businesses not

only for the Milk Tea business but also for other ideas of businesses besides a

Milk Tea business, discussing the importance of programming, its benefits, and

contribute to the country’s economic progress.

D. PROGRAMMING LANGUAGE

The programming language used is Python. Considered one of the easiest

programming languages, it is easy to learn, but it would still take time and problems

may still happen (Data Quest, 2020). Python can be used in creating websites,

software, data analysis, and automating tasks. Due to Python being a

general-purpose language, it can be used to create diverse programs and is not

specialized for specific problems (Coursera, 2022). Variables, Conditional

Statements, Operators, Loops, and Functions are used in order to create the system.

E. VARIABLES
According to TechTarget Contributor (2022), a variable is a value in

programming that may vary depending on conditions or data given to the

program. A program is typically made up of instructions that tell the computer

what to perform and the data that the program utilizes while executing. Variable

values (which are normally initialized to "0" or some default value since a

program's user will give the real values) and constants (which never change)

make up the data. Constants and variables are usually specified as specific data

types. Each data type specifies and restricts the data's format. An integer

represented as a decimal number or a string of text characters, generally limited

in length, are examples of data types.

The following is the exact list of variables that is all included in the Milktea

Ordering System:

('MILK TEA REGULAR LARGE')


('Classic Milktea 75 90')
('Wintermelon 75 90')
('Hokkaido 75 90')
('Black Pearl Milktea 75 90')
('Matcha Milktea 75 90')
('Vanilla Milktea 75 90')
('Taro Milktea 75 90')

sugarlevels = (‘100%’, ‘75%’, 25%’, ‘0%’)

sizes = (‘Regular’, ‘Large’)

addons = (‘Black Pearl’, ‘Cream Cheese’, ‘Coconut Gel’, ‘Cheesecake’)

F. CONDITIONAL STATEMENTS
The conditional statements used are the “if” and “elif” statements. These

conditional statements are based on boolean values, True and False. It allows for

decision-making to happen. In order for a decision to be created, the if and elif

statements analyze a certain variable. The value of these variables depends on

the user which is made possible using the “input()” function.

G. OPERATORS

orderprice = (pricesize + addonsprice)+ addonsextraprice

VatPrice = (orderprice)* VAT

totalprice = (orderprice + VatPrice)

H. LOOPS

According to TechTarget Contributor (2022), a loop is a set of instructions

that is repeatedly executed until a given condition is met in computer

programming. Typically, a process is carried out, such as retrieving and altering

data, and then a condition is verified, such as whether a counter has reached a

certain value.

The following is the exact list of loops that are all included in the Milktea
Ordering System:

while True:
name = str(input('Hello! What is your name?'))
answer = str(input('May I take your order, please?'))
if answer =='Yes'or answer == 'yes':
order = str(input('What is your order?'))
if order == 'Classic Milktea'or order == 'Classic':
order = 'Classic Milktea'
if order == 'Wintermelon'or order == 'wintermelon':
order = 'Wintermelon'
if order == 'Hokkaido'or order == 'hokkaido':
order = 'Hokkaido'
if order == 'Black Pearl Milktea'or order == 'black pearl':
order = 'Black Pearl Milktea'
if order == 'Matcha Milktea'or order == 'matcha':
order = 'Matcha Milktea'
if order == 'Vanilla Milktea'or order == 'vanilla':
order = 'Vanilla Milktea'
if order == 'Taro Milktea':
order = 'Taro Milktea’
if answer == 'No'or answer == 'no':
sugarlevel = str(input('What is your drinks sugar level?'))
size = str(input('What size do you prefer?'))
if size == 'Regular'or size == 'regular':
size = 'Regular'
pricesize = 75
if size == 'Large'or size == 'large':
size = 'Large'
pricesize = 90
addons = str(input('Would you like some add-ons?'))
if addons == 'Yes'or addons == 'yes':
choiceaddons = str(input('What add-ons would you like to be added in your
Milktea?'))
if choiceaddons == 'Black Pearl'or choiceaddons == 'black pearl':
choiceaddons = 'Black Pearl'
addonsprice = 10
if choiceaddons == 'Cream Cheese'or choiceaddons == 'creamcheese':
choiceaddons = 'Creamcheese'
addonsprice = 25
if choiceaddons == 'Coconut Gel'or choiceaddons == 'coconut gel':
choiceaddons = 'Coconut Gel'
addonsprice = 10
if choiceaddons == 'Cheesecake'or choiceaddons == 'cheesecake':
choiceaddons = 'Cheesecake'
addonsprice = 30
addonsextra = str(input('Would you like to add more?'))
if addonsextra == 'Yes'or addonsextra == 'yes':
choiceaddonsextra = str(input('What add-ons would you like to be added in
your Milktea?'))
if choiceaddonsextra == 'Black Pearl'or choiceaddonsextra == 'black pearl':
addonsextra = 'Black Pearl'
addonsextraprice = 10
if choiceaddonsextra == 'Cream Cheese'or choiceaddonsextra == 'cream
cheese':
addonsextra = 'Cream Cheese'
addonsextraprice = 25
if choiceaddonsextra == 'Coconut Gel'or choiceaddonsextra == 'coconut gel':
addonsextra = 'Coconut Gel'
addonsextraprice = 10
if choiceaddonsextra == 'Cheesecake'or choiceaddonsextra == 'cheesecake':
addonsextra = 'Cheesecake'
addonsextraprice = 30
if addonsextra == 'No'or addonsextra == 'no':
addonsextra = 'No extra'
addonsextraprice = 0
print('okay sir/mam')
if addons == 'No'or addons == 'no':
choiceaddons = ('No addons')
addonsprice = 0
print('Okay sir/mam')

I. FUNCTIONS - Ram Huelgas

The function that was used in the program is:

def receipt(name):

orderprice = (pricesize + addonsprice)+ addonsextraprice

VAT = .12

VatPrice = (orderprice)* VAT

totalprice = (orderprice + VatPrice)

print('Hello', name,'your order is', order, 'sugar level',

sugarlevel,'with',choiceaddons,'and',addonsextra)

print('The totalprice of your order is', totalprice )

print('with value added tax of', VatPrice)


receipt(name)

J. SOURCE CODE - Karl Calumpang

print(' ELECTRICITEA')
print('-----------------------------------------------')
print ('Menu: ')
print ('MILKTEA REGULAR LARGE')
print ('Classic Milktea 75 90')
print ('Wintermelon 75 90')
print ('Hokkaido 75 90')
print ('Black Pearl Milktea 75 90')
print ('Matcha Milktea 75 90')
print ('Vanilla Milktea 75 90')
print ('Taro Milktea 75 90')
print('-----------------------------------------------')
print('SUGAR LEVELS:')
print('100%')
print('75%')
print('50%')
print('25%')
print('0%')
print('-----------------------------------------------')
print('Sizes:')
print('Regular')
print('Large')
print('-----------------------------------------------')
print('Add-ons price')
print('Black Pearl 10')
print('Cream Cheese 25')
print('Coconut Gel 10')
print('Cheesecake 30')
print('-----------------------------------------------')

print("")

while True:
name = str(input('Hello! What is your name?'))

answer = str(input('May I take your order, please?'))


if answer =='Yes'or answer == 'yes':

order = str(input('What is your order?'))


if order == 'Classic Milktea'or order == 'Classic':
order = 'Classic Milktea'
if order == 'Wintermelon'or order == 'wintermelon':
order = 'Wintermelon'
if order == 'Hokkaido'or order == 'hokkaido':
order = 'Hokkaido'
if order == 'Black Pearl Milktea'or order == 'black pearl':
order = 'Black Pearl Milktea'
if order == 'Matcha Milktea'or order == 'matcha':
order = 'Matcha Milktea'
if order == 'Vanilla Milktea'or order == 'vanilla':
order = 'Vanilla Milktea'
if order == 'Taro Milktea':
order = 'Taro Milktea'
print('Have a good day!!!
break
😊
if answer == 'No'or answer == 'no':
')

sugarlevel = str(input('What is your drinks sugar level?'))

size = str(input('What size do you prefer?'))


if size == 'Regular'or size == 'regular':
size = 'Regular'
pricesize = 75
if size == 'Large'or size == 'large':
size = 'Large'
pricesize = 90

addons = str(input('Would you like some add-ons?'))


if addons == 'Yes'or addons == 'yes':
choiceaddons = str(input('What add-ons would you like to be added in your Milktea?'))
if choiceaddons == 'Black Pearl'or choiceaddons == 'black pearl':
choiceaddons = 'Black Pearl'
addonsprice = 10
if choiceaddons == 'Cream Cheese'or choiceaddons == 'creamcheese':
choiceaddons = 'Creamcheese'
addonsprice = 25
if choiceaddons == 'Coconut Gel'or choiceaddons == 'coconut gel':
choiceaddons = 'Coconut Gel'
addonsprice = 10
if choiceaddons == 'Cheesecake'or choiceaddons == 'cheesecake':
choiceaddons = 'Cheesecake'
addonsprice = 30

addonsextra = str(input('Would you like to add more?'))


if addonsextra == 'Yes'or addonsextra == 'yes':
choiceaddonsextra = str(input('What add-ons would you like to be added in your Milktea?'))
if choiceaddonsextra == 'Black Pearl'or choiceaddonsextra == 'black pearl':
addonsextra = 'Black Pearl'
addonsextraprice = 10
if choiceaddonsextra == 'Cream Cheese'or choiceaddonsextra == 'cream cheese':
addonsextra = 'Cream Cheese'
addonsextraprice = 25
if choiceaddonsextra == 'Coconut Gel'or choiceaddonsextra == 'coconut gel':
addonsextra = 'Coconut Gel'
addonsextraprice = 10
if choiceaddonsextra == 'Cheesecake'or choiceaddonsextra == 'cheesecake':
addonsextra = 'Cheesecake'
addonsextraprice = 30
if addonsextra == 'No'or addonsextra == 'no':
addonsextra = 'No extra'
addonsextraprice = 0
print('okay sir/mam')

if addons == 'No'or addons == 'no':


choiceaddons = ('No addons')
addonsprice = 0
addonsextraprice = 0
print('Okay sir/mam')

def receipt(name):
orderprice = (pricesize + addonsprice)+ addonsextraprice
VAT = .12
VatPrice = (orderprice)* VAT
totalprice = (orderprice + VatPrice)
print('Hello', name,'your order is', order, 'sugar level', sugarlevel,'with',choiceaddons,'and',addonsextraprice)
print('The totalprice of your order is', totalprice )
print('with value added tax of', VatPrice)

receipt(name)

greet = str(input('Have a nice day!'))


if greet == 'Thank You'or greet == 'thank you':
break

K. SCREENSHOTS
L. PROGRAMMERS' PROFILE
REFERENCES (use APA 7th Edition Reference Style)

1. Custer, C. (2020, October 1). How Long Does It Take to Learn Python?

Dataquest. https://www.dataquest.io/blog/how-long-does-it-take-to-learn-python/

2. FDM (2021, July 7). 7 Benefits of Learning to Code.

https://www.fdmgroup.com/7-benefits-of-learning-to-code/

3. Milk Tea Madness, Equilibrium Offers Tea-Rrific Discounts for July. (2020, July

10). Inquirer.

https://business.inquirer.net/302191/milk-tea-madness-equilibrium-offers-tea-rrific

-discounts-for-july

4. Prosperna (2022, January 16). 17 eCommerce Business in the Philippines to

Start in 2022

https://prosperna.com/17-ecommerce-business-in-the-philippines-to-start/

5. Stokdyk, D. (2021, April 6). What Do Programmers Do, Anyway?. Southern New

Hampshire University.

https://www.snhu.edu/about-us/newsroom/stem/what-do-programmers-do

6. TechTarget Contributor. (2022). Loop. WhatIs.com

https://www.techtarget.com/whatis/definition/loop#:~:text=In%20computer%20pro

gramming%2C%20a%20loop,has%20reached%20a%20prescribed%20number.

7. TechTarget Contributor. (2022). Variable. WhatIs.com

https://www.techtarget.com/whatis/definition/variable#:~:text=In%20programming

%2C%20a%20variable%20is,uses%20when%20it%20is%20running.
8. What Is Python Used For? A Beginner’s Guide. (2022, March 27). Coursera.

https://www.coursera.org/articles/what-is-python-used-for-a-beginners-guide-to-u

sing-python

You might also like