0% found this document useful (0 votes)
4 views14 pages

Cash Register Project

The document outlines exercises for a systems engineering course at Kuepa University, focusing on a cash register system. It includes modules for article management, payment processing, and ticket printing, along with execution commands and flow diagrams. Additionally, it provides a glossary of Python-related terms relevant to the project.
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)
4 views14 pages

Cash Register Project

The document outlines exercises for a systems engineering course at Kuepa University, focusing on a cash register system. It includes modules for article management, payment processing, and ticket printing, along with execution commands and flow diagrams. Additionally, it provides a glossary of Python-related terms relevant to the project.
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

KUEPA UNIVERSITY

Engineering degree in systems

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

2.2 Execution test.

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]))

3.2 Execution Test:

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.

If you want to publish a new product in the Collective Git repository


Plone needs to gain write access and follow the rules on github/collective.
You can also check it on the account at [Link].

If you want to publish a new product in the Subversion repository


Plone Collective needs to obtain write access to the repository and create its.
basic repository structure for your product, you can also consult it via
Web, please consult the following link.
ZCML Declaration
The concrete use of a ZCML directive within a ZCML file.
ZCML Directive
A ZCML "tag" like <include /> or <utility />.
Egg
View Egg packages.
skeleton
The files and folders recreated by a user who generated them by executing
some template templer (PasteScript).
structure
1) A Python class that controls the generation of a folder tree that
contains files.

2) A unit of folders and files provided by the templer system to be


used in a template or templates. The structures provide static resources
shared, which can be used by any package in the system of
templar.

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.

The setuptools tool <what_is_setuptools> is the Python library that


it allows the use of the egg package mechanism, it is able to find and
automatically download the dependencies of the Egg packages that are installed.

It is even possible that two different Egg packages need to use


simultaneously different versions of the same dependency. The format of
Eggs packages also support a feature called entry points, a kind of
generic plug-in mechanism. Much more detail on this topic can be found
available on the PEAK website.

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].

2) The files and folders provided in a template package as content to be


generated. The responses provided by a user in response to the
variables are used to fill in the placeholders in this content.

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.

This allows you to easily install Python packages, it is often


enough to write:

python [Link] install


Then the Python module will be installed.

You might also like