Fill This Form To Receive Instant Help
Homework answers / question archive / writing a C++ program:Skills Needed: Computing Basic Geometric Formulas cin, cout, constants, arithmetic expressions, rounding, int main, meaningful variable names, spacing, indentation, documentation, output
writing a C++ program:Skills Needed: Computing Basic Geometric Formulas cin, cout, constants, arithmetic expressions, rounding, int main, meaningful variable names, spacing, indentation, documentation, output.Create a program to compute answers to some basic geometry formulas. The program prompts the user to input a length (in centimeters) specified as a floating point value. The program then echoes the input and computes areas of squares and circles and the volume of a cube. For the squares, you will assume that the input length value is the length of a side. For the circles, this same value becomes the diameter. Use the meter value input to calculate the results in square (or cubic) meters and then print the answers in square (or cubic) meters.
You are to run the program THREE times using the following input values:
Please turn in the program and the outputs of running the program three times as directed. Be sure to use good style, appropriate comments and make use of constants in this program.
Important Notes
Sample Output
Your output format should look similar in style to this example below.
Geometry formulas by (Your name)
Enter one floating point number for length, 123.4
The number you entered is 123.4 cm or xx.xxxx m. (where xx.xxxx is 1.2300)
Area of square xx.xxxxxxx sq. m.
Area of a circle xx.xxxxxxx sq. m.
Difference is xx.xxxxxxxx sq. m.
Cube volume rounded down is xx.xxxxxxxx cu. m.
Cube volume rounded up is xx.xxxxxxxx cu. m.
Press any key to continue