+ 1

Coding Challenges

Write a code where a user can input their house size and the code returns the chance of a lightning strike hitting the house in a city that is 200 square kilometers(hint: you need to find out how much area a lightning strike affects)

31st May 2017, 6:00 AM
DeAngelo
DeAngelo - avatar
6 Answers
+ 5
thought so. it seems more like a math problem than a coding one. once you have a formula the language you use is a bit redundant
31st May 2017, 6:14 AM
jay
jay - avatar
+ 4
mmhmm Yeah that what I am trying to say. It wont be hard to code at all. The hard part is coming up with the algebra. thus more of a math problem. I get it. it is a cool challenge. But not really a coding one imho
31st May 2017, 6:18 AM
jay
jay - avatar
+ 3
math challenge?
31st May 2017, 6:11 AM
jay
jay - avatar
+ 1
@jay there is a good amount of math involved
31st May 2017, 6:12 AM
DeAngelo
DeAngelo - avatar
+ 1
@jay, i want a formula found and then a code so the user wont have to do math or plug things in other than the house size, let the code do all the math
31st May 2017, 6:15 AM
DeAngelo
DeAngelo - avatar
0
use maths probability = (area of house in sq kms) / (200) code yourself ....... its easy if i am right
31st May 2017, 7:00 AM
MR Programmer
MR Programmer - avatar