Assignment (2) - CS1440
Due Feb. 13
Write a C++ program for Problem (6) under Programming Projects at the end of Chapter (3).  In addition to the functions that that problem has requested, you need to have the following functions:

Double Convert_m_to_cm(double distance)
This function will convert the meter to centimeter.  So you need to ask users to input the unit for distance.  If the selected unit is meter, then you need to convert it to cm and return the value to the main function.

Double Convert_kg_to_gm(double mass)
This function will convert the kilogram to gram.  So you need to ask users to input the unit for mass.  If the selected unit is kilogram, then you need to convert it to gm and return the value to the main function.

Note that in the equation that is given for F, mass is in gram and distance is in centimeter.

Submit your program using:
~rt/bin/submit1440_102  assgn2  program.C

Submit a hardcopy at the beginning of the class on Tuesday.
  Here is a summary of what you need to submit: 1) Electronically, Your program, with correct heading and indentations.
2) Hardcopy, Your program, with correct heading and indentations.
Grading:
Heading 5 points
Indentations 5 points
Correct program without error 40 points
Program with all requested functions 20 points
Correct answer for test runs: (30 points)
a) m1 = 32400000 gm, m2 = 567000000 gm, d = 100 cm
b) m1 = 12 gm, m2 = 320 gm, d = 0
c) m1 = 32400 kg, m2 = 567000 kg, d = 1 m
d) m1 = 32400 kg, m2 = 567000 kg, d = 100 cm
e) m1 = 32400000 gm, m2 = 567000000 gm, d = 2 m