Answered step by step
Verified Expert Solution
Link Copied!
Question
1 Approved Answer

A receipt printed out in Python programming I have been trying to do it but it gives me an error for some reason and I'm

A receipt printed out in Python programming I have been trying to do it but it gives me an error for some reason and I'm at a loss. 

Here is the code Im using :

producto1 = input("Entre producto 1: ")

producto2 = input("Entre producto 2: ")

producto3 = input("Entre producto 3: ")

producto4 = input("Entre producto 4: ")

producto5 = input("Entre producto 5: ")

a = "$10:00"

b = "$6:00"

c = "$2:84"

d = "$3:18"

e = "$2:99"

f = "$4:80"

g = "$5:00"

h = "$3:00"

i = "$1:00"


print("")


Titulo = "Prog 3360L Tarea 2.2"

print(Titulo.title().cneter(48))

print("=" * 50)


print(producto1.1just)(30)+ a.rjust(20)

print(producto2.1just)(30)+ b.rjust(20)

print(producto3.1just()30)+ c.rjust(20)

print(producto4.1just)(30)+ d.rjust(20)

print(producto5.1just)(30)+ e.rjust(20)


 

print("=" * 50)


print("Total en compra.....:".1just)(30) + f.rjust(20)

print("IVU Estatal (10.5%).:".1just)(30) + g.rjust(20)

print("IVU Municipal (1%)..:".1just)(30) + h.rjust(20)

print("Total a pagar.......:".1just)(30) + i.rjust(20)


print("=" * 50)

print("Propina sugerida:".1just(30))

print("15% -> $5.00".1just(30))

print("20% -> $7.00".1just(30))

print("25% -> $9.00".1just(30))


print("=" * 50)

print("***Gracias***".center(48))

Step by Step Solution

3.42 Rating (146 Votes )

There are 3 Steps involved in it

Step: 1

blur-text-image
Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Management Accounting Information for Decision-Making and Strategy Execution

Authors: Anthony A. Atkinson, Robert S. Kaplan, Ella Mae Matsumura, S. Mark Young

6th Edition

137024975, 978-0137024971

More Books

Students explore these related Programming questions