Documentos de Académico
Documentos de Profesional
Documentos de Cultura
PIA - Equipo9 2.0
PIA - Equipo9 2.0
Como primera opción permite al usuario elegir y entre 4 tipos de pizzas diferentes en las que se encuentran a su vez
distintos tamaños y precios respectivamente y un servicio extra, al final se debe mostrar en pantalla el total a pagar y
preguntar al usuario si desea continuar con las ventas o hacer un corte de caja que muestre el total de ventas en el día.
Como segunda opción tenemos el autolavado en donde podemos escoger 3 tipos de tamaños diferentes para lavar
nuestro carro ya sea chico, mediano o grande que tendrán un costo fijo y posteriormente se le preguntara al usuario si
desea agregar un servicio extra que puede ir desde un lavado interior hasta un pulido o lijado del coche. Al finalizar
mostrara en pantalla el total a pagar entre el tipo de lavado y los servicios extras elegidos y se le preguntara al usuario
si desea continuar con las ventas o hacer un corte de caja que muestre el total de ventas, tal como en la pizzeria
Como última opción saldrá del programa agradeciendo al usuario el uso de este. Un programa un tanto sencillo, pero
sin duda útil para llevar un control de nuestro negocio.
Propósito (Objetivo y especificaciones) (ANECA 2.1)
En este Pia fue proyectado de la mejor manera un programa para aportar lo que es, que fueron de un autolavado y
una pizzería con su servicio de cambia de programa igualmente.
El programa fue hecho con la idea de que sea presentable, manejando así los programas, así también observando la
forma que se podrá manejar al pedir los servicios que este nos ofrece .
Diagrama de flujo en PSEINT (imágenes de lo general a lo particular). (ANECA
2.1)
DIAGRAMA AUTOLAVADO
DIAGRAMA PIZZERIA
DIAGRAMA MENÚ
Identificación y explicación del código.
Menú
#Menú
from os import system
from time import sleep
from MyModule import validar_numero
if respuesta == 1:
print("Abriendo Autolavado. Por favor espere\n")
sleep(1.5)
system('python autolavado.py')
elif respuesta == 2:
print("Abriendo Pizzeria. Por favor espere\n")
sleep(1.5)
system('python Pizzeria.py')
elif respuesta == 3:
print("Cerrando Programa. Adiós......")
Código del programa. Modulo MyModule.
#Modulo
def validar_numero(numero=""):
if numero == "":
print("no se a asignado un valor para evaluar.")
else:
while numero.isnumeric() == False:
print(numero, "no es un numero. Por favor, escribe uno de las
opciones de la lista.")
numero = input()
else:
numero = int(numero)
return numero
Código del programa. Autolavado.
servicio = 0
if a == 1:
servicio = servicio + 300
if a == 2:
servicio = servicio + 250
if a == 3:
servicio = servicio + 100
if a == 4:
servicio = servicio + 200
if a == 5:
servicio = servicio + 300
if a == 6:
servicio = servicio + 350
if a == 7:
servicio = servicio + 400
if a == 8:
servicio = servicio + 350
if a == 9:
servicio = servicio + 400
if a == 10:
servicio = servicio + 400
print ("Hay otro servicio? [Presione 1 para si o 2 para no]")
R2 = input()
R2 = validar_numero(R2)
while R2 == 1:
print ("¿Qué servicio quiere implementar?")
a = input()
a = validar_numero(a)
if a == 1: En esta parte del código pregunta al usuario
servicio = servicio + 300 si desea agregar algún otro servicio
if a == 2: adicional al escogido
servicio = servicio + 250
if a == 3:
servicio = servicio + 100
if a == 4:
servicio = servicio + 200
if a == 5:
servicio = servicio + 300
if a == 6:
servicio = servicio + 350
if a == 7:
servicio = servicio + 400
if a == 8:
servicio = servicio + 350
if a == 9:
servicio = servicio + 400
if a == 10:
servicio = servicio + 400
print ("Hay otro servicio? [Poner 1 para si o 2 para no]")
R2 = input()
R2 = validar_numero(R2)
if R2 == 2:
total = servicio + x
print ("\n~~~ SUB TOTALES ~~~")
print (f"\nPRECIO DE AUTOMOVIL --> ${x}")
print (f"PRECIO DEL SERVICIO ADICIONAL --> ${servicio}")
print (f"EL TOTAL A PAGAR: --> ${total}")
Ventas_Dia = Ventas_Dia + total
print("Desea continuar con las ventas [Presione '1'] o hacer corte [Presione
'2']?")
corte = input() Para finalizar con el código del autolavado
pregunta al usuario si desea continuar con
corte = validar_numero(corte)
las ventas o realizar un corte de caja para
ver las ventas totales del día.
print ("\n~~~ CORTE DE VENTA ~~~")
print(f"\nTotal de ventas del día: ${Ventas_Dia} ")
Código del programa. Pizzeria
#Jenni
from MyModule import validar_numero
corte = 1
Ventas_Dia = 0
while corte == 1:
print ("PIZZAS DISPONIBLES \n[Presione 1] Capricciosa Mediana --> $150\n
[Presione 2] Capricciosa Grande --> $200\n [Presione 3] Italiana Mediana -->
$180\n [Presione 4] Italiana Grande --> $220\n")
print ("[Presione 5] Romana Mediana --> $175 \n [Presione 6] Romana Grande
--> $225\n [Presione 7] Rústica Mediana--> $185\n [Presione 8] Rústica Grande --
> $205")
print ("\n^^ ELIJA ALGUNA PIZZA DE NUESTRO RESTAURANTE ^^\n \n¿Qué pizza
desea ordenar?")
a = input()
a = validar_numero(a)
De la misma forma que en el código
servicio = 0 anterior, ahora en la pizzeria da al usuario
if a == 1: la opción de elegir entre los 4 tipos de
servicio = servicio + 150 pizzas y tamaños diferentes mediante un if
if a == 2: y preguntado si desea agregar un servicio
extra
servicio = servicio + 200
if a == 3:
servicio = servicio + 180
if a == 4:
servicio = servicio + 220
if a == 5:
servicio = servicio + 175
if a == 6:
servicio = servicio + 225
if a == 7:
servicio = servicio + 185
if a == 8:
servicio = servicio + 205
x = 0
print("Quieres queso extra? costo adicional $20\n [Presione 1 para si o 2
para no]")
b = input()
b = validar_numero(b)
if b == 1:
x = x + 20
print ("Desea ordenar otra pizza? [Presione 1 para si o 2 para no]")
R2 = input()
R2 = validar_numero(R2)
while R2 == 1:
print ("Escoge una pizza de nuestro menú")
a = int(input())
if a == 1: A su vez, pregunta al usuario si va a ordenar
servicio = servicio + 150 otra pizza del menú establecido
if a == 2:
servicio = servicio + 200
if a == 3:
servicio = servicio + 180
if a == 4:
servicio = servicio + 220
if a == 5:
servicio = servicio + 175
if a == 6:
servicio = servicio + 225
if a == 7:
servicio = servicio + 185
if a == 8:
servicio = servicio + 205
print("Quieres queso extra? costo adicional $20\n [Presione 1 para si o
2 para no]")
b = input()
b = validar_numero(b)
if b == 1:
x = x + 20
print ("Desea ordenar otra pizza? [Presione 1 para si o 2 para no]")
R2 = input()
R2 = validar_numero(R2) Al finalizar con la orden, da el total a pagar
por los pedidos realizados incluyendo los
if R2 == 2: servicios extras
total = servicio + x
print ("\n~~~ SUB TOTALES ~~~")
print (f"\nPRECIO DEL AÑADIDOS EXTRAS --> ${x}")
print (f"PECIO DE LAS PIZZAS --> ${servicio}")
print (f"EL TOTAL A PAGAR: --> ${total}")
Ventas_Dia = Ventas_Dia + total
print("Desea continuar con las ventas [Presione '1'] o hacer corte [Presione
'2']?")
corte = input() Para finalizar, pregunta al usuario si desea
corte = validar_numero(corte) realizar mas ventas o hacer un corte de caja
para ver el total de ventas en el dia
print ("\n~~~ CORTE DE VENTA ~~~")
print(f"\nTotal de ventas del día: ${Ventas_Dia} ")
imágenes de Ejecución:
Menú.
Opción 1
Opción 2
Opción 3
Autolavado.
Pizzeria.
Conclusiones individuales (ANECA 5.5)
-Jennifer Nallely Martinez Arriaga
En este pía se realizó una manera más organizada de ya que de una forma obteníamos un tipo de sistema
para obtener orden, ya como lo es para entrar a cualquiera de los dos programas, en este vimos las
diferentes formas de realizarlo. Como se compone o agregar opciones para realizar un sistema si se podría
decir para facilitar de forma que sea organizada, aunque algunos fueron complicados como lo es al usar en
forma de que tal información sea secundaria, la manera que me refiero es al tener que darlo como algo
aparte o que sea distinto a los demás al dar otro tipo como lo fue en el autolavado, en donde se podría
decir que se enfocaron de manera en las cosas extras así agregando también la cantidad de cada uno y
sumando cada servicio. Como en la pizza fue un poco distintos ya que era más del tamaño de la pizza que
era mediana o grande y también al agregarle si quería algo como en el autolavado pero fue otra cosa
pequeña. Algunas cosas resultaron un poco complicadas en mi opinión, trate de entender pero me trababa
en algunas, ya que existen variedad al comprender el lenguaje si se podria decir.
In this pia a more organized way was carried out since in a way we obtained a type of system to obtain order,
since it is to enter any of the two programs, in this we saw the different ways to carry it out. How do you
compose or add options to make a system if you could say to facilitate in a way that is organized, although
some were complicated as it is to use in a way that such information is secondary, the way I mean is to have
to give it as something apart or that is different from the others to give another kind as it was in the car wash,
Where it could be said that they focused so much on extra things as well as adding up the amount of each
and adding up each service. As in the pizza it was a little different as it was more than the size of the pizza
which was medium or large and also when I added it if I wanted something like in the car wash but it was
another small thing. Some things were a bit complicated in my opinion.
In this PIA we put into practice everything we saw in this semester of programs in Python and PSeInt and as
to drive we made two programs with their menu and we applied everything we learned and to learn since
many things we added were not completely clear in class but further investigation on websites and videos we
had the knowledge of it. All the topics that we applied in this project were based to continue learning little by
little about the programming topic that in the future we will be able to apply to other types of projects in the
labor field. The doubts I had at the beginning, I was clarifying the course as the classes passed this
semester, also researching Internet sources, and thanks to this we had the facility to make these programs
more complete. Each doubt was concluded due to the great knowledge that we had in this semester and that
we were able to investigate in depth thanks to the sources of knowledge. We hope that this project has been
to your liking and that soon we will be able to have a better approach in the next semester and it will not be
so complicated for us to manipulate this type of programs.
During the realization of this PIA I managed to put into practice everything seen throughout the
semester and in turn relying on websites for
both in PSeInt and Python, performing in the best possible way what is required using different
functions, relationships, etc.
Concluding this activity in such a way that it helped me to reinforce my knowledge about the
subject.
During the realization of this PIA we present some complications which we correct working in the
best way
All this helping to clear doubts contributing to our academic training that will help us in the future to
enter a work environment.
Conclusión general. (ANECA 5.5)
En esta PIA fue hecho de manera que al entrar te diera el menú de ingresar a los
dos programas que se realizaron, trabajamos en dos actividades en donde se
debía realizar que en cada uno obtenga la cantidad de dinero así ya sea con las
opciones que serían de distintas formas, como el tipo o agregando un servicio de
más, en este pía se vieron lo que es en un autolavado y una pizzería así dando los
diferentes servicios, ya sea como el tipo de auto y servicios extra como lo era L.
Alfombra, tapicería, Lavado, Encerado, lijado, Pulido. Así también sumando por
cada servicio tiene diferente precio o costo, en este ejercicio se fue más por el
lado de extras en donde nos mostraba las diferentes etapas. En cambio, lo que fue
en la pizzería fue un menú en donde se dividían lo que es por su tamaño definía el
costo como también el tipo de pizza que pedían, así también agregando la opción
de queso extra ya si el cliente quería se agregaba a su cuenta así obteniendo su
total a pagar.
In this pia was made so that when you enter the menu to enter the two programs
that were held, we worked on two activities where you should make each get the
amount of money so either with the options that would be different ways, such as
the type or adding a service extra, in this pia saw what is in a car wash and a
pizzeria thus giving the different services, either as the type of car and extra
services as was l. carpet. Tapestry, washing, waxing, sanding, polishing. So also
adding for each service has different price or cost, in this exercise we went more
by the side of extras where we showed the different stages. Instead, what was in
the pizzeria was a menu where they divided what is by its size defined the cost as
well as the type of pizza they ordered, thus also adding the option of extra cheese
and if the customer wanted it was added to their account thus obtaining their total
to pay.
Bibliografías.
El Tío Tech. (2019, 19 de
junio). Como crear un índice automático en Word con numeración de títulos. 2019 [Video].
YouTube. https://www.youtube.com/watch?v=UVLzhfYF5dg
• Honestidad
Estrecha relación con los principios de verdad y justicia y con la integridad moral.Una persona
honesta es aquella que procura siempre anteponer la verdad en sus pensamientos, expresiones y
acciones.
• Justicia
Principio moral de cada individuo que decide vivir dando a cada quien lo que le corresponde o
pertenece
• Responsabilidad
Capacidad de medir e identificar las consecuencias de un determinado hecho llevado a cabo en
plena conciencia y libertad.