Question: Task 1 : Employee Analysis Read the tab - delimeted file named 'HOP _ RBC _ Employees.txt ' and print as { name } {
Task : Employee Analysis
Read the tabdelimeted file named 'HOPRBCEmployees.txt and print as namepositionyears of service "years of service"
Examples:
Rick Owner years of service
Sarah General Manager years fo service
# Place your Python code here
Task : New Menu Concepts
Use the appropriate function found in the Pandas library to read the CSV file named 'HOPRBCNewMenuConcepts.csv into a Pandas DataFrame. The values to be used in the DataFrame columen names are found in the first row of the CSV file. Use the ItemID column as the DataFrame's index.
# Place your Python code here
Task : Calculate the Number of Unique Pizza Creations at Rick's Brick & Cue
Rick's Brick & Cue provides a variety of options for customers to build their own pizza. These options are categorized into four distinct types: crust, sauce, cheese, and toppings. Each category has a range of choices available, and customers can pick one item from each category to make their own pizza.
You are tasked with calculating the total number of unique combinations that can be created, using the data stored in an Excel file named HOPRBCBuildYourOwnPizzaOptions.xlsx The spreadsheet contains four worksheets:
Crust Options
Sauce Options
Cheese Options
Toppings Options
Assume that a customer can only select one option from each category. Read the data from the Excel file 'HOPRBCBuildYourOwnPizzaOptions.xlsx into a single DataFrame. Use a readexcel function call to read all four worksheets at the same time.
hint: the number of options for a category will be equal to the number of rows in the DataFrame. Recall from an earlier lesson that 'dataframe.shape' returns a tuple containing the number of rows and number of columns in the dataframe. Use this to get the number of rows: ie 'dataframe.shape where 'dataframe' is the name of your DataFrame.
# Place your Python code here
Task : Competitor Analysis
Rick's Brick & Cue recently acquired a list of competitors in the barbecue restaurant market from a reputable data provider. Rick, the owner, hopes this data will critical insights into the competitive landscape. The data about these competitors was delivered as a JSON file. Your task is to read the JSON file and print a list of competitors. For now, Rick only needs to see the competitor names, locations, and customer rating.
The JSON data is a nested structure. At the highest level is a list of competitors. Here are a few sample rows:
"competitors":
"name": "Smokey Joe's BBQ
"location": "Austin, TX
"specialty": "Brisket",
"pricerange": $$
"customerrating":
"name": "Grillmaster's Paradise",
"location": "Memphis, TN
"specialty": "Ribs",
"pricerange": $$
"customerrating":
"name": "Prairie Smoke",
"location": "Minneapolis, MN
"specialty": "Wild Game",
"pricerange": $$$
"customerrating":
# Place your Python code here
Task : Find the Winning Kid's BBQ Sauce Recipe
Rick's Brick & Cue recently held a unique contest where children aged and under were invited to submit their special BBQ sauce recipes via the restaurant's app. Parents granted permission for these submissions, and customers then voted for their favorite recipe. Your task is to identify and print out the winning recipe.
The data has been gathered in an XML file named 'HOPRBCBBQKidsBBQSauceContest.xml
Objectives:
Parse the XML file to read the recipes.
Find the recipe with the most votes.
Print the winning recipe following this format:
First, print the title of the recipe
Second, print the child's name and age
Third, pirnt the number of votes
Fourth, list the ingredients, one per line
Fifth, list the steps for preparing the sauce, one per line
Guidelines:
Loop through each recipe in the XML file
Extract and store the number of votes for each recipe
Compare the number of votes to find the one with the most votes
Extract and print the details of the winning recipe
Hints:
Use the xmletree.ElementTree module for XML parsing
Use the parse function to read the XML file
You might find it useful to use variables to track the winning recipe as you iterate through them
Example output not the actual winner:
Winning Recipe: Mia's Fruity Fizzle
Description: Fruit and fizz, what's not to love?
Number of Votes:
Kid's Name and Age: Mia
Ingredients:
Orange joos
Sprite
Hunny
Steps:
Mixy mix.
Taste it yum!
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
