Cash Register Project
Cash Register Project
Algorithms
Week 3 exercises.
cash register
Professor:
Francisco García
I elaborate:
Francisco Joel Huerta Hernández
Objective 1.
Basic module for articles
1.1 Execution Command:
Gorditas Don Paquiño
A1 - GORDITA DE SUADERO
A2 - ALPASTOR GORDITA
A3 - SOFT TORTILLA WITH CHEESE
A4 - ALPASTOR GORDITA WITH CHEESE
A5 - TEPACHE
7. print("A6 - COCA COLA")
A7 - HORCHATA WATER
9. print("A8 - BEER")
[Link]("F12 - COLLECT [EXIT]")
[Link]("F11 - RESET CASH REGISTER")
[Link]={
13."A1": 22.00,
14."A2": 28.00,
15."A3": 35.00,
16."A4": 41.00,
17."A5": 25.00,
18."A6": 22.00,
19."A7": 25.00,
20."A8": 35.00,
21.
[Link]: 0.00
[Link] 1==1:
[Link]=input("ingresa codigo->")
[Link] code=="F11":
[Link]=0.00
[Link]("total reset")
28. elif code == 'F12':
[Link]
[Link]:
[Link] = [Link](code, "not found")
1.2 Execution Test.
Descripción:
For this execution code, an attempt is made to compile information from the provided articles.
generated a kind of 'database' to be able to store the inserted values.
1.3 Flow Diagram.
Objective 2.
Payment Module.
2.1 Execution Command.
1 print("CHARGE")
2 total=float(input("Please enter the amount to "))pay:"))
3 print("payment methods")
4 print("A - Cash")
5 print("B - credit/debit card/n")
6 fp=input("Enter the payment method:")
7 if fp == "A":
8 payment=float(input("Enter cash: "))
9 change=payment-total
10 print("Your change is: " + str(change))
11 elif fp == "B":
12 tarjeta=input ("ingrese numero de tarjeta:")
13 pin = input("Enter PIN:")
14 print("it has charged" + str(total) + " pesos from your card")
15 else:
PAYMENT METHOD
Description:
For this module, the aim is to create a payment method in the system that can provide change.
moment to insert cash or alternatively enter PIN in case of credit card.
2.3 Flow Diagram
Objective 3.
Ticket Printing Module.
3.1 Execution Command:
Created by: Francisco Joel Huerta Hernandez
Please enter the product name and its price
3. list=[]
4. while 1:
5. Entrada=input("Producto:")
if Input == "end":
7. break
8. [Link](entry)
9. size=len(list)
[Link]("Product: " + str(size))
11. for i in range(size):
[Link](str(list[i]))
Description:
For this execution code, previously seen tools are used to denote the creator, to give a
input and process the quantity of referred products.
3.3 Flow Diagram
Python Glossary.
buildout
In the buildout tool, it is a set of parts that describes how
assemble an application.
bundle
View bundle package.
Catalog
Sinónimo en Ingles del termino Catálogo.
Catalog
It is an internal index of the contents within Plone so that they can be searched.
The goal of the catalog is to be accessible through the ZMI through the
tool portal_catalog.
Cheese shop
See PyPI.
Collective
It is a community code repository for Plone products and products of
third parties, and it is a very useful site to search for the latest version of source code of
product for hundreds of third-party products to Plone. The developers of
new Plone products are encouraged to share their code through
Collective so that others can find it, use it, and contribute with corrections.
improvements.
Currently, the community offers two repositories: one based on Git and
another Subversion.
Structures differ from templates in that they do not provide the vars.
filesystem
English term File system, referred to the file system of the operating system.
Workflow
It is a very powerful way to mimic the business processes of your organization,
it is also the way in which the security configuration of Plone is handled.
Workflow
Workflows
understand deeply
See the documentation of the grok project.
Zope installation
The software of the application server.
Zope instance
A specific directory that contains a complete server configuration
Zope.
local command
A Paste class that provides additional functionality to a structure of
project skeleton that has been generated.
module
From Ingles module, it is a Python source file; a file in the system of
file that typically ends with the .py or .pyc extension. Modules are part
from a package.
Python point name
It is the Python representation of the 'path' for a certain object/module/
function, for example, [Link]. Often it
use Paste and setuptools as a reference in Python configurations.
package
View Python Package.
bundle package
This package consisted of a compressed file with all the modules that are
It is necessary to compile or install in the PYTHONPATH of your Python interpreter.
Egg package
It is a way to package and distribute Python packages. Each Egg contains a
[Link] file with metadata (such as the author's name and email)
information about the licensing), such as the package dependencies.
Python package
It is a term generally used to describe a Python module.
basic level, a package is a directory that contains a __init__.py file and
some Python code.
Egg packages
Plural of the term Egg package.
Python packages
Python Packages
part
In the buildout tool, it is a set of options that allows you to
build a piece of the application.
template
1) A Python class that controls the generation of a skeleton. The templates
contains a list of variables to obtain a user's response. The
templates are executed with the templer command providing the name of the
template as an argument templer basic_namespace [Link].
Product
It is a terminology used by the Zope / Plone community associated with any
implementation of modules / plugins and add-ons that expand the
default functionality offered by Zope / Plone. They are also known as
Third-Party Products
Plone Product
It is a special type of Zope package used to extend the functionalities of
Plone. It can be said that they are products whose area of use is only in the
from the graphical interface of Plone.
Zope Product
It is a special type of Python package used to extend Zope. In the old
versions of Zope, all products were folders that are located within a
special folder called Products from a Zope instance; these would have a
Python module names that start with 'Products.'. For example, the core
from Plone, there is a product called CMFPlone, known in Python as
[Link].
These types of products are available from the Zope administrative interface.
(ZMI) from your installation where they must access with the user's credentials.
Zope Administrator. Many times the product simply does not need to
install it because it will be added automatically.
Products
Plural of the term Product.
Plone Products
Plural of the term Plone Product.
Zope Products
Plural of the term Zope Product.
profile
A 'default' setting of a site, which is defined in the system of
files or in a tar file.
PyPI
The acronym for the term in English Python Package Index is the central server for
Python Egg packages located at the address [Link]
Python Package Index
See PyPI.
PYTHONPATH
A list of directory names that contains Python libraries, with the same
syntax like the PATH declarative of the operating system shell.
recipe
In the buildout tool, it is the software used to create parts of a
installation based on your options. For more information, see the article Recipes
Buildout.
[Link]
The [Link] file is a Python module, which generally indicates that the
module / package that is about to be installed has been packaged and distributed with
Distutils, which is the standard for the distribution of Python modules.