For example:

-----------------------------------------------------------------------------

Write a program that asks the user to enter a latitude in degrees, minutes, and seconds and that then displays the latitude in decimal format. There are 60 seconds of arc to a minute and 60 minutes of arc to a degree; represent these values with symbolic constants. You should use a separate variable for each input value. A sample run should look like this:

Enter a latitude in degrees, minutes, and seconds:

First, enter the degrees: 37

Next, enter the minutes of arc: 51

Finally, enter the seconds of arc: 19

37 degrees, 51 minutes, 19 seconds = 37.8553 degrees

------------------------------------------------------------------------------

What would you use for the constant names and values and why? I had a feeling that I don't know how to come up with constants effectively.

Here is another example:

------------------------------------------------------------------------------

Write a short program that asks for your height in feet and inches and your weight in pounds. (Use three variables to store the information.) Have the program report your body mass index (BMI). To calculate the BMI, first convert your height in feet and inches to your height in inches (1 foot = 12 inches). Then, convert your height in inches to your height in meters by multiplying by 0.0254. Then, convert your weight in pounds into your mass in kilograms by dividing by 2.2. Finally, compute your BMI by dividing your mass in kilograms by the square of your height in meters. Use symbolic constants to represent the various conversion factors.

---------------------------------------------------------------------------------

I used:

const int FEET = 12; // CONVERSION FACTORS const double KILO = .4536; // CONVERSION FACTORS const double METER = .0254; // CONVERSION FACTORS

I want to know if you guys would try something different?

Heeeeelp!!