0

Just need help to finish it

Please write a python program for Emily to help her make purchase decisions. 1. Input her budget and shopping locations: "Bowling Green" or "Nashville" with tax rate 6% and 9% respectively. 2. if input value for her budget is large than 300, then print "over budget" ; Otherwise, continue. 3. Keep generating a random price for an item, if Emily still has money left, then continue to consider the next item. Otherwse, she finishes her shopping. 4. Print the total number of items she has bought and print the average price of the items she has bought. from random import: def main(): total= 0 numberOfchair=0 while 1: chairsValue= numberOfChair+=1 total=total+chairValue elif total>=215 and total<=300 print("I mam done") break else: print("More than 300, is broken") break print("total number of chir",)

1st Oct 2021, 10:05 PM
Salehe Akili
Salehe Akili - avatar
1 Antwort
- 1
Sorry
2nd Oct 2021, 1:04 AM
Salehe Akili
Salehe Akili - avatar