Question: Base on the program above: Change that program so that it asks for the MONTHLY sales for books. Still print out the total and the

 Base on the program above: Change that program so that it

Base on the program above:

  • Change that program so that it asks for the MONTHLY sales for books.
  • Still print out the total and the average.

Thank you.

1 1stDonuts = [] 2 TotDonuts = 0 3 AveDonuts - 0.0 4 lstweekdays = ("Monday", "Tuesday", "Wednesday", "Thursday", "Friday")| 5 6 for strDay in 1stWeekDays: 7 fltDonutsales - float(input("What are Sales for Day " + strDay + "? 8 1stDonuts.append(fltDonut Sales) 9 10 for fltDailySalesAmt in 1stDonuts: TotDonuts = TotDonuts + fltDailySalesAmt 12 13 AveDonuts = TotDonuts/len(1stDonuts) 14 15 print(f"The total donut sales for this week are ${TotDonuts:,.2f}") 16 print(f"We sold about ${AveDonuts:,.2f} a day") 11

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!