Calculations - How to do it

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Brian P. Hammer (bphammer_at_email.uophx.edu)
Date: 09/16/04


Date: Thu, 16 Sep 2004 16:12:33 -0500

Not exactly a "Forms" question but you guys are awesome...

Need your help in trying to figure out the best way to do some calculations and present it back to the user. It is for aircraft maintenance but can easily be explained in terms of cars. Here is what I have and what I need to try to do:

Assume you take your car to the car shop to change its oil as the manufacturer recommends - every 3 months or 3000 miles.

Now, what I need to do is project out for a given time frame, let's say 5 years. For this projection, I know that I will only drive my car 15,100 miles a year. Using this example, I need to be able to tell the user that in months 2,4,7,10,13.....(whatever the months are) they will have to schedule the oil change. Now, add to this, if the person changes the oil, both the month and time requirement should be reset. I will then add to this cost estimates, downtimes and the fact that if they have to change the oil pan at some other time, then it will include an oil change.

What are your ideas on the best way to accomplish these calculations and present it back to the user. I am an intermediate VB programmer so be gentle.

-- 
BRIAN HAMMER


Relevant Pages

  • Re: Stroustrups FAQ causes infinite loop when executed
    ... There may be ways in which inheritance could ... programmer could not have foreseen. ... >> complex calculations such as multiplying numerous transformation ... >> reason to cap the class. ...
    (comp.lang.cpp)
  • Re: (geen onderwerp)
    ... Gert Baars wrote: ... A good programmer knows this and will either choose the ... correct data type to do the calculations with (e.g. if Int64 is too ... of calculations thus that the results will fit. ...
    (alt.comp.lang.borland-delphi)
  • Re: _sntprintf and _sntprintf_s
    ... I think in this case number of characters means TCHAR's, ... keep track of how much space remains in the buffer. ... If a programmer is using the ANSI version then the programmer wants to do ... calculations on the number of bytes in order to keep track of how much ...
    (microsoft.public.vc.language)