ravigarg
(Ravi Garg)
May 4, 2020, 11:30am
#1
Daily Challenge
You are provided with an angle X(Take any random value).
You have to give out all other angles of intersection in list form
For Example(X=70)
The result should be like (70,110,70,110,70,110,70,110)
Rules
Try to do it with only one linear pair.
It might be a bit easy. But It was my first try
1 Like
Yoshi
(KidKoder)
May 4, 2020, 11:33am
#2
ravigarg:
in list form
What kind of?
Which angles should be in which order?
Also, very good math DC!
1 Like
Mateja
(Mateja)
May 4, 2020, 11:33am
#3
It would be nice to provide an example. Anyways, here is my solution in Python, I will post Kodular blocks in a few minutes.
My Solution
x = int(input())
y = 180-x
list = [x,y,x,y,x,y,x,y]
print(list)
EDIT: Kodular blocks posted.
ravigarg
(Ravi Garg)
May 4, 2020, 11:39am
#5
Try with only one linear pair and you have to give 8 angles not four.
1 Like
Yoshi
(KidKoder)
May 4, 2020, 11:40am
#7
ravigarg:
8 angles not four
Ok, so just repeat the four angles? lmao
2 Likes
ravigarg
(Ravi Garg)
May 4, 2020, 11:41am
#8
Yes just repeat the four angles.
1 Like
Yoshi
(KidKoder)
May 4, 2020, 11:42am
#9
Here’s my
Solution
It can be that it has a mistake, because I have no companion at the moment so I couldn’t test it.
Aaand also I don’t know about emulators.
1 Like
ravigarg
(Ravi Garg)
May 4, 2020, 11:47am
#10
Let me clear it out you need to use properties if intersection.
When a line intersects two parallel lines, take reference from here:
https://www.mathplanet.com/education/pre-algebra/introducing-geometry/angles-and-parallel-lines
Yoshi
(KidKoder)
May 4, 2020, 11:49am
#11
Isn’t this juuust what we’ve done?
ravigarg
(Ravi Garg)
May 4, 2020, 11:50am
#12
No, you can’t use linear pair* more than once.
*Sum of angles = 180
Yoshi
(KidKoder)
May 4, 2020, 11:51am
#13
Yes, this is a better and faster and easier solution, @Mateja . Of course I didn’t get this idea.
Yoshi
(KidKoder)
May 4, 2020, 11:52am
#14
ravigarg:
linear pair
wdym? I don’t know much mathematic words in english, sorry.
1 Like
ravigarg
(Ravi Garg)
May 4, 2020, 11:53am
#15
Yoshi:
wdym?
*Sum of angles = 180 degrees
But as I said he is subtracting it from 180 every time.
But according to the rules you can use that only once.
Yoshi
(KidKoder)
May 4, 2020, 11:56am
#16
ravigarg:
use that only once
Oooh. I understand now. Thx!
1 Like
Yoshi
(KidKoder)
May 4, 2020, 11:57am
#17
What’s with my solution? I just never used
ravigarg:
subtracting it from 180
, So what?
ravigarg
(Ravi Garg)
May 4, 2020, 12:00pm
#18
That’s pretty much the same thing
Just see this
x=180-y or
2x=360-2y. These are just the same equations.
You need to use mathematical properties to find out the solution.
Yoshi
(KidKoder)
May 4, 2020, 12:01pm
#19
Yes but I am using variable, so I am not repeating everything
2 Likes
ravigarg
(Ravi Garg)
May 4, 2020, 12:07pm
#20
Yes, both the solutions are right. So I am marking the first one as solution.
1 Like