- Scanner scanner of a simple compiler
- multicast 在局域网内用visual C++实现IP多播
- JRE.Cache2.0 Make your Joomla and Mambo website 100 times or more faster. Increase now the performance of your website with the Joomla accelerate component. The Joomla performance accelerate component will boost the performance of your Joomla website. In stead of generating each time a page dynamicly and making a lot of SQL queries pages are read and published from the cache.
- CHAP8_4 用MATLAB实现的离散系统灰色PID位置跟中系统
- psotb-beta-0.3 老外编的标准pso算法的matlab工具箱
- ifac NEURAL NETWORK PREDICTIVE TRAJECTORY TRACKING OF AN AUTONOMOUS TWO
文件名称:geometric
-
所属分类:
- 标签属性:
- 上传时间:2014-05-18
-
文件大小:1.51kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
1)编写一个Java应用程序,
1)该程序中有3个类:Triangle、Circle和cone,分别用来刻画“三角形”、“圆形”和“圆锥体”。具体要求如下:
a) Triangle类具有类型为double的三个边长度以及周长属性;定义构造函数,返回周长和修改三个边的方法。另外,Triangle类还具有一个boolean型的属性,该属性用来判断三个属能否构成一个三角形。
b) Circle类具有类型为double的属性半径、周长和面积;定义设置半径,返回面积的方法。
c) Cone类具有Circle类型的底,double类型的高这两个属性,定义构造函数,计算圆锥体体积的方法。
-1) write a Java application,
1) The program has three categories: Triangle, Circle and cone, were used to characterize the "triangle", "circle" and "cone." Specific requirements are as follows:
a) Triangle class has three types of double edge length and girth property define a constructor, returns three sides of the perimeter and modification methods. In addition, Triangle class also has a boolean type attribute, which is used to determine whether the three form a triangle.
b) Circle class with properties of type double the radius, circumference and area definitions set the radius, the method returns the area.
c) Cone Circle class has a bottom type, double type high these two properties, the definition of a constructor, method of calculating the volume of a cone.
1)该程序中有3个类:Triangle、Circle和cone,分别用来刻画“三角形”、“圆形”和“圆锥体”。具体要求如下:
a) Triangle类具有类型为double的三个边长度以及周长属性;定义构造函数,返回周长和修改三个边的方法。另外,Triangle类还具有一个boolean型的属性,该属性用来判断三个属能否构成一个三角形。
b) Circle类具有类型为double的属性半径、周长和面积;定义设置半径,返回面积的方法。
c) Cone类具有Circle类型的底,double类型的高这两个属性,定义构造函数,计算圆锥体体积的方法。
-1) write a Java application,
1) The program has three categories: Triangle, Circle and cone, were used to characterize the "triangle", "circle" and "cone." Specific requirements are as follows:
a) Triangle class has three types of double edge length and girth property define a constructor, returns three sides of the perimeter and modification methods. In addition, Triangle class also has a boolean type attribute, which is used to determine whether the three form a triangle.
b) Circle class with properties of type double the radius, circumference and area definitions set the radius, the method returns the area.
c) Cone Circle class has a bottom type, double type high these two properties, the definition of a constructor, method of calculating the volume of a cone.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
geometric/geometric/Application_1.java
geometric/geometric/Circle.java
geometric/geometric/Cone.java
geometric/geometric/Triangle.java
geometric/geometric
geometric
geometric/geometric/Circle.java
geometric/geometric/Cone.java
geometric/geometric/Triangle.java
geometric/geometric
geometric
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
