搜索资源列表
drawing
- 编写求解几何图形(如直线、三角形,矩型,圆,多边型)的周长、面积的应用程序,要求尽可能多的用到面向对象技术的特点,如继承,多态,封装,抽象类,接口,内部类,包等技术。写出算法。-prepared to solve geometric shapes (such as linear, triangular, rectangular, round, the multilateral type) of the perimeter, the area of application procedures,
bao
- (1) 实现一个Point类,该类包含表示坐标的两个int型变量x、y,构造方法Point()和Point(int xx, int yy),返回x值和y值的int getX()和int getY()方法,计算两点间距离的double distance(Point)方法。其中计算平方根用Math.sqrt()方法。 (2) 实现一个Circle类,该类包含表示圆心的Point型变量center,表示半径的int radius变量,以及构造方法Circle()、Circle(int xx,int
分别定义图形类Shape(抽象基类)
- 分别定义图形类Shape(抽象基类),继承类矩形类Rectangle、正方形类Square、 圆形类Circle;并且计算周长和面积。在另一个main函数中分别创建矩形、 正方形和圆形对象,设置所需的属性值,打印其周长和面积。(备注:只要把该文件解压,把里面的东东COPY去即可使用)-Graphics categories are defined Shape (abstract base class), the succession of quasi-rectangular type R
java
- java课程中,使用接口实现对圆和矩形的周长及面积的计算-java course, using the interface on the calculation of the perimeter and area of circular and rectangular
Triange
- (三角类)设计一个类的名字,扩展GeometricObject.The三角类包含: *三双数据字段命名side1,side2,并使用默认值1.0 side3来表示三角形的三个方面。 *一个无参数的构造函数创建一个默认的三角形。 *构造函数创建一个具有指定side1,side2三角形和side3。 *在所有3个数据字段的访问方法。 *命名getArea()方法返回这个三角形的面积。 *命名getPerimeter()方法返回这个三角形周长。
Triangle
- 我自己写的java程序,实现输入三个点的坐标,输出能否构成三角形并输出面积和周长-I wrote it myself java process, input the coordinates of three points, the output can constitute a triangle and the output area and perimeter
shiyan3
- 这是实验程序;是求三角形,圆,矩形等多边形周长和面积的JAVA程序-This is the experimental procedure is seeking a triangle, round, rectangular and other polygonal perimeter and area of the JAVA program
RightTriangle
- Java code where user can enter the height and base of a triangle and the program will calculate the area and perimeter if it is a right triangle
Shape
- 求一个几何图形的周长和面积,包括圆,三角形,四边形-For a perimeter and area of geometric shapes, including round, triangular, quadrilateral
asasss
- 计算三角形的面积和周长。 通过输入三点坐标的方法来确定一个三角形,并输出三角形的面积和周长。-Calculation of area and perimeter of the triangle. By entering the three-point method to determine the coordinates of a triangle, and the output of the area and perimeter of the triangle.
Square
- 创建一个长方形类square 要求: -有两个以上构造函数 -方法: -能设置长、宽、填充颜色和边框颜色 -能返回以上属性 长方形的面积 长方形的周长 -Create a rectangular square class requirements:- have more than two constructors- Method:- be able to set the length, width, fill color and border color- t
triangle2
- 一个功能比较完善的求解三角形周长和面积的源码-A function of relatively perfect solution triangle perimeter and area source
Java_biancheng
- 本实例通过对一个Java程序的开发过程,详细说明了如何使用面向对象思想实现Java编程,给出了作者的经验之谈。程序是这样的:当用户输入一个图形(例如:圆或正方形)的必要参数,将显示该图形的面积和周长。 -This instance of a Java program through the development process, detailing how to use the object-oriented Java programming to achieve given the a
AreaAndLength
- 类的封装 1. 实验目的 使用类来封装对象的属性和功能。 2. 实验要求 (1)编写一个简单的Java应用程序,该程序中定义3个类:Tangle、Lader和Circle,分别用来刻画“三角形”、“梯形”和“圆形”,具体要求如下: Tangle类具有类型为double的三条边,以及周长、面积属性,具有计算并返回周长、面积以及三条边的功能,另外还要具有一个boolean型的属性,用来判断三个数能否构成一个三角形。 Lander类具有类型为
Count
- 计算三角形的面积和周长,要求设计出点数,通过输入三点坐标的方法来确定一个三角形,并输出三角形的面积,周长等。-Calculate triangle area and perimeter, to design the points, by entering the three methods to determine the coordinates of a triangle, and the output of the triangle area and perimeter.
Tuxing
- 编写求解集合图形周长,面积的应用程序,要求集合图形要求至少包含直线,三角形,矩形等类型,能计算出两个图形之间的距离。-The preparation of a collection of graphics to solve perimeter, area of application, requirements include a collection of graphics requires at least linear, triangular, rectangular and other
zhouchang
- 在图形界面下计算三角形周长,对输入的三边判断是否可构成三角形-Calculation of the triangle in the graphical interface perimeter, to determine whether the input can constitute a trilateral triangle
areaandlength
- 计算长方形、圆形、梯形的面积和周长的Java源代码-Calculating rectangular, round, trapezoid area and perimeter of the Java source code
1
- 求长方形面积和周长,但是操作者要给出长和宽还有半径-Seeking a rectangular area and perimeter, but the operator should be also given length and width of the radius
perimeter-of-circle
- a very nice example with output to calculate perimeter of circle