home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
business
/
lwd11.zip
/
LWD.DOC
< prev
next >
Wrap
Text File
|
1992-12-15
|
5KB
|
91 lines
-------------------------
LIVESTOCK WEIGHTS DISPLAY
-------------------------
LWD (Livestock Weights Display) is a vertical market application for
livestock auction marts. It will probably need to be modified to be
used in a particular auction mart. The source code is available for
15 dollars. Although LWD was written using Borland C++ 3.1, this is
a C program. Please specify the disk size required when placing an
order (5-1/4 or 3-1/2 inch). My address follows this documentation.
You will receive the source and project files (LWD.C and LWD.PRJ) in
addition to the support library and its header files. To understand
how LWD works, information on how a livestock auction mart works is
presented before LWD is described.
This auction mart deals in cattle sales. Ranchers and farmers ship
cattle to the mart prior to a sale. Buyers meet to make purchases.
Cattle are sold in lots of one or more animals. A bidding process
ensues for each lot and the lot is sold to the highest bidder. Buy-
ers pay a certain price per pound. The amount paid is total number
of pounds multiplied by price per pound. The mart makes commission
on each sale. The seller receives the amount paid less commission.
A large electronic display keeps track of important information used
by buyers in making bidding decisions. The information includes the
number of animals in the ring, the total weight of this lot, and the
average weight. Since similar lots are sold one after the other, it
is also helpful to buyers to see information from the previous sale.
Most cattle arrive at the mart the morning of the sale and many have
been fed and watered before being shipped. This inflates the weight
of the animal and the extra weight can be considerable. It would be
unfair to the buyer to have to pay for the additional weight that is
not part of the animal so an auction mart calculates shrinkage rate.
This is a percentage of an animal's weight occupied by feed & water.
The combined lot shrinkage is subtracted from the total weight which
results in a more accurate total weight.
LWD runs on a personal computer connected to a monitor. It requires
a second monitor or television (a BLACK & WHITE TV is preferable due
to large size (26 inch or better is needed) and sharp contrast). It
is possible to output the video signal to the TV as well as monitor
by using additional hardware (consult your local computer dealer).
The image appearing on the monitor should also appear on the tv set.
When LWD runs, the screen is divided into six rectangles. Five con-
tain a large zero digit and the sixth rectangle is reserved for data
entry. The upper-left rectangle contains the number of head for the
last sale and the upper-right rectangle contains the total weight of
the last sale. The middle-left rectangle contains the number of
head for the current lot and the middle-right rectangle contains the
total weight for the current lot. The lower-left rectangle is used
for data entry and the lower-right rectangle contains the average
weight for the current lot.
The first piece of required information is the shrinkage rate. This
is a percentage. Examples include 3 (3 %) and 4.5 (4.5 %).
The number of head for the current lot must then be entered (includ-
ing the number of calves). The number must be greater than zero and
is not allowed to exceed 99.
The scale weight is entered next. As each animal enters the ring, a
weight is calculated by having the animal step onto a special scale.
Scale weights are entered in a loop fashion. An ADD TO SCALE WEIGHT
prompt allows you to enter the scale weight for another animal from
the current lot. The maximum weight that can be entered at any one
time is 50000 pounds. The total of all scale weights cannot exceed
99999 pounds. Press Y for YES to add to the scale weight. Press N
for NO if no more scale weight is to be added.
If there are any baby calves in the lot then their combined weight &
number can be subtracted from the total number of head and weight to
prevent skewing of the average weight. Because of weight difference
between large and small animals (1000 pounds and 100 pounds), a less
accurate average weight would result if small calves were not taken
into account. The number of calves must be less than the number of
head. If a nonzero value is entered then the combined weight can be
entered. This value cannot exceed 5000 pounds and must be less than
the total weight.
The option to take shrinkage is presented. Pressing Y for YES will
cause shrinkage to be taken. You can then press any key to continue
causing the current number of head and total weight to scroll to the
upper left and right rectangles. The average weight, current number
of head and current total weight figures are reset to zero.
Geoff Friesen
Box 94
Dauphin, Manitoba
Canada R7N 2T9