Beefcake Anthony Piro Todd Stringer
The MaxLife 1000 A health calculator designed to aid the personal trainer in creating an appropriate exercise routine.
Background The MaxLife 1000 calculates the following functions: 1.Multiple Rep Max 2.Body Fat Percentage 3.Target Heart Rate
Add Hardware Implementation
Software Implementation
Multiple Rep Max Formula: 1_Rep_Max = (#reps) 0.1 * weight Restrictions: Loses accuracy for repetitions over 10. (#reps) 0.1 difficult to implement. Implementation: Restrict the range of repetitions to 1 through 10 Look-up table for Coefficients (#reps) 0.1 Coefficient
Target Heart Rate Formulas: HR max = Age THR = X%(HR max – HR rest ) + HR rest Restrictions: A good range for X is 50% - 80% Loss of accuracy with use of look-up table Implementation: Calculate 50% and 80% target heart rates using formulas to create range.
Body Fat Percentage Male Formulas: Body_Density = *s *s 2 – *Age Body_Fat_% = 495/Body_Density – 450 Female Formulas: Body_Density = *s *s 2 – *Age Body_Fat_% = 495/Body_Density – 450
Body Fat Percentage Restrictions: Different formulas for each sex. Difficult to implement formulas in current form. 5KB needed to implement look-up tables for both sexes. Implementation: Shorten body density formulas to the following: M_Bdy_D = *s – *Age F_Bdy_D = *s – *Age Use formulas to calculate body fat percentage.
On Ready Func? Initialization Sex? Obtain Input BFP = MaleBFP = Female Display Maximum Display Target Heart Rate Display Body Fat Percentage Calculations Operating System Structure Multiple Repetition MaximumTarget Heart Rate Body Fat Percentage Male Female
Ready Weight? XXXX 1. Male 2. Female Age? XX Chest? XX Superailiac? XX Subscapular? XX Triceps? XX Thigh? XX Abdomen? XX Axilla? XX Body Fat % XX.X Repetitions? XX Maximum: XXXX Age? XX Target Heart Rate: XXX-XXX Resting Heart Rate? XX Display Interface for a 16 X 2 Line LCD Body Fat Percentage Multiple Rep Maximum Target Heart Rate
Test Plan
Software Test Plan Display - Initialization - Cursor placement - Read and write characters Keypad - Detection of key strokes on display
Software Test Plan Program Structure Correct Input User Interface Calculations Verify calculations by checking: - Boundary conditions - Out of range variables - Random variables within range
Add Hardware Test Plan