	FuzzyLogic
	Presents
	BossCost for IZL



BossCost is an IZL source code file - distributed for free - for the IZL Interpreter.

Use this little program as follows for labor and material/expenses cost computations:

1. Enter the rate for the first person (Boss) or use the default rate.
2. Enter the rate for the second person (Helper) or use the default rate.
3. Enter the time for the one of both persons.
4. Press the Compute! button to get a result as follows:
	a)	By default: rate * time + 10% of same as flat cost charge.
	b)	On entry of 0 in Percentage field: rate * time.
5. Enter a different percentage in the Percentage field if the flat cost charge is higher or lower than the 10% default charge. For instance, if you build zigdets and the material costs are usually 80% of labor charges, enter 80%.
6. If you use the program to give a quick job estimate, save your result by pressing the Save Current Total button, then go ahead and do a different computation, for instance based on more helper time and less boss time or cheaper or more expensive material charges. The Save Current Total field will continue to show the earlier result, so you can compare both totals.

This program can be used for other purposes, if you think of Rate as units of something and of Time as price. That way, you can compute the price of two different types as well as an applicable shipping/handling charge, or tax. For the latter, you would enter the applicable rate in the Percentage field.

The Boss Fee, Helper Fee, Expenses and Total Fields are editable in order to permit rounding of results but any changes made there will not change the computation.

The Reset button resets percentage, rate and time fields to their default values.

The Code:

According the IZL debugger, I used the maximum number of objects which prevents me from deploying additional features.

I commented the code extensively so others can improve on it. 

The comments in the code will also help you change the defaults. For instance, if your regular rate is 400, change it in the source code. Or if you charge different rates for different jobs, enter different defaults for Boss and Helper, and use both for yourself. You can also change the Percentage default rate in the source code.

Note, however, that my machine responded with a system crash when I tried to compute a rate of 2222 for 54321 hours! This program appears to sport built-in intelligence.

With this code, the appearance is fine on some displays (such as with 800x600 Video and small/small Look&Feel settings in Preferences) but not on others. The companion source code file, BossCos1.IZL, works on many displays. Feel free to edit the location lines to improve the placement of fields on your system.

Finally, the code makes the IZL Interpreter window increase in size, on some displays beyond the bottom edge of the screen. Thus, the Stop button may become inaccessible. In such cases, press the file button to exit the program or hit F3.

Thanks:

Thanks for looking at this. I'm most likely to see your comments if you leave them in the Geoworks Forum on America Online. 

Thanks, most of all, to the IZL Interpreter's author, John Feras, who enriched the world of GEOS by creating the IZL interpreter language.


Copyright 1994 Clemens Kochinke d/b/a FuzzyLogic
ClemensKo @ aol.com
