A rectangle has perimeter 44 cm.Find its area if its length

suciya2022-10-04 11:39:541条回答

A rectangle has perimeter 44 cm.Find its area if its length is 5cm less than twice its width.

已提交,审核后显示!提交回复

共1条回复
武凌人远 共回答了32个问题 | 采纳率90.6%
perimeter 44 cm,
length is 5cm less than twice its width
so,
length+width=22
length+5=2*width
so,
length=13cm,width=9cm
area=length*width=13*9=117cm^2
1年前

相关推荐

if we cut the circle into a rectangle ,its perimeter will ad
if we cut the circle into a rectangle ,its perimeter will add up 6 cm ,can you work out the area of the circle?
___________________________________________
if the perimeter of a rectangle is 40 cm and its length is x cm ,then the width is
___________________________________________
if the radius of a circle is 3 cm,can you work out its perimeter?
___________________________________________
if we draw the largest circle in a square whose length is 4 cm ,then its perimeter is?
___________________________________________
kk观tt1年前1
lssmf001 共回答了16个问题 | 采纳率100%
1、如果用一个圆围成一个长方形,它的周长总共6cm,你能算出这个圆的面积吗?
[6/(2π)]^2 * π = 9/π (cm^2)
2、如果一个长方形周长40cm,长x cm,那它的宽是多少?
40/2 - x = 20-x (cm)
3、如果一个圆半径3cm,你能算出它的周长吗?
2*3*π = 6π (cm)
4、如果在一个边长4cm的正方形内画一个最大的圆,这个圆的周长是多少?
The diameter of the circle equals the length of the square,so its perimeter is 4π (cm).
既然是英语题,我就不写中文答案了,只把题目翻译一下
Shade 87.5% of the area of the rectangle. explain 87.5% by 7
Shade 87.5% of the area of the rectangle. explain 87.5% by 72 is 63
十万火急,要英文的.快啊.谢谢!
laser6261年前1
温暖的桔子 共回答了17个问题 | 采纳率88.2%
Cut the rectangle into 8 triangles ,then shade 7 pieces of them.
If each triangle stand for 9 ,then 7 pieces is 63 ,and the whole rectangle is 72.
So 87.5% by 72 is 63 .
the circumference of rectangle ABCD is 16cm.four squares are
the circumference of rectangle ABCD is 16cm.four squares are drawn around the four sides of the rectangle,as the following picture shoes.the sum of the areas of the four squares is 68cm2 .what is the area of rectangie ABCD?
nkquick1年前1
匕禾页FF 共回答了25个问题 | 采纳率100%
长方形 ABCD 的周长是 16 cm.四个正方形画在长方形的四边周围,如下图:图在哪?四个正方形所在的位置如图所示,其面积总和是 68 cm2 .长方形 ABCD 的面积是什么?
一道英文数学题(微积分)The dimensions of a rectangle are changing in su
一道英文数学题(微积分)
The dimensions of a rectangle are changing in such a way that the area remains 24 in^2.At what rate is the perimeter changing at the instant when one side is 6 in,long and is increasing at the rate of 0.3 inch per minute?
坏坏拽拽1年前3
醉弹烟灰 共回答了19个问题 | 采纳率89.5%
Let l denote the perimeter,a one side
(l-2a)/2*a=24,that is la-2a^2=48
differentiate (l-2a)/2*a=24 respect to the time t
a*dl/dt+l*da/dt-4a*da/dt=0
a=6,da/dt=0.3 insert we have (l=(24/6+6)*2=20)
6dl/dt+20*0.3-4*6*0.3=0
dl/dt=0.2 is the answe
英语翻译find the dimensions of the rectangle with greatest area
英语翻译
find the dimensions of the rectangle with greatest area assuming the rectangle is positioned as in the figure
阿康01年前3
洞办 共回答了16个问题 | 采纳率81.3%
找到尺寸的长方形的最大面积呈矩形位置如下图
How many ? are there in this picture A.rectangle B.circle C.
How many ? are there in this picture A.rectangle B.circle C.triangles
夏碟儿语1年前2
haigelisi 共回答了508个问题 | 采纳率20.9%
B
java 求解释现有一个Rectangle类,请设计一个柱形类cuboid。 此类具有两个成员变量,(1)R
java 求解释

现有一个Rectangle类,请设计一个柱形类cuboid。

  1. 此类具有两个成员变量,(1)Rectangle类型的成员变量rect(长方体以长方形做底)和(2)height(柱形的高)。

    这是给的Rectangle代码

