Instructions 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...

1 answer below »











Instructions

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


Answered Same DayOct 26, 2021

Answer To: Instructions You will complete this assignment in Python 3.x. Make sure you have downloaded the...

Neha answered on Oct 27 2021
141 Votes
import itertools
itemList = []
priceList = []
quantityList = []
totalList = []
cost= 0
marketN
ame = input("Please enter supermarket name: ")
while True:
itemName = input("Please enter item name: ")
itemList.append(itemName)
choice = input("more items(y/n): ")
if (choice.lower() == 'n'):
break
for i in range(len(itemList)):
print ("Item ",i+1," is ",itemList[i])
print("Now, let's say the list has ",itemList)
print("Shopper name: Kennisha Moore")
print("Supermarket name: Big R...
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here