始于1912 平凡的诗
IT
关注数: 66 粉丝数: 128 发帖数: 2,696 关注贴吧数: 21
万能的窝吧,小弟求助一道java作业题!!很急 要求是写一个程序 读入产品描述,输出产品数据 要用2个class, 一个是main class 来调用method,一个是product class, 里面要有 新建不同的member variables,好像private string name, 然后里面有function和method 例如以下output Enter database filename: lab2_input.txt Display individual user ratings [y/n]? y Product Summary Report ------------------------------------------------- Title: The Shawshank Redemption (***) Product Type: DVD Price: 19.95 User 0: 3 User 1: 3 User 2: 3 Title: The Dark Knight (***) Product Type: DVD Price: 19.95 User 0: 4 User 1: 5 User 2: 1 User 3: 5 Title: A Game of Thrones (***) Product Type: Book Price: 8.95 User 0: 5 User 1: 1 ------------------------------------------------------------------------------- Total products in database: 6 Highest average ranked product: The Shawshank Redemption (DVD - 3 stars) Lowest average ranked product: The Girl With The Dragon Tattoo (Book - 2 stars) Product with most reviews: Vertigo (DVD - 6 reviews) Product with fewest reviews: A Game of Thrones (Book - 2 reviews) 要求 1 让用户输入database的文件名 2 让用户决定要不要display ratings(就是分数) 3 把input的信息储存为array 4 输出name,type,价格,算出每个产品的平均分数(每个产品名字后跟着的星星就是他的平均分数) 5 输入产品总数,最高分的产品和名字,最低分的产品和名字,以及被评分最多的产品 input 文件的格式如下 6 (产品总数) The Shawshank Redemption(名字) DVD (类型) 19.95 (价格) 3 (有多少人评分了,这里是3) 3 (分数) 3 (分数) 3 (分数) The Dark Knight DVD 19.95 4 4 5 1 5 如有高手解答 感激不尽!!
求助一道java作业题,很急 多谢! 要求是写一个程序 读入产品描述,输出产品数据 要用2个class, 一个是main class 来调用method,一个是product class, 里面要有 新建不同的member variables,好像private string name, 然后里面有function和method 例如以下output Enter database filename: lab2_input.txt Display individual user ratings [y/n]? y Product Summary Report ------------------------------------------------- Title: The Shawshank Redemption (***) Product Type: DVD Price: 19.95 User 0: 3 User 1: 3 User 2: 3 Title: The Dark Knight (***) Product Type: DVD Price: 19.95 User 0: 4 User 1: 5 User 2: 1 User 3: 5 Title: A Game of Thrones (***) Product Type: Book Price: 8.95 User 0: 5 User 1: 1 ------------------------------------------------------------------------------- Total products in database: 6 Highest average ranked product: The Shawshank Redemption (DVD - 3 stars) Lowest average ranked product: The Girl With The Dragon Tattoo (Book - 2 stars) Product with most reviews: Vertigo (DVD - 6 reviews) Product with fewest reviews: A Game of Thrones (Book - 2 reviews) 要求 1 让用户输入database的文件名 2 让用户决定要不要display ratings(就是分数) 3 把input的信息储存为array 4 输出name,type,价格,算出每个产品的平均分数(每个产品名字后跟着的星星就是他的平均分数) 5 输入产品总数,最高分的产品和名字,最低分的产品和名字,以及被评分最多的产品 input 文件的格式如下 6 (产品总数) The Shawshank Redemption(名字) DVD (类型) 19.95 (价格) 3 (有多少人评分了,这里是3) 3 (分数) 3 (分数) 3 (分数) The Dark Knight DVD 19.95 4 4 5 1 5
目前火影人物实力前十名!绝对客观,排名不分先后【申精】 要说实力排名,还真排不出来,一个因为还有角色实力未展现,一个因为忍着战斗不定因素太多,没有绝对的谁比谁强。 但是,前十还是能排出来的!这里不包括太久远的人,比如初代,年轻三代,当年的宇智波斑,山椒鱼半藏,六道仙人等等。而且战斗场景也不多,不好对比。 *长门(佩恩)。 此人大家无争议吧,接近神一般的实力。 * 鼬。两大神器,写轮眼的巅峰,瞬秒迪达拉,大蛇丸,卡卡西。 * 阿飞(斑?): 显然现在的阿飞不是完全体,没有完全展现实力,但潜力无限。做为boss级人物,必定很强。 * 药师兜: 兜现在可以说是单挑王,改进过的秽土转生简直可以说是无敌,随便招几个影级的人出来,实力非同一般。 * 四代: 传说中的强者,毫无争议。虽然已故,但因为多次出场,战斗场景很多。LZ就把他排出来啦 * 鬼鲛: 显然,鬼鲛比八尾强,而且轻松捕获三尾(?). * 雷影:和万花筒写轮眼的佐助拼的不相上下,无论速度还是力量都是一等一。 * 绝: 可以说是最神秘的角色,能成为阿飞的左右手,除了特殊能力,还得有非凡的实力,相信不久会完全展现。 * 鸣人: 击败佩恩,成为村子的英雄,熟练的仙人模式。现在取得九尾之力,赶赴战场中!将大有作为一番! *佐助: 黑暗中的复仇者。击败八尾,一人单挑五影,让雷影陷入苦境。杀死团藏。现在得到了永恒万花筒,实力更深不见底。
首页 1 2 3 4 5 下一页