Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Function Name: spaceJam2 Inputs: 1. (double) 1 x 2 vector of the max age and min height in inches, in that order 2. (char) Data

image text in transcribed

Function Name: spaceJam2 Inputs: 1. (double) 1 x 2 vector of the max age and min height in inches, in that order 2. (char) Data from potential players application Outputs 1. (char) A string indicating whether the player made the team Background After a humiliating defeat against Bugs Bunny and his friends, the aliens are back for a rematch. The aliens have been training 24/7 for this epic rematch, while the Looney Tunes have been spending all their time studying for their MATLAB course. With Michael Jordan retired for good this time, the Looney Tunes must recruit some serious basketball talent to be on their team, so they only take the best players who meet certain standards Function Description: Write a function that takes in a player's application data as a string and outputs a string stating whether they made the team or not. A player's application data will be in a string containing the following characteristics in this order, with each response separated by commas , , , , ' First, set a maximum age and a minimum height standard, specified by the first input. Anyone who does not meet these standards will automatically not be considered. A player's height is given in feet and inches formatted as such '- made the Example: >> Data'Patrick Star, 46, 5-2, Super Stars,Nickelodeon,17' >> result spaceJam2([70,60], Data) result>Patrick Star made the team! Notes: Wamer Bros may be referred to as 'WB, 'Warner Bros', 'Warner Bros Pictures The test cases given are not exhaustive. Be sure to test all possible conditions! Try putting 'Michael Jordan' in the name of the application string and run the solution . Function Name: spaceJam2 Inputs: 1. (double) 1 x 2 vector of the max age and min height in inches, in that order 2. (char) Data from potential players application Outputs 1. (char) A string indicating whether the player made the team Background After a humiliating defeat against Bugs Bunny and his friends, the aliens are back for a rematch. The aliens have been training 24/7 for this epic rematch, while the Looney Tunes have been spending all their time studying for their MATLAB course. With Michael Jordan retired for good this time, the Looney Tunes must recruit some serious basketball talent to be on their team, so they only take the best players who meet certain standards Function Description: Write a function that takes in a player's application data as a string and outputs a string stating whether they made the team or not. A player's application data will be in a string containing the following characteristics in this order, with each response separated by commas , , , , ' First, set a maximum age and a minimum height standard, specified by the first input. Anyone who does not meet these standards will automatically not be considered. A player's height is given in feet and inches formatted as such '- made the Example: >> Data'Patrick Star, 46, 5-2, Super Stars,Nickelodeon,17' >> result spaceJam2([70,60], Data) result>Patrick Star made the team! Notes: Wamer Bros may be referred to as 'WB, 'Warner Bros', 'Warner Bros Pictures The test cases given are not exhaustive. Be sure to test all possible conditions! Try putting 'Michael Jordan' in the name of the application string and run the solution

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

Recommended Textbook for

Database Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

More Books

Students also viewed these Databases questions

Question

Provide examples of Dimensional Tables.

Answered: 1 week ago