Question: c++ language 2) You wrote this program last class. Now you are going to read the data from a file and calculate the same information
2) You wrote this program last class. Now you are going to read the data from a file and calculate the same information and output to a file. The data can be found in milk.txt that is attached to this drop box. The file has radius of the base and then the height of the container. Dairy Farm decided to ship milk in containers in the form of cubes rather than cylinders. Write a program that reads the radius of the base and the height of a cylindrical container from a file and outputs the side of the cube with the same volume as the cylindrical container to an output file called output.txt. Output, the radius, height and the volume to the output file. 2) You wrote this program last class. Now you are going to read the data from a file and calculate the same information and output to a file. The data can be found in milk.txt that is attached to this drop box. The file has radius of the base and then the height of the container. Dairy Farm decided to ship milk in containers in the form of cubes rather than cylinders. Write a program that reads the radius of the base and the height of a cylindrical container from a file and outputs the side of the cube with the same volume as the cylindrical container to an output file called output.txt. Output, the radius, height and the volume to the output file
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
