Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Matlab Function Name: andTheWinnerls Input: 1. ( 110 char) A string of length 10 formated as '#@N' vs %( % $ & )amp; ' where

Matlabimage text in transcribed

Function Name: andTheWinnerls Input: 1. ( 110 char) A string of length 10 formated as '\#@N' 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 team1 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: [ winner 1 , amount 1]= andThewinnerIs('ATL vs DAL', [70],[07],[00],[103]) winner1 = 'ATL' amount 1=7 winner2 = 'NYJ' amount 2=3 [winner3, amount3] = andTheWinnerIs('PIT vs HOU', [7 3 ],[147],[103],[73]) winner 3= 'PIT' amount 3=22

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

Mastering Real Time Analytics In Big Data A Comprehensive Guide For Everyone

Authors: Lennox Mark

1st Edition

B0CPTC9LY9, 979-8869045706

More Books

Students also viewed these Databases questions

Question

What are major risk factors for mental disorders?

Answered: 1 week ago

Question

Prepare for a successful job interview.

Answered: 1 week ago

Question

Describe barriers to effective listening.

Answered: 1 week ago

Question

List the guidelines for effective listening.

Answered: 1 week ago