登录
首页 » Java » JAVA

JAVA

于 2021-05-07 发布
0 208
下载积分: 1 下载次数: 0

代码说明:

说明:  定义长方体类Cuboid,要求如下:(1)私有成员变量包括长length、宽width和高height;(2)构造方法包括一个公共的空构造方法,一个能够初始化所有成员变量的构造方法;(3)包括所有的setter和getter方法,其中setter方法要求对形参进行验证,例如长、宽和高都大于0;(4)功能方法包括计算表面积getArea()、计算体积getCubage()、判断是否正方体isCube()、输出该长方体的长宽高printCuboid()、绘制该长方体(给出提示信息即可)drawing()。 测试一要求如下:(1)利用空构造方法创建一个新的长方体对象cuboidA,然后利用setter方法设置长宽高分别为1.5、2.6和18.6,(2)调用printCuboid()方法输出cuboidA的基本信息,调用isCube()方法判断是否正方体;(3)调用方法drawing()模拟绘制该长方体。 测试二要求如下:(1)利用构造方法创建一个具有长宽高分别为2.5、6.8和8.0的长方体对象cuboidB,然后利用setLength()方法修改length为4.6;(2)调用getArea()方法计算表面积;(3)调用getCubage计算该长方体的体积。(The cuboid class cuboid is defined as follows: (1) the private member variables include length, width and H eight; (2) the construction method includes a public empty construction method, a construction method that can initialize all member variables; (3) all setter and getter methods are included, where the setter method requires to verify the parameters, such as length, width and height are greater than 0 (4) the function methods include calculating the surface area getarea (), calculating the volume getcube (), judging whether the cube is iscube (), outputting the length, width and height printcube (), drawing the box (just give the prompt information) drawing ().)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • 3.6.3
    卡尔曼滤波对自由落体的皮球跟踪应用,程序已调试,很好用,建议下载(Kalman filter for free falling ball tracking application, the program has been debugged, very useful, it is recommended to download)
    2020-06-18 23:00:02下载
    积分:1
  • 利用VHDL设计实现了DCT变换,在ISE仿真通过
    利用VHDL设计实现了DCT变换,在ISE仿真通过-VHDL designs and implements the use of DCT transform, in the ISE simulation through the
    2022-03-03 11:25:26下载
    积分:1
  • snake
    很简单的贪吃蛇,用的都是WINDOWS的API,不过是早期写的,可能可读性上差点,新手可以看(Snake is very simple)
    2011-07-09 18:38:28下载
    积分:1
  • ZigBee2006
    说明:   德州仪器(TI)宣布推出业界首款带硬件定位引擎的片上系统(SoC)解决方案 CC2431,以 满足低功耗 ZigBee/IEEE802.15.4 无线传感器网络应用的需求。这款来自 Chipcon 产品系列 的器件可满足多种应用要求,其中包括资产和设备跟踪、库存控制、病患监护、远程控制、 安全监控网络等应用,此外,TI领先的 ZigBee协议栈 Z-Stack 还提供有关支持。 CC2431 建立在业界首款针对低功耗 RF 应用的 SoC 解决方案 CC2430 的基础之上。上 述两款器件将业界领先的CC2420 RF收发器内核与增强型8051微控制器的出色性能完美结 合,具有高达 128kB 的闪存、8kB的 RAM 以及许多附加功能,而这一切仅采用一个 7 毫米 x7 毫米小型封装就实现了。 CC2431基于RSSI(Received Signal Strength Indicator)的定位引擎能根据接收信号强度与 已知 CC2430参考节点位置准确计算出有关节点位置,然后将位置信息发送给接收端,如电 脑、PDA、手机等。相比于集中型的定位系统,RSSI 功能降低了网络流量与通信延迟,在 典型应用中可实现 3 至5 米的精度。 (The CC2431 is a true System-On-Chip (SOC) for wireless sensor networking ZigBee™ / 802.15.4 solutions with location detection engine hardware onboard allowing location accuracy of around 3 meters or less. It enables ZigBee™ nodes to be built with very low total bill-of-material costs. The CC2431 combines the excellent performance of the leading CC2420 RF transceiver with an industry-standard enhanced 8051 MCU, 128 KB flash memory, 8 KB RAM and many other powerful features. Combined with the industry leading ZigBee™ protocol stack (Z-Stack™ ) from Figure 8 Wireless/Chipcon, the CC2431 provides the market’s most competitive ZigBee™ solution. The CC2431 is highly suited for systems where ultra low power consumption is required. This is achieved by various operating modes. Short transition times between these modes further ensure low power consumption. )
    2021-03-09 17:49:27下载
    积分:1
  • Ruler
    说明:  VC++增强版电子标尺软件的源代码,透明窗体的实现是本程序的关键性技术,本标尺采用两点测量、多点测量、多角度测量的方法,配合窗体透明特效,完成一个逼真好用的电子标尺,这样,当你在网页上需要确定图片及媒体的宽度和高度时,就可用这个软件轻松的量出它的尺寸了。 (Enhanced version of VC++ source code of the software electronic scale, transparent form of implementation is the key technology of this procedure, the use of two measurement scale, multi-point measurement, multi-angle measurement method, with transparent window effects, to complete a real good using electronic ruler, so that when you need to determine the picture on the website and the media width and height, you can use this software easily measure out the size of it.)
    2011-04-08 22:54:58下载
    积分:1
  • 混沌分析工具,包括计算lyapunov指数,指数谱,分数维等,c语言编写,含源码...
    混沌分析工具,包括计算lyapunov指数,指数谱,分数维等,c语言编写,含源码-chaos analysis tools, including the calculation of lyapunov index, the index spectra, fractal dimension, c language, Containing FOSS
    2022-02-16 00:48:57下载
    积分:1
  • 无人机编队算法
    无人机编队算法,使用matlab 建立无人机仿真系统,展示无人机的编队飞行,并通过模拟驱动一个VRML(虚拟现实建模语言)虚拟世界来实现可视化,使虚拟世界中的交通工具可以在仿真运行时看到(The UAV formation algorithm, using the MATLAB to establish the UAV Simulation System, shows the formation flight of the UAVs, and drives a VRML (Virtual Reality Modeling Language) to visualize the virtual world through simulation, so that the vehicle in the virtual world can be seen in the simulation run.)
    2021-03-02 10:29:34下载
    积分:1
  • win8UI
    A small example based on Android Win8 layout, similar to the old 360 interface, but just a layout, friends who want to study can download it.
    2020-06-22 20:00:01下载
    积分:1
  • case33bw
    matlab中matpower工具箱case,标准的库里面没有33bus,这个是标准ieee 33bus配网matpower case(Matpower toolbox case in matlab, there is no 33 bus in the standard library, this is the standard IEEE 33 bus distribution network Matpower case)
    2018-08-22 11:23:18下载
    积分:1
  • 添加memberadd memberadd memberadd memberadd成员
    添加成员添加成员添加成员添加成员添加成员添加成员
    2022-12-02 14:40:04下载
    积分:1
  • 696518资源总数
  • 104347会员总数
  • 12今日下载