当前位置: 首页 > news >正文

设计公司网站制作开发app需要什么技术

设计公司网站制作,开发app需要什么技术,地板网站模板,怎么给老板提供网站建设资料1.设计程序按照各个学生的 Java 成绩进行排序 ( 降序 ) 2.设计程序#xff0c;根据学生总成绩进行排序(降序排列)#xff0c;并输出学生姓名、每门课程的名称和该学生的成绩、该学生的总成绩 public static void main(String[] args) {String[] names {安琪拉,…1.设计程序按照各个学生的 Java 成绩进行排序 ( 降序 ) 2.设计程序根据学生总成绩进行排序(降序排列)并输出学生姓名、每门课程的名称和该学生的成绩、该学生的总成绩 public static void main(String[] args) {String[] names {安琪拉, 王昭君, 蔡文姬, 妲己, 张良};String[] courses {C, Java, Python};int[][] scores {{90, 89, 75},{59, 40, 100},{100, 99, 80},{80, 61, 61},{60, 100, 99}};for( int i 0 ; i scores.length ; i ){System.out.print( names[ i ] ); // 输出学生姓名for( int j 0 ; j scores[ i ] .length ; j ){System.out.print( courses[ j ] :);// 输出课程名称System.out.print( scores[ i ][ j ] ); // 输出课程成绩if( j scores[ i ] .length - 1 ) {System.out.print( , );}}System.out.println();}// 1. 按照各个学生的 Java 成绩进行排序降序for (int i 0; i scores.length - 1; i) {for (int j 0; j scores.length - i - 1; j) {if (scores[j][1] scores[j 1][1]) {// 交换学生姓名String tempName names[j];names[j] names[j 1];names[j 1] tempName;// 交换学生成绩int[] tempScores scores[j];scores[j] scores[j 1];scores[j 1] tempScores;}}}for (int i 0; i names.length; i) {System.out.println(names[i] courses[1] : scores[i][1]);}System.out.println();// 2. 根据学生总成绩进行排序降序排列int[] sumScore new int[scores.length];for (int i 0; i scores.length; i) {int sum 0;for (int j 0; j scores[i].length; j) {sum scores[i][j];}sumScore[i] sum;}// 对总分数组排序int[] sumArr new int[scores.length];for (int i 0; i scores.length; i) {int sum 0;for (int j 0; j scores[i].length; j) {sum scores[i][j];}sumArr[i] sum;}// 选择排序(降序)for (int i 0; i scores.length - 1; i) {int max i;for (int j i 1; j scores.length; j) {if (sumArr[j] sumArr[max]) {max j;}}// 交换总成绩int temp sumArr[i];sumArr[i] sumArr[max];sumArr[max] temp;//String n names[i];names[i] names[max];names[max] n;int[] s scores[i];scores[i] scores[max];scores[max] s;}// 输出每个人的各科成绩 安琪拉 c90 java89 python75for (int i 0; i names.length; i) {System.out.print(names[i] : );for (int j 0; j scores[i].length; j) {System.out.print(courses[j] scores[i][j] \t);}System.out.println(sumArr[i]);System.out.println();}解释 定义一个字符串数组names,存储5个学生的姓名定义一个字符串数组courses,存储3门课程的名称定义一个二维整数数组scores,存储了每个学生在每门课程的成绩遍历scores数组按照降序输出每个学生的姓名、课程名称和成绩对scores数组进行排序按照学生的Java成绩降序排列输出排序后的学生姓名、课程名称和成绩计算每个学生的总成绩并将其存储在sumScore数组中对sumScore数组进行选择排序按照降序排列输出排序后的学生姓名、各科成绩和总成绩。
http://www.hkea.cn/news/14359826/

相关文章:

  • 网站建站公司哪家价钱合理青岛网站公司哪家好
  • 网络建站海洋公司做网站推广
  • 河北省建设厅管网站企业门户网站管理要求
  • 如何提升网站seo排名如何修改网站的关键词
  • 湖北seo网站多少钱2021年9月重大新闻
  • 绍兴网站制作推广绵阳网站建设
  • 用wordpress搭建完整网站教程视频软件开发涵盖网站开发吗
  • 江苏网站快速排名优化网站建设设计广州
  • 网站聊天代码logo设计免费生成器在线
  • 广东网站开发wordpress进不后台
  • 雅安网站制作手机网站支持微信支付
  • 网站建设与制作dw8教程住房和城乡建设厅网站
  • 网页游戏推荐排行龙泉驿网站seo
  • 网站开发技术网站模板微信开放平台文档
  • 做室内效果图网站宁波网站的优化
  • 培训心得网站建设信息流广告投放流程
  • 用rp怎么做网站按钮下拉框网站开发 价格
  • 电子商务网站建设卷子python小学生入门教程
  • 山东安康建设项目管理有限公司网站金泉网推广怎么样
  • 系统网站建设方案广元网站制作
  • 武隆集团网站建设岳阳网站建设哪里便宜
  • 织梦移动网站后缀网站建设投入及费用
  • 用来备案企业网站wordpress 无法编辑文章
  • 怎么做微信推送 网站安康企业网站定制
  • 哪些网站是php注册公司实缴和认缴有什么区别
  • 自己做网站的优势即墨区城乡建设局网站
  • 网站字体大小画廊网站模板
  • 手机网站接入微信登录适合手机端的wordpress
  • 在建设银行网站上还贷做网站现在好弄么
  • 银川网站推广方式广州建网站公司排名