06 2020 档案

摘要:编写程序,读取10 个整数,然后按照和读入顺序相反的顺序将它们显示出来。 Write a program that reads ten integers and displays them in the reverse of the order in which they were read. // 阅读全文
posted @ 2020-06-18 16:23 in2013 阅读(283) 评论(0) 推荐(0)
摘要:(指定等级)编写一个程序,读入学生成绩,获取最髙分best, 然后根据下面的规则陚等级值 • 如果分数>=best-10, 等级为A • 如果分数>=best-20, 等级为B • 如果分数>=best-30, 等级为C • 如果分数>=卜68140, 等级为D • 其他情况下,等级为F 程序提示用 阅读全文
posted @ 2020-06-12 16:24 in2013 阅读(391) 评论(0) 推荐(0)
摘要:6.39(几何:点的位置)编程练习题3.32显示如何测试一个点是否在一个有向直线的左侧、右侧,或在该直线上。使用下面的方法头编写该方法: public static boolean leftOfTheLine(double x0, double y0, double x1, double y1, d 阅读全文
posted @ 2020-06-12 03:39 in2013 阅读(301) 评论(0) 推荐(0)
摘要:*6.38(生成随机字符)使用程序清单6-10RandomCharacter中的方法,打印100个大写字母及100个一位数字,每行打印10个。 *6.38(Generate random characters) Use the methods in RandomCharacter in Listin 阅读全文
posted @ 2020-06-02 00:00 in2013 阅读(261) 评论(0) 推荐(0)