高分 一道Java题 急答了再追加100

来源:百度知道 编辑:UC知道 时间:2024/06/01 21:22:32
Some of the characteristics of a book are title, author(s), publisher, ISN, price and year of publication. Design the class Book. Each object of the class Book can hold the following information about a book: title, up to four authors, publisher, ISBN, price, and number of copies in stock. To keep track of the number of author add another instance variable.

Include the methods to perform various operations on the objects of Book. For example, the usual operations that can be performed on the title are to show title, set the title, and check whether the title is the actual title of the book. Similarly, the typical operations that can be performed on the number of copies in stock are to show the number of copies in stock, set the number of copies in stock, update the number of copies in stock and return the number of copies in stock. Add similar operations for the publisher, ISBN, book price and authors. Add the appropriate constructors.

Design a class Member, in wh

给你写了,地址是我博客里,你自己去看看:

http://hi.baidu.com/cpuhandou/blog/item/a07f0d4ef67dae3eafc3abd6.html

某些书的特征是标题、作者、出版者、ISN、价格和年出版物。 设计教科书。 教科书的每个对象可能举行关于书的以下信息: 标题、四位作者、出版者、国际标准书号、拷贝的价格和数字在库存。 要记录作者的数字增加另一个实例变量。

Include进行在书对象的各种各样的操作的方法。 例如,在标题可以进行的通常操作是显示标题,设置标题和检查标题是否是书的实际标题。 同样,在拷贝的数量可以进行在库存的典型的操作是显示拷贝的数量在库存,设置拷贝的数量在库存,更新拷贝的数量在库存和退回拷贝的数量在库存。 增加出版者、国际标准书号、书价格和作者的相似的操作。 增加适当的建设者。

Design类成员,成员每个对象可能举行人的名字,成员被买的书的ID、花费的数字和数额。 包括方法进行类成员例如–的各种各样的操作,修改,设置并且显示person’s名字。 同样更新,修改并且显示被买的书的数量并且共计筋疲力尽。 增加适当的建设者。

Using教科书和成员,写一个节目模仿书店。 书店有顾客的二种类型: 是书店的成员只偶尔地买从书店的书的那些人和那些人。 每名成员必须支付RM10作为逐年会员费并且接受在被买的每本书的5%折扣。

For每名成员,书店记录被买的书的数量和花费的总额。 为成员买的每本第十一本书,书店采取前10本书的总额的平均被买的,运用这数额作为折扣,然后重新了设置总额花费到0。

Write可能处理1000个书标题和500名成员的节目。 您的节目应该包含有效地提供用户不同的选择奔跑节目的菜单; 换句话说,您的节目应该是被驾驶的菜单。 您能为此使用javax.swing。

不知道你题目想