Your output looks correct apart from the whitespace. DIFF SPLIT DIFF YOUR OUTPUT EXPECTED Welcome to Krusty Burgers! Krusty Burger $ 5.10 Milkshake $ 3.50 Krusty Meal Set[Burger + Drink + Krusty Laugh] $10.50 Enter order for Krusty Burger: 1 Enter order for Milkshake: 1 Enter order for Krusty Meal Set[Burger + Drink + Krusty Laugh]: 1 Order Summary Krusty Burger 5.10 x 1 Milkshake $ 3.50 X 1 Krusty Meal Set[Burger + Drink + Krusty Laugh] $ 10.50 x 1 Sub-total 19.10 + Sub-total $ 19.10 GST $ 0.96 Total $ 20.06 + Total $ 20.06 +

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

print("Welcome to Krusty Burgers!")

print(f"{'Krusty Burger' : <49}{'$ 5.10' : <5}")
print(f"{'Milkshake' : <49}{'$ 3.50' : <5}")
print(f"{'Krusty Meal Set[Burger + Drink + Krusty Laugh]' : <49}{'$10.50' : <5}")

qt1 = int(input("\nEnter order for Krusty Burger: "))
qt2 = int(input("Enter order for Milkshake: "))
qt3 = int(input("Enter order for Krusty Meal Set[Burger + Drink + Krusty Laugh]: "))

price1 = qt1*5.10
price2 = qt2*3.50
price3 = qt3*10.50

print("\nOrder Summary")
print(f"{'Krusty Burger' : <49}{'$  5.10 x  ' : <7}", end = "")
print(f"{qt1 : <1}")
print(f"{'Milkshake' : <49}{'$  3.50 x  ' : <7}", end = "")
print(f"{qt2 : <1}")
print(f"{'Krusty Meal Set[Burger + Drink + Krusty Laugh]' : <49}{'$ 10.50 x  ' : <7}", end = "")
print(f"{qt3 : <1}")

Sub_total = price1+price2+price3
GST = 0.05 * Sub_total 
Sub_total_1 = "{:.2f}".format(Sub_total)
GST_1 = "{:.2f}".format(GST)
Total = float(Sub_total_1) + float(GST_1)

print(f"{'Sub-total' : <49}{'$' : <3}", end = "")
x = "{:.2f}".format(Sub_total)
print(f"{x : <3}")

print(f"{'GST' : <49}{'$' : <3}", end = "")
x = "{:.2f}".format(GST)
print(f"{x : <3}")

print(f"{'Total' : <49}{'$' : <3}", end = "")
x = "{:.2f}".format(Total)
print(f"{x : <3}")

 

This code gives me the right out put for the setting out of the program that is wrong with the templates. How can I fix it? The picture: the green one is what the program expect to be, the red one is what the code produce. It fail 3/5 templates.

Full program run 5
Your output looks correct apart from the whitespace.
DIFF
SPLIT DIFF YOUR OUTPUT EXPECTED
Welcome to Krusty Burgers!
Krusty Burger
$ 5.10
Milkshake
$ 3.50
Krusty Meal Set[Burger + Drink + Krusty Laugh]
$10.50
Enter order for Krusty Burger: 1
Enter order for Milkshake: 1
Enter order for Krusty Meal Set[Burger + Drink + Krusty Laugh]:
1
Order Summary
Krusty Burger
5.10 x
1
Milkshake
3.50 X
1
Krusty Meal Set[Burger + Drink + Krusty Laugh]
$ 10.50 x
1
Sub-total
$
19.10
+ Sub-total
$ 19.10
GST
0.96
Total
$
20.06
+ Total
$ 20.06
+
Transcribed Image Text:Full program run 5 Your output looks correct apart from the whitespace. DIFF SPLIT DIFF YOUR OUTPUT EXPECTED Welcome to Krusty Burgers! Krusty Burger $ 5.10 Milkshake $ 3.50 Krusty Meal Set[Burger + Drink + Krusty Laugh] $10.50 Enter order for Krusty Burger: 1 Enter order for Milkshake: 1 Enter order for Krusty Meal Set[Burger + Drink + Krusty Laugh]: 1 Order Summary Krusty Burger 5.10 x 1 Milkshake 3.50 X 1 Krusty Meal Set[Burger + Drink + Krusty Laugh] $ 10.50 x 1 Sub-total $ 19.10 + Sub-total $ 19.10 GST 0.96 Total $ 20.06 + Total $ 20.06 +
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Study of Characters
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education