29-11-2009, 06:15 PM
Quote:SkyAirWorld wrote:
Unfortunately the program can not distinguish differences in some conditions (without adding hours upon hours of coding even then still nothing
guarenteed)
Thanks for the answer. Yes, it makes sense. Weird however, I would say it should take a couple of extra lines of code to handle that, something like:
delta=1-(aircraft_value-cost_of_repair)/aircraft_value; // so range is between 0.0-1.0
if (delta <= 0.25) then
display( "It is definitively worth fixing." ); // case 1
if (delta >0.25 && delta <= 0.5) then
display ( "You can still do it, but the damage is severe." );// case 2
if (delta > 0.5 && delta <= 0.75) then
display ( "Don't do it, unless you have an alternative" );// case 3
if (delta > 0.75) then
display( "It is a total wreck, not worth fixing." ); // case 4
It would also be interesting for all cases to increase proportionally the possibility of mechanical failures, as the airframe has been damaged. I do not
know whether this is modeled, but I suppose it could be interesting.
Just an idea,
DareDevil