+ 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)
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
+ 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
+ 3
math challenge?
+ 1
@jay there is a good amount of math involved
+ 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
0
use maths
probability =
(area of house in sq kms) / (200)
code yourself .......
its easy if i am right