JamPol/Conversion_Program — pull request #1 by charounsons (2013-05-09 22:46:52+00:00)
Title: Corrections and Additions

Hi,

I've made some changes in the program and fixed some slight errors. Take a look!
Below is a detailed account of what I've changed and added.

1. I've added a makefile to the project. This will allow users not using Microsoft Visual Studio to compile the program more readily.

2. The #pragma once preprocessor directive is not needed in the .h; The two lines of code below it will prevent multiple inclusions of files.

3. Line #31 of the .cpp: typo fixed - changed the code from "convert weight from" to "convert weight to".

4. Line #73 and #132 of conversion_menu.cpp "amount = amount / hecto;" changed to "amount = amount / micro;". This was just a simple error in calculation.

5. Line #56 & #115: hecto has been changed to micro. Multiplying by the wrong constant.

6. system("pause") replaced with cin.get(); as the system(" ") command is local to VS. It throws an error if compiled in a unix system.

7. A README has been added to the project.

8. All references to weight were changed to mass. I thought it made more since to say mass instead of weight since we're actually converting masses and not weights. So, the name of the functions was changed to say menu_convertMass instead of menu_convertWeight.

9. There were statements like "convert weight to/from..." in the Convert Distance function. They were changed to say "convert distance.."

10. Attempt to store an int in a string doesn't throw an error, but is not appropriate. It leads to no output for distance conversions.

11. All integers have been changed to doubles to avoid having to type cast from an int to a double upon calculation.

12. Fixed notation as been specified so as to avoid scientific notation (lines 26 and 86 in conversion_menu.cpp).

Thanks,

Char