PYTHON- Write a program that operates like a point of sale terminal for the purchase of three items in various quantities. The program should accept the name, unit price, and quantity of each item as keyboard inputs. Note that the prompts for the price and quantity should display the item name. A line should be printed that reflects these inputs and includes the subtotal for each item. The program should finish by printing the total for the three items. Example Output:

Programming with Microsoft Visual Basic 2017
8th Edition
ISBN:9781337102124
Author:Diane Zak
Publisher:Diane Zak
Chapter11: Sql Server Databases
Section: Chapter Questions
Problem 15RQ
icon
Related questions
icon
Concept explainers
Question
100%

PYTHON- Write a program that operates like a point of sale terminal for the purchase of three items in various quantities. The program should accept the name, unit price, and quantity of each item as keyboard inputs. Note that the prompts for the price and quantity should display the item name. A line should be printed that reflects these inputs and includes the subtotal for each item. The program should finish by printing the total for the three items.

Example Output:

 

Enter item name shirts
Enter unit price of shirts 29.99
Enter quantity of shirts 3
3 shirts @ $29.99, total $89.97
Enter item name shorts
Enter unit price of shorts 19.95
Enter quantity of shorts 2
2 shorts @ $19.95, total $39.90
Enter item name hats
Enter unit price of hats 14.99
Enter quantity of hats 3
3 hats @ $14.99, total $44.97
Total of these three items is $174.84
Transcribed Image Text:Enter item name shirts Enter unit price of shirts 29.99 Enter quantity of shirts 3 3 shirts @ $29.99, total $89.97 Enter item name shorts Enter unit price of shorts 19.95 Enter quantity of shorts 2 2 shorts @ $19.95, total $39.90 Enter item name hats Enter unit price of hats 14.99 Enter quantity of hats 3 3 hats @ $14.99, total $44.97 Total of these three items is $174.84
Expert Solution
Step 1 ::

- We need to write a python program for the sales terminal.

trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Operators
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
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT