Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

No Iterations or Conditionals or find() function MATLAB Function Name: andTheWinnerls Input: 1. ( 110 char) A string of length 10 formated as '#@ vs

No Iterations or Conditionals or find() function MATLAB

image text in transcribed

Function Name: andTheWinnerls Input: 1. ( 110 char) A string of length 10 formated as '\#@ vs %\( \% \$ \& \)amp; ' where '\#@ is the three letter name of team1 and '\% $ ' is the three letter name of team2 2. ( 12 double) The first number is the number of points scored by team1 in the first quarter and the second number is the number of points scored by team 2 in the first quarter. 3. ( 12 double) The first number is the number of points scored by team1 in the second quarter and the second number is the number of points scored by team 2 in the second quarter. 4. ( 12 double) The first number is the number of points scored by team 1 in the third quarter and the second number is the number of points scored by team 2 in the third quarter. 5. ( 12 double) The first number is the number of points scored by team 1 in the fourth quarter and the second number is the number of points scored by team 2 in the fourth quarter. Output: 1. ( 13 char) The name of the winning team 2. (double) The number of points the winning team won by (How many more points did the winning team score than the losing team?) Note: - There will not be a tie - You cannot use the if statement to solve this problem - The find() function is banned Examples: [ Winner1, amount 1]= and ThewinnerIs('ATL vs DAL', [7],[07],[],[103]) winner1 = 'ATL' amount 1=7 winner2 = 'NYJ' amount2 =3

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

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions