BuzzerBeater Forums

Help - English > Program for Staff?

Program for Staff?

Set priority
Show messages by
From: bonespawn

This Post:
00
147507.13 in reply to 147507.12
Date: 6/21/2010 7:02:16 PM
Overall Posts Rated:
4141
This is a sample of I/O of what I have so far. I am only testing with individual comparisons as of right now. I am also really jet lagged, so I hope I am still making sense. Please let me know what you think about this.

The order of arguments supplied are oldlevel, oldsalary, newlevel, newsalary, price:

Example 1
>.\staff 2 8000 1 4000 1000
Reduced cost of 152267.599168265 spread over 71 weeks for an average of 2144.61407279246 per week until returning to original salary level of 8000. From this point the difference in weekly rate of increases will be -0.25%.


The results from the above example I believe addresses what Sleet is suggesting only again in a single record comparison for the purposes of testing. I updated this today to calculate based on percentage that goes with respective trainer levels. I think this kind of info could be useful in determining how worthwhile new staff deals are.

Example 2
>.\staff 2 8000 3 10000 5000
Initial cost of 7000 with an added 30135.5244403346 over 14 weeks for average of 2152.5374600239 extra per week. Only one 14 week season of cost was calculated, and from this point the difference in weekly rate of increases will be 0.25%.


This is assessing the cost of staff upgrade but something like this is returned for any deal that does not result in savings.