Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

need help on computer science. to write c++ program(visual studio) please!!! Cod

ID: 3835938 • Letter: N

Question

need help on computer science. to write c++ program(visual studio) please!!!

Code given:

Your task is to adapt the threefile example (DArea.h, DArea.cpp, TestArea.cpp) of Lecture 09 to a three file solution (DWallVol.h, DWallVol.cpp, Prog07.cpp) which computes the volume of the structural wall of a hollow, cylindrically shaped container or tank (inner and outer boundaries are the surfaces of collinear cylinders). The data input to your program should be as follows (a) The height (h) of the outer cylinder, in centimeters. (b) The diameter (d) of the outer cylinder in centimeters. In terms of the radius (r), the diameter is twice the radius. (c) The thickness (t) of the container wall (assumed to be uniform), in centimeters You should note that the vol of a cylinder is the product of the height and the lume cross sectional area of the circular end vcylinder The structural wall volume of our hollow cylindrical container can then be computed from the difference in cylindrical volumes associated with the exterior of the container and the interior hollow. vwall vcylinder vhollow where v hollow h (R-t For a schematic of the dimensions of this tank, see the figure on the next page.

Explanation / Answer

A)

#include<iostream>
using std::cin;
using std::cout;
using std::end1;
#include "DArea.h"
int main()
{
double inner,outer;
cout<<"enter the inner and outer radii of the ring: ";
cin>>inner>>outer;
cout<<end1<<"a ring with radii dimenssions of"<<inner<<"and"<<outer<<end1
<<"has surface area of"<<ringarea(inner,outer)<<"squre units."<<end1;
return 0;
}