JamesMadisonUniversity

Computer Science Department


CS 139 Lab: Health and Fitness Calculators


Objectives:

  • Introduce students to two file applications
  • Introduce students to basic function implementation
  • Have students work as part of a "team" where they implement only one piece of the application
  • Use several parameter functions.

Background:

BMI stands for Body Mass Index and is a way to calculate whether a person is at a healthy weight. Target heart rate is the rate at which your heart should beat during sustained aerobic exercise. This application will provide functions to calculate these values based on user supplied input.

New Terms:

Students should already be familiar with basic function operation.

Materials:

You will write all classes from scratch or using the template program.

Group A - See specifications in L05-02a
Group B - See specification in L05-02b

Acknowledgment Author: Nancy Harris
Calculations from webmd.com

1 General Instructions:

Create a folder for this lab. Create your half of the application independently. Since you are not working on both halves, you will need to wait to test until your partner is finished.

Email one application from one partner to the other. Download the program to the same directory as the other half lives.

Work together with your partner to test the application. You may do this on one machine. When you both have the assignment working, submit both to the Blackboard Assignment.  Make sure you include both partner's names in the comments and have each person place their name into the header of the file in which they worked.


Updated 09/27/2010 (nlh)