Question: C++ program please help thank you so much !! Here are some helpful formulas for this program. centimeters meters x 100.0 kilograms= grams volume length

C++ program please help thank you so much !!
 C++ program please help thank you so much !! Here are
some helpful formulas for this program. centimeters meters x 100.0 kilograms= grams

Here are some helpful formulas for this program. centimeters meters x 100.0 kilograms= grams volume length x width x height mass- volume x density 1000.0 The program must do the following: .Prompt the user for the length, width, and height in meters and input them into 3 double variables. Prompt the user for the name of the cube' s material and input it into a string variable. Prompt the user for the density of the material in g/cm and input it into a double variable. Calculate the volume of the cube in cm. Note that the input is in meters and will need to be converted. . Calculate the mass of the cube in kg . Output the name of the material, volume (cm2), density(g/cm'), and mass (kg) of the cube with labels in the following format: Name Material Name Here Vol.(cm^ 3) Volume Dens. (g/cm 3) Density Mass (kg) Mass The output must be presented in 4 columns, each 20 characters wide. mass will be right justified. the mass must be presented with 4 digits of precision. The name column must be left justified. Volume, density, and The volume and density values will use 1 digit of precision and The following concepts from the lecture will be useful for this lab: setw(int) setprecision (int) .fixed left and right the string datatype .cin.ignore () . getline (istream, string) .The library EXAMPLE Length of cube in meters: 1 Width of cube in meters: 1 Height of cube in meters: 1 Material name: Solid Gold Density or solid Gold in grams per cubic centimeter: 19.3 Name Solid Gold Vol. (cm 3) 1000000.0 Dens. (g/cm 3) 19.3 Mass (kg) 19300.0000 EXAMPLE Length of cube in meters: 0.01 Width of cube in meters: 0.01 Height of cube in meters: 0.01 Material name: Pyrite (Fool's Gold) Density of Pyrite (Fool's Gold) in grams per cubic centimeter: 5.02 Na I's Gold) ol. (em 3) Dens.(g/cm 3) 5.0 Mass (kg) 0.0050 Pyrite

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!