Question: Instructions Rick's Brick & Cue is a thriving barbecue and pizza destination. In this homework assignment, you will delve into Python by analyzing data from

Instructions
Rick's Brick & Cue is a thriving barbecue and pizza destination. In this homework assignment, you will delve into Python by analyzing data from RBC, focusing on operators, control flow (if and loop), and built-in modules. Use the exact data and data structures provided.
Task 1: Calculating Daily Revenue with Discount
Data: Sales of Wood-fired Smoked Ribs for a week: ribs_sales =[10,15,12,8,14,11,13](Price per ribs: $20)
Instructions:
Use a loop to calculate the total revenue for each day.
Apply a 10% discount if the daily sales exceed 12 ribs.
Print the daily revenue.
Task 2: Identifying Best Selling Pizza
Data: Sales of different pizzas: pizza_sales ={"The Carnivore": 50, "The Garden Patch": 40, "The Hot & Spicy": 60}
Instructions:
Use a loop and an if statement to find the pizza with the highest sales.
Print the name of the pizza and the number of sales.
Task 3: Analyzing Customer Reviews for Beverages
Data: Customer ratings for beverages: beverage_ratings =[4.5,4.2,3.8,4.7,3.9,4.1,4.3]
Instructions:
Use a loop and if statement to count how many beverages have a rating greater than 4.
Import the statistics module to calculate the mean rating.
Print the count and the mean rating.
Task 4: Organizing Takeout Orders
Data: List of takeout orders: takeout_orders =[("BBQ Family Pack", 3),("Whole Pie", 1),("Pizza",5)]
Instructions:
Use a loop
Use and if statement to print a message for orders with quantities greather than 1(plural), e.g., "Prepare 3 BBQ Family Packs."
Use an else statement to print a message for orders with quantity of 1(singular), e.g., "Prepare 1 BBQ Family Pack."
Task 5: Managing Kids Menu
Data: List of kids' meals and their availability: kids_menu ={"Mini Pulled Pork Sandwich": 10, "Mac n' Cheese": 5, "Grilled Cheese Sandwich": 0}
Instructions:
Use a loop and if-else statements to print a message for each item, indicating if it's available or not.
Instructions
Write the code using basic Python syntax within a Jupyter Notebook.
Include comments to explain what each part of the code is doing.
Make sure your code is well documented with comments.

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 Finance Questions!