/* Lumber Utility Functions Header File * Author: J. Dalbey * CPE 101 */ #define kInchesPerFoot 12 #define kCubeInchPerBoardFt 144 #define kSheetWidth 48 #define kCubeInchPerFullSheet 4608 /* Calculate board feet from lumber dimensions */ double find_boardfeet(int width, /* input - width of a board (inches) */ int depth, /* input - depth of a board (inches) */ int length, /* input - how long the board is (feet) */ int pieces); /* input - number of boards ordered */ /* Calculate full plywood sheets from panel dimensions */ double find_sheets(int numerator, /* input - thickness fraction (inches), numerator */ int denominator, /* input - thickness fraction (inches), denominator */ int length, /* input - length of sheet (feet) */ int qty); /* input - number of sheets ordered */