Menu

[Solved] C Program Please Follow Instructions Int Main First Write Program Following 1 Read Height Q37271873

C++ Program

Please Follow Instructions

Have int main first

Write a program that does thefollowing:

1. Read in a height in feet and inches(feet should be an integer, while inches should be a float).

2. Output the equivalent height inmeters (as a float).

You must use at least threefunctions:

  1. One for input.
    1. This function should promptthe User for the feet and inches within the body of thefunction.
    2. It will then return them as ByReference arguments through the parameter list.
  2. One for calculating.
    1. This function should receivethe feet and inches through the parameter list as By Valuearguments and return the converted metric value back through thefunction name.
  3. One for output.
    1. This function does not returnanything. It receives the metric value through the parameter listand prints out the value.

Include:

  1. A loop that lets the userrepeat this computation for new input values. When each computationis finished, the program will ask the user whether he/she wants tocompute again.

Note: One foot = 0.3048 meters. Oneinch is equivalent to 2.54 centimeters.

Expert Answer


Answer to C++ Program Please Follow Instructions Have int main first Write a program that does the following: 1. Read in a height … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *