Answered step by step
Verified Expert Solution
Question
1 Approved Answer
1) Fincludeb/stde Erica and Bob participate in a friendly Hackathon that allows each one to solve one question a day out of the three
1) Fincludeb/stde Erica and Bob participate in a friendly Hackathon that allows each one to solve one question a day out of the three offered. There will be one easy, one medium and one hard question, with points awarded based on difficulty. The winner is the one with the highest score at the end of the competition based on the following scale: Complete the win The functieon is expec The function accepts 1. STRING wrice 2. STRING bot 10 11 12 13 2. 14 Scoring table 15 16 string winner(string eric Difficulty Points 17 18 Easy (E) 19 20 > int main() Medium (M) 3 Hard (H) Given two strings erica and bob that contain the questions difficulty given to Erica and Bob respectively. Each character at index i of both strings represents the difficulty of the problem CE"M,H) solved on dayli by either Erica or Bob. The scoring table above associates the points for each question difficulty. Calculate the scores for Erica and Bob and then return the name of the winner: "Erica", "Bob" or "Tie" if they have the same
Step by Step Solution
There are 3 Steps involved in it
Step: 1
def winnererica bob erica ericaupper bob bobupper 3D ascii translator Le...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started