|
|
Subject:
C Program - Converting a height of a person from feet and inches to centimeters
Category: Computers > Programming Asked by: misterpaul7-ga List Price: $50.00 |
Posted:
27 Apr 2006 14:44 PDT
Expires: 27 Apr 2006 18:19 PDT Question ID: 723479 |
I am trying to write a program that will convert a height of a person from feet and inches to centimeters. I want to use the relationship: 1 foot = 30.48 cm and 1 inch = 2.54 cm. I am trying to get the output in a form of a table where the left column would contain the height of the person in feet and inches from like 4'5" to 6'5" (with an increment of 1 inch), and the right column will contain the corresponding height in centimeters. The program will perform a conversion with the help of a function: void Conversion (int, int); The function has to be called from the for loop from the function main (). Since there is no return value, each portion of information will be printed inside the function. Any help with this program would be much appreciated. I am new to the C programming language and I am trying to write a program like this for my C programming class. | |
| |
| |
|
|
There is no answer at this time. |
|
There are no comments at this time. |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |