Python Forum

Full Version: loop hw
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Can anyone help me with this following question, please thank you!!


A new movie theater, OmniView Cinemas, has opened up in town, and the theater manager has hired
you, a well-respected local computer programmer, to help her analyze its weekly ticket sales.
Write a Python 3 program to collect and analyze data about the movie theater's daily ticket sales over a
3-week period, and then record your program’s executionsin the Python IDLE’s shell on at least 5
complete input testcase sets that you have designed to demonstrate your program’s correctness and
efficiency.
For each of the 3 weeks, your program should get as input from the user the number of tickets that
were sold during each day of that week (Sunday through Saturday).
Then your program should calculate and display the following statistics:
• for each of the 3 weeks, the total number and average daily number of tickets that were sold
during that week
• for all weekdays (Monday through Friday) in the 3 weeks combined, the total and average daily
number of tickets that were sold
• for all weekend days(Saturday and Sunday) in the 3 weeks combined, the total number and
average daily number of tickets that were sold
All displayed averages should be rounded down to the nearest whole number.
What have you tried? Please provide it in code tags.
Here are instructions for the code tags micseydel suggested.