FA2.1.2 Equally Strong call two arms equally strong if the heaviest weights they each are able to lift are equal. call two people equally strong if their strongest arms are equally strong (the strongest arm can be both the right and the left) their weakest arms. siven your and your friend's arms' lifting capabilities find out if you two are equally strong. Expected Output True True False Test Run yourLeft yourRight friendsLeft friendsRight 15 15 15 15 10 10 1 10 2 15 15 10 10 10 15 20 False True False 4 20 20 5 6. 20 15 20 7 1 10 10 False

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
My Solutions >
FA2.1.2 Equally Strong
call two arms equally strong if the heaviest weights they each are able to lift are equal.
Call two people equally strong if their strongest arms are equally strong (the strongest arm can be both the right and the left), and so are
their weakest arms.
Given your and your friend's arms' lifting capabilities find out if you two are equally strong.
Expected
Output
True
True
False
False
True
False
Test Run
yourLeft
yourRight
friendsLeft
friendsRight
10
15
15
10
15
10
15
10
15
10
15
9
4
10
15
20
20
20
20
15
20
7
10
10
False
Create a function that would determine the boolean value whether two people are equally strong or not. You have
output must be the boolean value TRUE or FALSE as follows:
input your hands and friends hands lifting capabilities and the
output=equallystrong(yourleft, yourright, friendsleft, friendright)
Function e
A Save
C Reset
E MATLAB Documentation
function output = equallystrong (yourleft, yourright, friendsleft, friendsright)
def areEquallystrong (yourLeft, yourRight, friendsLeft, friendsRight):
return {yourleft, yourRight} = {friendsLeft, friendsRight}
4 end
Code to call your function e
C Reset
output=equallystrong (10,15,15,10)
2 output=equallystrong(10,15,10,15)
3 output=equallystrong(9,15,15,10)
4 output=equallystrong (10,15,15,9)
output=equallystrong (9,10,8,7)
Transcribed Image Text:My Solutions > FA2.1.2 Equally Strong call two arms equally strong if the heaviest weights they each are able to lift are equal. Call two people equally strong if their strongest arms are equally strong (the strongest arm can be both the right and the left), and so are their weakest arms. Given your and your friend's arms' lifting capabilities find out if you two are equally strong. Expected Output True True False False True False Test Run yourLeft yourRight friendsLeft friendsRight 10 15 15 10 15 10 15 10 15 10 15 9 4 10 15 20 20 20 20 15 20 7 10 10 False Create a function that would determine the boolean value whether two people are equally strong or not. You have output must be the boolean value TRUE or FALSE as follows: input your hands and friends hands lifting capabilities and the output=equallystrong(yourleft, yourright, friendsleft, friendright) Function e A Save C Reset E MATLAB Documentation function output = equallystrong (yourleft, yourright, friendsleft, friendsright) def areEquallystrong (yourLeft, yourRight, friendsLeft, friendsRight): return {yourleft, yourRight} = {friendsLeft, friendsRight} 4 end Code to call your function e C Reset output=equallystrong (10,15,15,10) 2 output=equallystrong(10,15,10,15) 3 output=equallystrong(9,15,15,10) 4 output=equallystrong (10,15,15,9) output=equallystrong (9,10,8,7)
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY