If you notice the formulas you will see that the height and the radius are multiplied by 2, both of them. When you multiplied these together it will be like multiplying 2x2.
Pi is used in the equation to determine the volume of a cylinder with r being the radius and h being the height of the clynder: V = Pi*r2h
Double its height or increase its radius by a factor of sqrt(2) = 1.4142 (approx) or some combination of changes to he height and radius.
it will increase more if you double the radius because the dimensions multiply and the curved surface has less area to cover as its height decreases and width increases
Since the volume of a cone is proportional to the square of the radius (look at the formula), double the radius would mean four times the volume.
Your diameter is double the radius. So the diameter is 6
the volume changes as radius squared and linear with height, so tripling radius and double of height gives 3 x 3 x 2 = 18 times more volume
#include<iostream> struct shape { virtual double area () const = 0; }; struct triangle : shape { triangle (double b, double h): base (b), height (h) {} double base, height; double area () const override { return base * height / 2; } }; struct circle : shape { circle (double r): radius (r) {} double radius; double area () const override { return 4 * atan(1) * radius * radius; } }; struct rectangle : shape { rectangle (double w, double h): width (w), height (h) {} double width, height; double area () const override { return width * height; } }; int main() { triangle t (10, 5); std::cout << "triangle with base " << t.base << " and height " << t.height << " has area " << t.area() << std::endl; circle c (5); std::cout << "circle with radius " << c.radius << " has area " << c.area() << std::endl; rectangle r (10, 5); std::cout << "rectangle with width " << r.width << " and height " << r.height << " has area " << r.area() << std::endl; }
Yes its height is the same as its radius
#include #include #define pi=3.141593 void main() { float r,h,a; clrscr(); printf("Enter the radius:\t"); scanf("%f",&r); printf("\nEnter the hight:\t"); scanf("%f",&h); a=pi*r*r*h; printf("\n The area of cylinder is: %f",a); getch(); }
The radius of a cylinder is independent of its height.
if you are given the circle's "height" then that is the diameter. the diameter is twice the length of the radius, so divide the height by two and you will get the radius.
if its a cone: volume= (1/3) base* height or volume= (1/3) pi *radius*radius[r squared]* height