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 builtin modules. Use the exact data and data structures provided.
Task : Calculating Daily Revenue with Discount
Data: Sales of Woodfired Smoked Ribs for a week: ribssales Price per ribs: $
Instructions:
Use a loop to calculate the total revenue for each day.
Apply a discount if the daily sales exceed ribs.
Print the daily revenue.
Task : Identifying Best Selling Pizza
Data: Sales of different pizzas: pizzasales The Carnivore": "The Garden Patch": "The Hot & Spicy":
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 : Analyzing Customer Reviews for Beverages
Data: Customer ratings for beverages: beverageratings
Instructions:
Use a loop and if statement to count how many beverages have a rating greater than
Import the statistics module to calculate the mean rating.
Print the count and the mean rating.
Task : Organizing Takeout Orders
Data: List of takeout orders: takeoutorders BBQ Family Pack", Whole Pie", Pizza
Instructions:
Use a loop
Use and if statement to print a message for orders with quantities greather than plural eg "Prepare BBQ Family Packs."
Use an else statement to print a message for orders with quantity of singular eg "Prepare BBQ Family Pack."
Task : Managing Kids Menu
Data: List of kids' meals and their availability: kidsmenu Mini Pulled Pork Sandwich": "Mac n Cheese": "Grilled Cheese Sandwich":
Instructions:
Use a loop and ifelse 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
