You will complete this assignment in Python 3.x. Make sure you have downloaded the software and it is installed correctly. You will download it from this www.python.org
You will code the following and submit it in one file. Use the information in the Content area for this week to assist you. Save it as a python file (.py) and upload it into the Assignments area.
1. Includecomment blockon line1 of your code with the following information:
"""
Your Name
Course Name, Section (example: ENTD200 B002 Spr18)
Instructor name
Week #
Date completed
"""
2. Create a Python programs based on week 6 flowchart and requirements. You must use loops, do not use function call
Sample output of the list should be something like this
Get the supermarket name ---> Apus food store
Get item --> Keto bites
more items (y/n) y
Get item --> Coconut drink
more items (y/n) n
Item 1 is keto bites
Item 2 is Coconut drink
Now, let's say the list has ["Keto bites", "Coconut drink"]
What is your name (Shopper name) --> Sambaz
What is the supermarket name --> Apus food store
Shopping date --> 12/12/2021
Enter priceforKeto bites--> 3.50
Enter Quantity forketobites --> 2
Total For Keto bites = 7
Do you want another calculation? (y/n) y
Enter pricefor Coconut drink --> 1.50
Enter Quantityfor Coconut drink --> 2
Total For Coconut drink = 3
Do you want another calculation ? (y/n) n
What type of commute did you use --> taxi
How much the cost --> 5.00
Expense report for Sambaz
Apus food store
12/12/2021
Item Price Qty Total
Keto bites 3.5 2 7.0
Coconut drink 1.5 2 3.0
Commute expenses 5.0
Total 15.0
Thanks for the expense calculator
You need to submit the output of your code (results of code run and not the code itself). I will accept an image or text.
The filename should be week8_{yourlastName}.py
========================================
Optional 1 (not required)
Month 1 is January, ...Happy new year ( Do not use if-then. Do not add the messages to the months list), create another list for greetings.
The output will look like this
Month 1 is January, ...Happy New Year!
Month 2 is February, ...Happy Valentine!
Month 3 is March
Month 4 is April
Month 5 is May
Month 6 is June
Month 7 is July, ...Happy Fourth of July!
Month 8 is August
Month 9 is September
Month 10 is October, ...Happy Halloween!
Month 11 is November, ...Happy Thanksgiving!
Month 12 is December, ...Merry Christmas!
Optional 2
Modify the Payroll and/or the MPG program from week5/6 to store the results in a list/dictionary. Print the list/dictionary when no more calculation is selected.
The output will be something like this for the payroll
Payroll for week xyz
James Bond ....... 21,500
Al Bundy ....... 500
Johnny English ….. 1,200
Total Payroll ....... 23,200
For the MPG will be something like
MPG for zyz truck
Week 1 ..... 12
Week 2 ..... 33
Week 3 ..... 27
MPG Ave ..... 24