文件名称:3
-
所属分类:
- 标签属性:
- 上传时间:2014-04-23
-
文件大小:111.25kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
1.设计和实现一个Soundable接口,该接口具有发声功能,同时还能调节声音大小。Soundable接口的这些功能将会由3种声音设备来具体实现,他们分别是收音机Radio、随身听Walkman和手机Mobilephone。同时需要设计一个应用程序类来使用这些实现了Soundable接口的声音设备类。在程序运行时,先询问用户想听那种设备发出声音,然后程序就会按照该设备的工作方式来发出声音(验证性实验)。
2.程序会要求用户以规范的格式输入自己的生日日期,然后将使用Date类和Calendar类中的方法计算出用户的生日是星期几,用户的年龄以及出生的年份是否是闰年。-1 Design and implement a Soundable interface, which has sound capabilities, while also adjust the volume. These features Soundable interface will be implemented by the three kinds of specific sound devices, they are Radio Radio, Walkman and the Walkman phone Mobilephone. At the same time the need to design an application class to use them to achieve a sound device class Soundable interface. When the program runs, the first asks the user to hear the kind of sound equipment, then the program will work according to the device sounds (confirmatory test).
2 The program will ask the user to standardize the format of the input date of his birthday, and then calculate the user s birthday is a few weeks using the Date and Calendar classes class method, the user s age and year of birth of whether it is a leap year.
2.程序会要求用户以规范的格式输入自己的生日日期,然后将使用Date类和Calendar类中的方法计算出用户的生日是星期几,用户的年龄以及出生的年份是否是闰年。-1 Design and implement a Soundable interface, which has sound capabilities, while also adjust the volume. These features Soundable interface will be implemented by the three kinds of specific sound devices, they are Radio Radio, Walkman and the Walkman phone Mobilephone. At the same time the need to design an application class to use them to achieve a sound device class Soundable interface. When the program runs, the first asks the user to hear the kind of sound equipment, then the program will work according to the device sounds (confirmatory test).
2 The program will ask the user to standardize the format of the input date of his birthday, and then calculate the user s birthday is a few weeks using the Date and Calendar classes class method, the user s age and year of birth of whether it is a leap year.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
3.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.