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

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter9: Completing The Basics
Section: Chapter Questions
Problem 7PP
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
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr