Quantcast
Channel: VBForums - Maths Forum
Viewing all articles
Browse latest Browse all 112

Maximum Yards Returned

$
0
0
I'm creating a football(American) game and I need some help with returning the amount of yards returned from a method based on different properties. For example, there are 2 key properties for a kicker when it comes to yards kicked:
  1. Power
  2. KickingPower


KickingPower's property maximum is 100 and determines the maximum amount of yards that can possibly be return. The Power property is the percentage used of it's KickingPower.

Now the NFL's record for field goal made is 64 yards. Therefore if the KickingPower's value is 100 and the Power property is 100 then the value returned would be 64. However, what expression can I use to return the amount of yards no matter what the KickingPower and Power values are?

Edit: To throw a curve ball in this whole thing, if the KickingPower's value is 0 and the Power property is anything then the value returned would need to be 5.

Edit #2: I found that I could make a visual representation of what I want:
Name:  yards.png
Views: 55
Size:  2.7 KB
Attached Images
 

Viewing all articles
Browse latest Browse all 112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>