Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

THIS IS MEANT TO BE DONE IN PYTHON. Any help with this is greatly appreciated. def score_average(s): (str) -> float Given s, a string

THIS IS MEANT TO BE DONE IN PYTHON. Any help with this is greatly appreciated.

def score_average(s): """ (str) -> float Given s, a string representation of a sequence of four floating point numbers formatted as 'number1,number2,number3,number4', e.g., '1.0,12.0,13.0,2.0', calculate the average and return the average in s as a floating point number. >>> score_average('10.0,20.0,30.0,0.0') 15.0 """ ## TODO: YOUR CODE HERE

def score_range(s): """ (str) -> float Given s, a string representation of a sequence of four floating point numbers formatted as 'number1,number2,number3,number4', e.g., '1.0,12.0,13.0,2.0', calculate, and return, the difference between the maximum and minimum values >>> score_range('10.0,20.0,30.0,0.0') 30.0 """ #TODO: YOUR CODE HERE

def email_to_full_name(email): """ (str) -> str Given a string with the format "first_name.last_name@mail.utoronto.ca", return a string "LAST_NAME,FIRST_NAME" where all the characters are upper case >>> email_to_full_name("anna.conda@mail.utoronto.ca") CONDA,ANNA """ ## TODO: YOUR CODE HERE

def student_quiz_results(email,marks): """ (str,str) -> str Given a student's email with the format "first_name.last_name@mail.utoronto.ca" and marks from 4 quizzes formatted as "floating_point_number1,floating_point_number2", return a string "", where FIRST_NAME and LAST_NAME are the first and last names of the student in all upper case characters, average_mark is the mean of the 4 quiz scores and range_of_scores is the difference between the highest and lowest score achieved. >>> student_quiz_results("anna.conda@mail.utoronto.ca","10.0,20.0,30.0,0.0") '' """ ## TODO: YOUR CODE HERE

## TODO: YOUR TEST CODE HERE - REMEMBER TO DELETE THESE LINES BEFORE SUBMITTING ## END TEST CODE - DELETE BEFORE SUBMISSION

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Respond to personality differences among people.

Answered: 1 week ago