PHP (HELP ME SOLVE A PROPLEM PLEASE)
Posted: Sat Sep 06, 2008 1:03 am
Hello to Everyone.
I have a little problem that I try to solve in PHP.
Suppose we have a shooting target which has three circles. The inner one is the most accurate and gives five points for each bullet there. The middle gives four points and the last one , the outer gives three points, we always try to shoot with ten bullets every time. So an example… 2 bullets at the center 1 in the middle and 2 at the outer gives us a result of. 2x5=10 1x4=4 and 2x3=6 total score is 5/20 (5 the total bullets in the target and 20 the actual score).
So I want some code that I will import the result and it will return me if this shooting score is possible. For example (5/26)is not possible since the maximum result is 5c5=25.
Thank you for your help.
I have a little problem that I try to solve in PHP.
Suppose we have a shooting target which has three circles. The inner one is the most accurate and gives five points for each bullet there. The middle gives four points and the last one , the outer gives three points, we always try to shoot with ten bullets every time. So an example… 2 bullets at the center 1 in the middle and 2 at the outer gives us a result of. 2x5=10 1x4=4 and 2x3=6 total score is 5/20 (5 the total bullets in the target and 20 the actual score).
So I want some code that I will import the result and it will return me if this shooting score is possible. For example (5/26)is not possible since the maximum result is 5c5=25.
Thank you for your help.