+ 3
Mike's Challenge Series #1
Code a solution to this problem with any language of your choice. Question: A network tower has a range of 0.35 miles, and is located 1.75 miles from your WIFI access point which has a range of 0.02 miles. Display the area of positions you can access both your WIFI and Network signals in metres. HINT: ()
10 Respostas
+ 3
Answered by Cpasgrave https://www.sololearn.com/Profile/6029224
https://code.sololearn.com/c3aqnF0CAfds/#py
Pls Upvotes for Cpasgrave
+ 8
Will you please elaborate?
+ 5
Can WiFi access point be move?
+ 4
() this hint means something, the shape of the area you can access both signals.
+ 4
+Yash thatte exactly, that's the venn diagram.
Most problems are solved with paper before code.
But what's your use as a programmer if you can't solve problems with code.
+ 3
+Yash Thatte Correct !!!
Where's the link to the code ? that's what i want to tick.
+ 3
+Cpasgrave Pls can you add this to the "Else" part of your code.
#for python only
# make sure you import math
h=((tr+wr)-d)/2
Ax=(tr*tr)*math.acos((tr-h)/tr)-(tr-h)*math.sqrt((2*tr*h)-(h*h))
Az=(wr*wr)*math.acos((wr-h)/wr)-(wr-h)*math.sqrt((2*wr*h)-(h*h))
A=Ax+Az
print("Area available is...")
print(A)
print("And in metres")
Area=A*1609.344
print(Area)
+ 2
+ kartikey sahu Yes
+ 2
@Michael Abia
Just done it, adding units.
I didn't check it, I'm working on something else right now.
You are sure about the calculation ?
You finally resolve your own challenge if it's right : )
We are waiting for challenge #2 then
thanks