可是Rectangle中没有rect这个变量啊??

ytwdh1年前1
lmddy 共回答了22个问题 | 采纳率81.8%
'Rectangle类型的成员变量rect ' 楼主你好好读下题rect就是个自定义名字而已
就是叫你定义一个住形体类 有2个属性 一个是double类型的高height 一个是
Rectangle类型的底面积rect 就是个引用关系 和继承没关系
a rectangle shoe box barcode sticker must be stuck on the pr
a rectangle shoe box barcode sticker must be stuck on the proper marked position拜托了各位
金ww1年前1
丛林之王弩 共回答了14个问题 | 采纳率92.9%
a rectangle shoe box barcode sticker must be stuck on the proper marked position 一个长方形鞋盒条码贴一定要贴在正确标注的位置
we'll make a kite ———— a circle and rectangle 填with in for 哪
we'll make a kite ———— a circle and rectangle 填with in for 哪个啊...
旋风9291年前4
forly87 共回答了18个问题 | 采纳率94.4%
with 用的意思.
我们要用圆形支架和长方形支架做一个风筝
It is long ang smooth.It is a rectangle.I can draw a line wi
It is long ang smooth.It is a rectangle.I can draw a line witeh it.It is a r根据字母提示填空
微米09321年前1
djh3864891 共回答了20个问题 | 采纳率95%
ule
The biscuit is a rectangle.(划线部分是a rectangle)
The biscuit is a rectangle.(划线部分是a rectangle)
() () is the biscuit 对划线部分提问
flylove20021年前2
mzl007007 共回答了13个问题 | 采纳率100%
what shape
The desk ia (a rectangle).(对括号部分提问)There are(four) diamonds
The desk ia (a rectangle).(对括号部分提问)There are(four) diamonds in this picture.( 对括号部分提
会唱歌的叶子1年前2
雨巷 共回答了15个问题 | 采纳率93.3%
The desk ia (a rectangle).(对括号部分提问)
What's the shape of the desk?
There are(four) diamonds in this picture.( 对括号部分提
How many diamonds are there in this picture?
请翻译 As shown in the following diagram,a rectangle has been d
请翻译 As shown in the following diagram,a rectangle has been divided into four small rectangles A,B,C,D.And the area ofA,B and C are respectively two square centimeters,four square centimeters,and six square centimeters.Then,hou many square centimeters is the area of the original rectangle?
mykoko681年前4
小11ee 共回答了22个问题 | 采纳率86.4%
如图所示,一个长方形被分成四个小长方形,A、B、C、D.已知A、B、C的面积分别是2、4、6平方里面.问原长方形的面积是多少?
I can make (a house)(划线部分提问)We have some small rectangle(划线提
I can make (a house)(划线部分提问)We have some small rectangle(划线提问)
6001871年前2
gaokefengzn 共回答了16个问题 | 采纳率93.8%
1、Whatcanyou do 2、What do you have
英语翻译– Each register(寄存器) figure shows a rectangle divided in
英语翻译
– Each register(寄存器) figure shows a rectangle divided into fields that represent the fields of the register.Each field is labeled with its bit name,its beginning and ending bit numbers above,and itsread/write properties below.A legend explains the notation used for the properties.– Reserved bits in a register figure designate a bit that is used for future device expansion.
支离破碎YOO1年前3
lelegao 共回答了14个问题 | 采纳率85.7%
每个寄存器图案显示成一个被分为代表这个寄存器的一个矩形区域.每个区域都被自己的字节名字所标记,这个区域起始于几个数位上,并且他的读写特点如下.一个经典的观点解释了用于性能的符号问题.在寄存器图案设计中保留一个数位有利于未来设备扩充的需要
选出与单词相符的图片。 ( ) 1. rectangle A. B. (
选出与单词相符的图片。
( ) 1. rectangle A. B.
( ) 2. circle A. B.
( ) 3. triangle A. B.
ddoo1年前1
仗嘴ff 共回答了17个问题 | 采纳率94.1%
1. B 2. B 3. B
The area of a rectangle is 60 cm2.The length of the rectangl
The area of a rectangle is 60 cm2.The length of the rectangle is 12 cm.Determine the perimeter of
中文和解答.
最后是of rectangle
hua3121年前1
月清辉 共回答了18个问题 | 采纳率94.4%
一个长方形的面积是60平方厘米,长方形的长是12厘米,长方形的周长是多少?
60/12=5,2(5+12)=34
the diagram shows a rectangle ABCD where A is (3,2) and B is
the diagram shows a rectangle ABCD where A is (3,2) and B is (1,6)
(I)Find the quation of BC
(ii)Given that the equation of ACis y=x-1,find the coordinates of C
(iii)the perimeterof the rectangle ABCD
gupiao521年前1
佛前鱼 共回答了18个问题 | 采纳率94.4%
在矩形ABCD中,A是(3、2)和B是(1,6)
(1)求了BC的方程
(2)AC的方程是y = x - 1,求C的坐标
(3)求矩形ABCD周长
解(1)y=(1/2)x+11/2
(2) (13,12)
(3) 16(根号5)
(原题中the quation of BC应为the equation of BC,the equation of ACis y=x-1应为
the equation of AC is y=x-1,the perimeterof the rectangle ABCD应为
the perimeter of the rectangle ABCD)
100分 解决java import java.awt.Point;import java.awt.Rectangle;
100分 解决java
import java.awt.Point;
import java.awt.Rectangle;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
public class Dining extends JFrame {
private static final long serialVersionUID = 1L;
private JPanel jContentPane = null;
private JButton jButton = null;
private JScrollPane jScrollPane = null;
private JTextArea jTextArea = null;
/**
* This is the default constructor
*/
static Chopsticks[] stick=new Chopsticks[5];
static Philosopher[] philosopher=new Philosopher[5];
static Thread[] thread=new Thread[5];//五个线程代表五个哲学家
public Dining() {
super();
initialize();
}
/**
* This method initializes this
*
* @return void
*/
private void initialize() {
this.setSize(365,361);
this.setLocation(new Point(240,320));
this.setContentPane(getJContentPane());
this.setTitle("哲学家就餐问题");
}
如何设置入口,使程序能运行
public void run(){
while(true){
eat();//吃东西
try{
Thread.sleep(7000);//睡眠7000毫秒
}catch(InterruptedException e){
e.printStackTrace();
}
think();//思考
try{
Thread.sleep(7000);
}catch(InterruptedException e){
e.printStackTrace();
}
}
}
}
}
紫绶高轩1年前1
jerryyeoh 共回答了14个问题 | 采纳率85.7%
加一个main方法噻
public static void main(String args[]){
Dining d=new Dining();
d.setVisible(true);
}
这个小程序貌似在讲解线程的同步和死锁
问题很经典,不过如果用银行转账那个来举例应该更容易理解
the width of a rectangle is 7 cm shorter than the length .if
the width of a rectangle is 7 cm shorter than the length .if the perimeter of the rectangle is 38 cm ,find
(a) the width
(b) the length
(c) the area of the rectangle
hongguit1年前3
空古悠蓝 共回答了13个问题 | 采纳率84.6%
题意:一个矩形的宽度比长度短了7厘米.如果矩形的周长是38厘米,得到
(a)宽度 
(b)长度
(c)矩形区域
设length长=x,则width宽=x-7
perimeter周长=2(x+x-7)=38.
解之,得x=13
the width宽=the length长-7=13-7=6
(b) 由(a)知the length长=13
(c)the area of the rectangle 面积=the width长×the length宽=13×6=78
2、创建一个名为Rectangle的类来表示一个矩形,矩形的长度和宽度由构造方法来确定(要求长和宽的范围为0~50).为
2、创建一个名为Rectangle的类来表示一个矩形,矩形的长度和宽度由构造方法来确定(要求长和宽的范围为0~50).为Rectangle类创建下列方法:
1)getArea返回矩形的面积,;
2)getPerimeter返回矩形的周长;
xinxin-1234561年前1
ethaj 共回答了17个问题 | 采纳率88.2%
public class Rectangle {
double chang,kuan;
public double getArea(double chang,double kuan){
return chang*kuan;
}
public double getPerimeter(double chang,double kuan){
return (chang+kuan)*2;
}
public Rectangle(){
}

public Rectangle(double chang,double kuan){
if(0
定义一个长方形(Rectangle)类,包括长度(lenth)和宽度(width)数据成员
定义一个长方形(Rectangle)类,包括长度(lenth)和宽度(width)数据成员
定义一个长方形(Rectangle)类,包括长度(lenth)和宽度(width)数据成员,重载“”运算符,用来实现两个长方形比较面积,例如两个长方形R1和R2,如果R1面积小于R2,则R1返回true,否则返回false.重载“==”运算符,如果两个面积相同,则返回true,否则返回false.
(要求:定义了类,且包含三个运算符重载函数,main()中包括简单示例,调用重载后的运算符)
wy58001年前1
音乐帅帅 共回答了21个问题 | 采纳率95.2%
// ConsoleApplication4.cpp :定义控制台应用程序的入口点.
//
#include "stdafx.h"
#include
using namespace std;
class cMyRect
{
public:
int m_Length; //长 囧
int m_Width; //宽
bool operator(cMyRect myRect){ return m_Length*m_Width > myRect.m_Length*myRect.m_Width; }
};
int _tmain(int argc,_TCHAR* argv[])
{
cMyRect rect1,rect2;
cout rect2)
cout
why is the golden rectangle is an important shape in our lif
why is the golden rectangle is an important shape in our life?不求翻译...
lzxcandy1年前2
劣质牛奶 共回答了8个问题 | 采纳率100%
Because it is followed the golden rate 1.618:1.In the golden rectange,the square value of longer side equals to the product of circumference multiplies the shorter side.The rate is also the basic rate of human body,which inspires our intrinsic affinity with it.Thus it is the most aesthetic valuable shape.
用java编写矩形类上机题1:定义一个名为Rectangle矩形类,其数据成员为矩形的左下角和右上角两点的坐标,有计算矩
用java编写矩形类
上机题1:定义一个名为Rectangle矩形类,其数据成员为矩形的左下角和右上角两点的坐标,有计算矩形周长及面积的方法。有两个构造方法,其中一个是默认的,通过调用带参数的构造方法将两点坐标都初始化为(0,0);另一个构造方法带有4个参数,分别表示左下角和右上角的坐标。再定义一个类,首先利用默认构造方法创建一个Rectangle对象,左下角和右上角坐标分别设为(2.1,3.2)、(5.2,6.3),并求出其周长和面积;再利用带参数的构造方法创建一个Rectangle对象,初始化左下角和右上角坐标为(1,2)、(6.8,10.5),并求出其周长和面积。
ss159172217221年前1
www559 共回答了12个问题 | 采纳率83.3%
class Rectangle{
double x1, y1, x2, y2;
Rectangle(){
this(0,0,0,0);
}
Rectangle(double x1, double y1, double x2, double y2){
this.x1 = x1;
this.y1 = y1;
this.x2 = x2;
this.y2 = y2;
}
double getArea(){
return Math.abs((x1-x2)*(y1-y2))/2;
}
double getPemi(){
return Math.abs((x1-x2)+(y1-y2))*2;
}
}
public class Test{
public static void main(String[] args) {
Rectangle a = new Rectangle();
a.x1=2.1;
a.y1=3.2;
a.x2=5.2;
a.y2=6.3;
System.out.println("面积是"+a.getArea()+" 周长是"+a.getPemi());
Rectangle b = new Rectangle(1, 2, 6.8, 10.5);
System.out.println("面积是"+b.getArea()+" 周长是"+b.getPemi());
}
}
AE 里在形态层上选ADD后的rectangle' 或者是ellipse...有什么作用啊?
钙化1年前1
流星薄荷雨 共回答了22个问题 | 采纳率81.8%
以形状中心点绘制一个rectangle(正方形)或者是ellipse(圆形)
可以通过开关进行掏空,并做形状叠加、扩散的动画
是绘制特殊图形的一种方法,也是做形状碰撞动画的一种方法
In the fihure ,the length of rectangle ABCD is 3 times its w
In the fihure ,the length of rectangle ABCD is 3 times its width.find the value of m
jinhong05171年前2
fgty54gh 共回答了16个问题 | 采纳率93.8%
题目的意思是长是宽的3倍,求m.所以根据这个列方程就可以了:
由于长平行于x轴,所以长度就是用B的横坐标减去C的坐标,得长=6-(1-m)=m+5
同理宽度就是A的纵坐标减去B的,就是:(m+1)-(10-2m)=3m-9
所以有m+5=3*(3m-9)
解得m=4
一道数学题:A rectangle with a diagonal of length x is twice as lo
一道数学题:A rectangle with a diagonal of length x is twice as long as it is wide.What is the area of the rectangle?
梦遗松辽平原1年前1
听雨歌楼上1 共回答了23个问题 | 采纳率91.3%
ssume that its width is a.Accordingly,the length of the rectangle is 2a.
So we can establish a mathematical equation like that:
a^2 + (2a)^2 = x
The result is:a = x/(square root 5)
Then we can make out the area of the rectangle :S = a * 2a = 0.4x^2
求python3问题完成啊class Rectangle: """ A rectangle with a width a
求python3问题完成啊
class Rectangle:
""" A rectangle with a width and height. """
def __init__(self, w, h):
""" (Rectangle, number, number)
Create a new rectangle of width w and height h.
>>> r = Rectangle(1, 2)
>>> r.width
1
>>> r.height
2
"""
self.width = w
self.height = h
def area(self):
""" (Rectangle) -> number
Return the area of this rectangle.
>>> r = Rectangle(10, 20)
>>> r.area()
200
"""
tonycycu1年前1
ll杏 共回答了23个问题 | 采纳率82.6%
太简单,我都差点不好意思回答了。def area(self):
""" (Rectangle) -> number

Return the area of this rectangle.
>>> r = Rectangle(10, 20)
>>> r.area()
200
"""
return self.width * self.height
In Fig.4,ABCD is a rectangle.,The area of the shaded rectang
In Fig.4,ABCD is a rectangle.,The area of the shaded rectangle is
意思就是“如图4,ABCD是一个长方形,那么长方形的阴影部分的面积是多少?
quentin1年前1
没有什么不能说 共回答了10个问题 | 采纳率90%
AE=8,AD=6 => DE=10
AB//DC => ∠EDG=∠AED => DH/DG=AE/DE,HG/DG=AD/DE => DH=4,HG=3
=> HE=DE-DH=6
=> S=HE*HG=6*3=18
A rectangle has perimeter 22 m.Express the area of the recta
A rectangle has perimeter 22 m.Express the area of the rectangle as a function of the length (L) of one of its sides.
A(L) =
我写的是 A(L)= -L^2+11L
但是机器判出来是错的,为什么?
我还是喜欢石头1年前2
tianjie4000 共回答了14个问题 | 采纳率85.7%
答案是没问题的,是不是不符合机器判断的格式啊?
你换几种表示方法试试
如11L -L^2、L*(11-L)等
机器有时候就是有些死板
as the picture shows,The biggest rectangle can be divided in
as the picture shows,The biggest rectangle can be divided into6 aquares.if the area of the smallest square in the middle is 1,then what is the area of rectangle?
tt天使1年前1
阿九009 共回答了15个问题 | 采纳率100%
这是一道英文数学题
如图所示,最大的矩形可以被拆分为6个正方形,如果其中最小的面积为1,那么这个矩形的面积是多少?
C++定义描述矩形的类Rectangle,其数据成员为矩形的中心坐标(X,Y)、长(Length)与宽(Width).
C++定义描述矩形的类Rectangle,其数据成员为矩形的中心坐标(X,Y)、长(Length)与宽(Width).
定义描述矩形的类Rectangle,其数据成员为矩形的中心坐标(X,Y)、长(Length)与宽(Width).成员函数为计算矩形面积的函数Area()与构造函数.再定义描述圆的类Circle,其数据成员为圆的中心坐标(X,Y)与半径R,其成员函数为构造函数.再由矩形类与圆类多重派生出长方体类Cuboid,其数据成员为长方体的高(High)与体积(Volume).成员函数为:构造函数,计算体积的函数Vol(),显示矩形坐标(X,Y)、长方体的长、宽、高与体积的函数Show().主函数中用长方体类定义长方体对象cub,并用键盘输入(10,10,10,20,30,30,10,10),最后显示长方体的矩形坐标(X,Y)与长方体的长、宽、高与体积,并保存在文件TEST.TXT中.
花开又谢1年前1
ll10875 共回答了14个问题 | 采纳率100%
“再定义描述圆的类Circle,其数据成员为圆的中心坐标(X,Y)与半径R,其成员函数为构造函数”
这个的成员函数有哪些?
定义一个具有多态性的基类Shape,继承以下一些类:圆Circle类(坐标点和半径构成)长方形Rectangle
定义一个具有多态性的基类Shape,继承以下一些类:圆Circle类(坐标点和半径构成)长方形Rectangle
3.定义一个具有多态性的基类Shape,继承以下一些类:圆Circle类(坐标点和半径构成),长方形Rectangle类(两个不重合的坐标点构成),三角形(Triangle)类(三个互不重合的坐标点构成).编程,按shape.txt文件内容创建各类对象,求其面积.若为圆,则还要输出其半径,(另用GetR函数实现,不是虚函数).
Shape.txt文件说明:
若第一个字符为’C’,则后面为圆数据:x坐标,y坐标,圆半径三个实数;
若第一个字符为’R’,则后面为长方形数据:x1,y1,x2,y2坐标;
若第一个字符为’T’,则后面为三角形数据:x1,y1,x2,y2,x3,y3坐标;
若第一个字符为’X’,表示输入结束.
###要可以运行出来的哦######跪谢~
云宵子1年前1
chenchenfan 共回答了16个问题 | 采纳率62.5%
#include
#include
#include
#include
#define PI 3.14159
using namespace std;
class Shape
{
public:
virtual float getArea()=0;//纯虚函数
};
class Circle:public Shape
{
float x,y,r;
public:
Circle(float argx=0,float argy=0,float argr=0);
float getArea();
float getR();
};
Circle::Circle(float argx,float argy,float argr)
{
x=argx;y=argy;r=argr;
}
float Circle::getArea()
{
return PI*r*r;
}
float Circle::getR()
{
return r;
}
class Rectangle:public Shape
{
float x1,x2,y1,y2;
public:
Rectangle(float argx1=0,float argy1=0,float argx2=0,float argy2=0);
float getArea();
};
Rectangle::Rectangle(float argx1,float argy1,float argx2,float argy2)
{
x1=argx1;y1=argy1;x2=argx2;y2=argy2;
}
float Rectangle::getArea()
{
float length,width;
length=x1>x2 ? x1-x2 : x2-x1;
width=y1>y2 ? y1-y2 : y2-y1;
return length*width;
}
class Triangle:public Shape
{
float x1,x2,y1,y2,x3,y3;
public:
Triangle(float argx1=0,float argy1=0,float argx2=0,float argy2=0,float argx3=0,float argy3=0);
float getArea();
};
Triangle::Triangle(float argx1,float argy1,float argx2,float argy2,float argx3,float argy3)
{
x1=argx1;y1=argy1;x2=argx2;y2=argy2;x3=argx3;y3=argy3;
}
float Triangle::getArea()
{
float a,b,c,s;
//分别求三边
a=sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));
b=sqrt((x1-x3)*(x1-x3)+(y1-y3)*(y1-y3));
c=sqrt((x2-x3)*(x2-x3)+(y2-y3)*(y2-y3));
s=(a+b+c)/2;
return sqrt(s*(s-a)*(s-b)*(s-c)); //海伦公式求三角形面积
}
void main()
{
char shape;
Shape *ps;
float x1,y1,x2,y2,x3,y3,r;
ifstream inf("shape.txt");
if(!inf)
{
couty1>>r;
Circle c(x1,y1,r);
coutx2>>y2>>x3>>y3;
Triangle t(x1,y1,x2,y2,x3,y3);
cout
长方形用英语怎么读?长方形:rectangle
田大牛1年前3
凌星0920 共回答了14个问题 | 采纳率85.7%
英 ['rektæŋg(ə)l]
['rɛktæŋɡl]
入爱可谈够(中文说法)
rec tang gle
re发日和e的音
tang发贪的音
gle发够的音
请教Java~~~1、定义一个接口AreaInterface,接口中定义了抽象方法area().类Rectangle(长
请教Java~~~
1、定义一个接口AreaInterface,接口中定义了抽象方法area().类Rectangle(长方形)实现AreaInterface接口,该类有两个private访问权限的双精度浮点型变量x(长)和y(宽);Rectangle的构造方法,用来给变量x,y赋值;实现area()方法得到长方形的面积;Rectangle的toString()方法,返回一段字符串信息,内容包括长方形的长、宽和面积。定义一个TestArea类,在main()方法中;创建一个Rectangle的实例,长为10.0,宽为20.0,并调用toString方法输出相关信息。
2、在类Outer中定义一个String类型的私有变量s,其值为"I am Outer.”,在Outer中定义内部类Inner,Inner中定义一个String类型的私有变量s,其值为"I am Inner.”,内部类中定义一个say( )方法,该方法输出Outer和Inner中的s的值。再定义一个类TestInner,其中的main方法中调用Inner的say()方法。
3、写两个类,ClassA属于包package1,ClassA中有一个方法methodA(),该方法输出“I am methodA() in ClassA.”;ClassB属于包package2,在ClassB的方法methodB()中调用ClassA的methodA()方法,再输出“I am methodB() in ClassB.”。在ClassB的main方法中实例化ClassB,并调用mathodB()方法。
老诺亚1年前1
ssll 共回答了20个问题 | 采纳率95%
1.
TestArea.java
----------------------------------------
interface AreaInterface
{
public abstract float area();
}
class Rectangle implements AreaInterface
{
private float x, y;
public Rectangle(float X, float Y)
{
x = X;
y = Y;
}

@Override
public float area() {
return x * y;
}

public String toString()
{
return String.format("长方形的长为%1$.2f,宽为%2$.2f,面积为%3$.2f", x, y, area()) ;
}
}
public class TestArea {
public static void main(String[] args) {
Rectangle rectangle = new Rectangle(10.0f, 20.0f);
System.out.println(rectangle.toString());
}
}
----------------------------------------------
2.
TestInner.java
----------------------
class Outer{
private String s = "I am Outer.";

class Inner{
private String s = "I am Inner.";
public void say()
{
System.out.println(Outer.this.s);
System.out.println(this.s);
}
}
}
class TestInner {
public static void main(String[] args) {
Outer outer = new Outer();
Outer.Inner inner = outer.new Inner();
inner.say();
}
}
-------------------------------
3.
ClassA.java
-------------------
package package1;
public class ClassA {
public void methodA(){
System.out.println("I am methodA() in ClassA.");
}
}
---------------
ClassB.java
--------------------
package package2;
public class ClassB {
public void methodB(){
package1.ClassA classA = new package1.ClassA();
classA.methodA();
System.out.println("I am methodB() in ClassB.");
}

public static void main(String[] args) {
ClassB classB = new ClassB();
classB.methodB();
}
}
设计一个名为Rectangle的矩形类,其属性为矩形的左下角与右上角两个点的坐标,能计算矩形的面积.要有构造函数并实现,
设计一个名为Rectangle的矩形类,其属性为矩形的左下角与右上角两个点的坐标,能计算矩形的面积.要有构造函数并实现,析构函数可以不实现.用C++编写
wlmqjp1年前1
gldebf 共回答了17个问题 | 采纳率94.1%
Rectangle类定义如下:
class Point{ //先定义一个坐标类
int x,y;
public:
void setPoint(int m,int n){x=m;y=n;}
int getx(){return x;}
int gety(){return y;}
};
class Rectabgle{
Point p1,p2;
public:
Rectangle(int,int,int,int); //构造函数
void getPoint(Point,int&,int&);//获取坐标
void calcu(Point,Point);//计算矩形面积
Rectangle(){cout
rectangle is inscribed in a circle with diameter 6m.The form
rectangle is inscribed in a circle with diameter 6m.The formula for the area of the rectangle i
雁儿翩翩飞1年前1
楼主你要领头羊 共回答了17个问题 | 采纳率70.6%
设长方形的对角线与其中一边的夹角是a
则有 面积S=6*sina*6*cosa=36sina*cosa=18sin(2a)
(0
牛津5A问题写音标:very/ / easy/ /key/ /写单词:rectangle(同类词)afraid(反义词)
牛津5A问题
写音标:
very/ /
easy/ /
key/ /
写单词:
rectangle(同类词)
afraid(反义词)
kinfe(复数)
is ont(缩写)
have(单数动词)
there(同音词)
station(同义词)
施穗1年前1
维修zz 共回答了21个问题 | 采纳率81%
very /'veri/
easy /i:zi/
key /ki:/
1.triangle circle
2.好像是disafraid
3.knives
4.isn't
5.has
6.their
7.这个有点难度,想不出来
this orangs book ia a rectangle
美丽房屋1年前1
xuqiguei 共回答了25个问题 | 采纳率88%
难道是:这本橘色的书是长方形的.
orangs,不明白.
这个,非日语问题的说下.
C++中的类与对象问题.就是~Rectangle(){}什么意思啊?下面定义面积{}里的东西有什么用?
一叶障目的人1年前1
yanpefei 共回答了15个问题 | 采纳率86.7%
先来回答你的第一个问题:
~Rectangle(){}什么意思啊?
这是定义了一个析构函数.析构函数时与类名一样的.
作用是当对象脱离其作用域时(例如对象所在的函数已调用完毕),系统自动执行析构函数.析构函数往往用来做“清理善后” 的工作(例如在建立对象时用new开辟了一片内存空间,应在退出前在析构函数中用delete释放).
现在我再来回答你的第二个问题:
下面定义面积{}里的东西有什么用?
float getArea()
{
return Length*Width;
}
首先由float表明了该函数值返回值是一个float类型,函数名字是getArea.
return Length*Width;的意思是返回Length乘以Width的值,也就是把长乘以宽的值返回.这不就是求矩形面积吗?对吧!
长方形rectangle怎么用中文发音?A.rai 课 谈 沟 B.rai 课 ten 沟(中间的ten发数字十的音)
长方形rectangle怎么用中文发音?A.rai 课 谈 沟 B.rai 课 ten 沟(中间的ten发数字十的音)
C.rai 课 tang
三角形triangle怎么用中文发音?A.chuai 安 沟 B、chuai 昂 沟
jiaoqh821年前1
我很爱芬达 共回答了25个问题 | 采纳率88%
长方形:rai 克 谭 沟
三角形:踹 安 沟
A rectangle is 6 cm long.If the perimeter of the rectangle i
A rectangle is 6 cm long.If the perimeter of the rectangle is 28 cm,find the width of the rectangle
纷飞同1年前1
花间语情 共回答了14个问题 | 采纳率85.7%
[28 - (6x2)] / 2 = 7cm
the length of a rectangle 什么意思
the length of a rectangle 什么意思
我是要问,这个length指的是矩形的周长还是矩形的长?
谢谢!
我爱一条抬1年前4
小帅哥10 共回答了19个问题 | 采纳率73.7%
是矩形的长
length
[l eNW]
n.
长度, 长, 时间的长短, [语]音长
If we cut the circle into a rectangle,it perimeter will add
If we cut the circle into a rectangle,it perimeter will add up 6cm,can you work out area of circle?
touchf21年前3
没有同名 共回答了15个问题 | 采纳率100%
如果把一个圆剪成一个长方形,它的周长增加了6厘米,你能算出圆的面积吗?
英语翻译1.计算按钮的矩形;翻译上句就行Compute (X) rectangle.把那个要计算的X物体用物体名称代替就
英语翻译
1.计算按钮的矩形;
翻译上句就行
Compute (X) rectangle.
把那个要计算的X物体用物体名称代替就行吗?
忘记时间的钟1年前1
zlyzwx 共回答了19个问题 | 采纳率100%
Compute push-button rectangle
Well,arectangle chocolate cake.___,mum!
liveilwei1年前1
tjhn1 共回答了16个问题 | 采纳率87.5%
Well,arectangle chocolate cake.【please】,mum!
这个我也回答了吧
无疑后请采纳.
书山有路勤为径,学海无涯苦作舟.
-----------与君共勉-----------
函数 方程An area rug has a central 5m by 3m rectangle in a mosai
函数 方程
An area rug has a central 5m by 3m rectangle in a mosaic pattern,with a plain border of uniform width around it.The total area of the rug is 24m^2.Find the width of the border.
这是应用题,请演算这道题,最好写出过程.
bingrener1年前1
uuaibo1813 共回答了21个问题 | 采纳率90.5%
设宽度X
(2X+5)(2X+3)=24
4X^2+16X-9=0
(2X-1)(X+9)=0
X=1/2 m
下面这道题怎么样做啊the length of a rectangle is four times its width.
下面这道题怎么样做啊
the length of a rectangle is four times its width.if the perimenter is 60cm,what are the length and the width?
Green_Cross1年前5
wokaokao123 共回答了18个问题 | 采纳率94.4%
计算:
设宽为x,则长为4x
又因为周长为60
所以 2(x+4x)=60得到x=6
answer:
the length is 24cm,
the width is 6cm.
英语翻译In the rectangle ABCD,AB=5,BC=9,if the bisector of ∠BAD
英语翻译
In the rectangle ABCD,AB=5,BC=9,if the bisector of ∠BAD through the verter A meets BC at E,EF perpendicular to ED meets AB at F,then the length of BF is( )
对着镜子跳舞1年前4
詹宁 共回答了18个问题 | 采纳率88.9%
在矩形ABCD中,AB=5,BC=9,如果∠BAD 的平分线穿过点A交BC于点E,EF垂直ED交AB于F,那么BF的长度是多少?