This is a python program Sales Bar GraphWrite a program that reads in the sales for five stores from a data file.Use the data to create a bar graph as follows:SALES BAR GRAPH:(Each * = $100)Store 1: *******Store 2: *********Store 3: ***********Store 4: *****Store 5: *******Snack Bar MenuWrite a program that allows the user to choose from the following menu untilhe/she chooses to exit. The program should keep a running total of the chargesand then add 6% sales tax to calculate the final bill. Display the total to theuser.1) Personal Pizza $6.002) Pretzel $2.503) Chips $1.254) Hot Dog $3.755) ExitInput validation: The user must choose 1 - 5 from the menu.Example Output:Welcome to Yum Yum Snack Bar!Please choose from the following menu:1) Personal Pizza $6.002) Pretzel $2.503) Chips $1.254) Hot Dog $3.755) ExitEnter your choice here: 1Current total: $6.00 Please choose from the following menu:1) Personal Pizza $6.002) Pretzel $2.503) Chips $1.254) Hot Dog $3.755) ExitEnter your choice here: 3Current total: $7.25Please choose from the following menu:1) Personal Pizza $6.002) Pretzel $2.503) Chips $1.254) Hot Dog $3.755) ExitEnter your choice here: 8Invalid choice. Must choose 1 – 5. Try again.Please choose from the following menu:1) Personal Pizza $6.002) Pretzel $2.503) Chips $1.254) Hot Dog $3.755) ExitEnter your choice here: 4Current total: $11.00Please choose from the following menu:1) Personal Pizza $5.952) Pretzel $2.503) Chips $1.254) Hot Dog $3.755) ExitEnter your choice here: 5Current total: $11.00Sales Tax: $0.66Total Bill: $11.66Have a nice day

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

This is a python program

Sales Bar Graph
Write a program that reads in the sales for five stores from a data file.
Use the data to create a bar graph as follows:
SALES BAR GRAPH:
(Each * = $100)
Store 1: *******
Store 2: *********
Store 3: ***********
Store 4: *****
Store 5: *******
Snack Bar Menu
Write a program that allows the user to choose from the following menu until
he/she chooses to exit. The program should keep a running total of the charges
and then add 6% sales tax to calculate the final bill. Display the total to the
user.
1) Personal Pizza $6.00
2) Pretzel $2.50
3) Chips $1.25
4) Hot Dog $3.75
5) Exit
Input validation: The user must choose 1 - 5 from the menu.
Example Output:
Welcome to Yum Yum Snack Bar!
Please choose from the following menu:
1) Personal Pizza $6.00
2) Pretzel $2.50
3) Chips $1.25
4) Hot Dog $3.75
5) Exit
Enter your choice here: 1
Current total: $6.00
Please choose from the following menu:
1) Personal Pizza $6.00
2) Pretzel $2.50
3) Chips $1.25
4) Hot Dog $3.75
5) Exit
Enter your choice here: 3
Current total: $7.25
Please choose from the following menu:
1) Personal Pizza $6.00
2) Pretzel $2.50
3) Chips $1.25
4) Hot Dog $3.75
5) Exit
Enter your choice here: 8
Invalid choice. Must choose 1 – 5. Try again.
Please choose from the following menu:
1) Personal Pizza $6.00
2) Pretzel $2.50
3) Chips $1.25
4) Hot Dog $3.75
5) Exit
Enter your choice here: 4
Current total: $11.00
Please choose from the following menu:
1) Personal Pizza $5.95
2) Pretzel $2.50
3) Chips $1.25
4) Hot Dog $3.75
5) Exit
Enter your choice here: 5
Current total: $11.00
Sales Tax: $0.66
Total Bill: $11.66
Have a nice day

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 2 images

Blurred answer
Knowledge Booster
Random Class and its operations
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