填空题If a circle has an area of 49π, what is the diameter of the circle?____
填空题
If a circle has an area of 49π, what is the diameter of the circle?____
参考解析
解析:
因为圆的面积为πr2,πr2 =49π,r=7,直径为2r=14。
因为圆的面积为πr2,πr2 =49π,r=7,直径为2r=14。
相关考题:
●试题六阅读下列程序说明和C++代码,将应填入(n)处的字句写在答卷的对应栏内。【说明】①为类Circle增加一个构造函数,该函数有一个参数,并在构造时将该参数值赋给成员radius。将该函数实现为一个非内联函数,并且使用参数列表的方式将类成员赋值。②为类Circle增加一个成员函数print(),使得可以输出有关圆的信息,比如下列程序Circle c;C.SetRadius (5) ;C.Print();将输出:The circle has radius of 5!③完成友元函数void CompareR(Circle *c1,Circle *c2)的定义,在屏幕中输出c1与c2比较radius大小结果,要求使用if-else结构完成。输出结果如下:The circle has radus of 5!The circle has radius of 10!c1c2源程序文件test7_3.cpp清单如下:#includeiostream.hclass Circle{public:Circle():radius (5) {}(1)void SetRadius(int r) { radius=r; }int GetRadius() { return radius; }(2)friend void CompareR(Circle *c1,Circle *c2);private:int radius;};void CompareR(Circle *c1,Circle *c2){(3)cout"c1c2"endl;elseif ((c1-GetRadius())==(c2-GetRadius()))cout"c1=c2"endl;elseif ((c1-GetRadius())(c2-GetRadius()))cout"c1c2"endl;}void main(){Circle c1;c1.SetRadius (5) ;c1.Print();Circle c2 (10) ;c2.Print();CompareR(c1,c2);}
阅读下列程序说明和C代码,把应填入其中n处的字句写在对应栏内。【说明】下面的程序能够计算不同图形的面积。程序中把每个图形的数据定义成结构类型,利用共同体类型描述2种图形的数据。程序根据输入参数代表的图形类型,求出图形的面积并输出。【程序】struct Circle{float x,y; /*圆心位置*/float r; /*圆半径*/};struct Rectangle{float width; /*矩形宽*/float length; /*矩形长*/};union shape{struct Circle circle;/*圆数据结构*/struct Rectangle rectangle;/*矩形数据结构*/};main(){union shape a;float area;int i;printf(“input number: 1circle,2rectangle,3 end\n”);scanf("%d",i);while (1) /*循环接收输入,并计算输出*/{switch(i){case 1:printf(“input radius:\n”);scanf(“%f”, (2);/*共同体类型变量接收输入*/area=3.1415926* (3);printf(“the area of circle=%f\n”,area);break;case 2:printf(“input width and length :\n”);seanf(“%f,%f”, (4);/*共同体类型变量接收输入*/。area=(5);printf(“the area of rectangle=%f\n”,area);break;}printf(“input number:1 circle,2 rectangle,3 end\n”);scanf(“%d”,i);}}
使用VC6打开考生文件夹下的工程test7_3,此工程包含一个源程序文件test7_3.cpp,其中含有一个类Circle的定义,但该类的定义并不完整。请按要求完成下列操作,将类Circle的定义补充完整。(1)为类Circle增加一个构造函数,该函数有一个参数,并在构造时将该参数值赋给成员radius。将该函数实现为一个非内联函数,并且使用参数列表的方式将类成员赋值。请在注释“//**1**”之后添加适当的语句。(2)为类Circle增加一个成员函数print(),使得可以输出有关圆的信息,比如下列程序Circle c;c.SetRadius(5);c.Print();将输出:The circle has radius of 5!请在注释“//**2**”之后添加适当的语句。(3)完成友元函数void CompareR(Circle *cl,Circle*c2)的定义,在屏幕中输出c1与c2比较radius大小结果,要求使用 if-else结构完成。请在注释“//**3**”之后添加适当的语句。输出结果如下;The circle has radus of 5!The circle has radius of 10!c1<c2注意:除在指定位置添加语句之外,请不要改动程序中的其他内容。源程序文件test7_3.cpp清单如下:include<iostream.h>class Circle{public:Circle():radius(5){}//**1**void SetRadius(int r) {radius=r; }int GetRadius() {return radius; }//**2**friend void CompareR(Circle *c1,Circle*C2);private:int radius;};void CompareR(Circle *c1,Circle *C2){//**3**cout<<"c1c2"<<endl;elseif((c1->GetRadius())==(c2->GetRadius()))cout<<"c1=c2"<<endl;elseif((c1->GetRadius())<(c2->GetRadius()))cout<<"c1<c2"<<endl;}void main(){Circle c1;c1.SetRadius(5);C1.Print();Circle c2(10);c2.Print();CompareR(c1,c2);}
( 13 )补充完整下面的类定义:const double PI=3 .14;class Circle{ // 圆形物体的抽象基类protected:double r; // 半径public:Circle ( double radius=0 ) : r ( radius ) {}【 13 】 ; // 计算圆形物体表面积的纯虚函数声明};class Cylinder:public Circle { // 圆柱体类double h; // 高度public:Cylindr ( double radius=0, doubli height=0 ) :Circle ( radius ) , h ( height ) {}Virtual double Area () { // 计算圆柱体的表面积return 2*PI*r* ( r+h ) ;}};
使用VC6打开考生文什夹下的工程test1_3。此工程包含一个test1_3.cpp,其中定义了类circle和column,其中column类由circle类protected派生,但两个类的定义并不完整。请按要求完成下列操作,将程序补充完整。(1)定义类circle的保护数据成员r和area,它们都是double型的数据。请在注释“//**1**”之后添加适当的语句。(2)添加类circle的无参数的构造函数,使circle对象的r默认值为0,请在汁释“//**2**”之后添加适当的语句。(3)添加派生类column构造函数的定义,传入的参数为double型的height和radius,并将具分别赋值给数擗成员h和基类的r,请在注释“//**3**”之后添加适当的语句。(4)完成派生类column的成员函数print的定义,使其以格式“r=_area=_”先输出半径r和底面积area,再以格式“h=_vol=_”输出高h和体积vol的值,请在注释“//**4**”之后添加适当的语句。输山结果如下:r=1 area=3.1416h=2 vo1=6.2832注意:除在指定的位置添加语句外,请不要改动程序中的其他语句。源程序文件test1_3.cpp清单如下:include<iostream.h>const double pi=3.1416;class circle{protected://**1**public://**2**circle(double radius){ r=radius;}void print(){area=r*r*pi;cout<<"r="<<r<<" "<<"area="<<ared<<endl;}};class column: protected circle{protected:double h;public://** 3 **void print(){// ** 4 **}};void main(){column col(1.0,2.0);Col.print();}
当对Draw Width进行设置后,将影响( )。A.Line、Circle、Pset方法B.Line、Shape控件C.Line、Circle、Point方法D.Line、Circle、Pset方法和Line、Shape控件
A line of position from a celestial observation is a segment of a ______.A.circle of equal altitudeB.parallel of declinationC.parallel of altitudeD.vertical circle
What defines a great circle?A.A curved line drawn on a Mercator ChartB.A course line that inscribes a loxodromic curveC.The shortest distance between any two points on the earthD.The smallest circle that can be drawn on the face of a sphere
What is the major advantage of a rhumb line track?A.The vessel can steam on a constant heading (disregarding wind,current,etc)B.The rhumb line is the shortest distance between the arrival and departure pointsC.It is easily plotted on a gnomonic chart for comparison with a great circle courseD.It approximates a great circle on east-west courses in high latitudes
This restaurant has become popular for its wide__________of foods that suit alltastes and pockets.A.divisionB.areaC.rangeD.circle
当设置了容器对象的DrawWidth属性后,会影响()A、Pset、Line、Circle方法B、Line、Shape控件C、Pset、Line、Circle方法和Line、Shape控件D、Line、Circle、point方法
当对DrawWidth进行设置后,将影响()。A、Line、Circle、Pset和Line、Shape控件B、Line、Circle、PsetC、Line、Circle、Poine方法D、Line、Shape控件
单选题关于图3.19的叙述()是不正确的。A Rectangle类和Circle类都有名为area的属性,这两个属性一定是相同的属性B Rectangle类和Circle类都有名为getArea的操作,这两个操作一定是相同的操作C Rectangle中名为length的属性和Circle类中名为radius的属性,这两个属性一定是不同的属性D Shape类有一个属性,Circle类有两个属性,Rectangle类有三个属性
单选题In the figure below, a small circle, with radius x, is inside a larger circle, with radius 6. What is the area, in terms of x, of the shaded region?A6π-2πxB6π-πx2C12π-2πxD36π-2πxE36π-πx2
单选题A circle with center A has its center at (6, -2) and a radius of 4. Which of the following is the equation of a line tangent to the circle with center A ?Ay=3x+2By=2x+1Cy=-x+5Dy=-2Ey=-6
单选题A circle has an area of A, A second circle has a diameter four times that of the first circle. What is the area of the second circle?A2AB4AC8AD16AE32A
单选题Circles O and P intersect at exactly one point, as shown in the figure above. If the radius of circle O is 2 and the radius of circle P is 6, what is the circumference of any circle that has OP as a diameter?A4πB8πC12πD16πE64π
单选题If the ratio of the area of a sector to the area of the circle is 2:3. what is the ratio of the length of the arc in the sector to the circumference of the circle?A3/2B2/3C4/9D1/4E9/4
单选题Vertically below the deckline is a circle whose outside diameter is 300mm.It is called the().Athe deck lineBPlimsoll discCPlimsoll lineDsummer load line
单选题Two circles, P and Q, lie in the same plane. If the center of circle Q lies on circle P, then in how many points could circle P and circle Q intersect?Ⅰ. 0Ⅱ. 1Ⅲ. 2AⅠ onlyBⅡ onlyCⅢ onlyDⅠ, Ⅱ and ⅢEⅡ and Ⅲ only
单选题下列程序的运行结果是( )。class Shape{ public Shape(){ System.out.print("Shape"); }}class Circle extends Shape{ public Circle(){ System.out.print("Circle"); }}public class Test{ public static void main(String[]args){ Shape d=new Circle(); }}AShapeBCircleCShapeCircleD程序有错误
单选题Concerning a celestial observation,the azimuth angle is measured from the principal vertical circle to the().AGreenwich celestial meridianBhour circle of the bodyClocal celestial meridianDvertical circle of the body
单选题An oceangoing ship of 400 gross tons and above must be fitted with a standard discharge shore connectionWhat is the size of the bolt circle diameter of the shore connection required to transfer oily ballast to a shore side reception facility?()A125 mmB183 mmC215 mmDIt depends on outside pipe diameter
单选题If the radius of a circle is increased by 40%, how much will the area increase?A16%B20%C40%D80%E96%