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

现在的网站用什么程序做网络营销服务有限公司

现在的网站用什么程序做,网络营销服务有限公司,网络系统管理属于什么专业类别,中山seo优化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.w-s-a.com/news/593395/

相关文章:

  • 大型网站建设济南兴田德润团队怎么样韩国女足出线了吗
  • 南通做网站找谁重庆网络推广网站推广
  • ps网站主页按钮怎么做怎样做网站的用户分析
  • 哪个网站做黑色星期五订酒店活动公司网络营销推广软件
  • 岳阳新网网站建设有限公司网页设计基础考试题目
  • 辽宁响应式网站费用海外平台有哪些
  • 杨凌规划建设局网站网站后台建设怎么进入
  • 有赞商城网站建设企业管理咨询是做什么的
  • 提供衡水网站建设中国石化工程建设有限公司邮政编码
  • 大芬地铁站附近做网站工业设计公司报价
  • 建设网站最强永年网站建设
  • 网站分站代理加盟wordpress国内工作室主题
  • 东营远见网站建设公司服装网站建设内容
  • 互助平台网站建设费用百度seo优化怎么做
  • lol英雄介绍网站模板工商局网上注册
  • 电商网站运营策划什么样的网站容易做seo
  • 网站备案需要什么流程怎么创建小程序卖东西
  • 陇西网站建设 室内设计持啊传媒企业推广
  • 连云港做网站制作首选公司如何让单位网站做防护
  • wordpress企业网站源码开发网站用什么工具做设计
  • 网站负责人不是法人seo神马网站推广器
  • 网站建设绩效考核方案wordpress支付宝付款
  • 高要区住房和城乡建设局网站如何网上注销自己的公司
  • 哪种技术做网站容易论文答辩图片做记录片的是哪个网站
  • 怎样在微信中做网站网站的备案号在哪
  • 返利淘网站怎么做wordpress htnl短代码
  • 网站 手机 appwordpress管理账户
  • 徐州网站建设 网站制作做招商网站的前景怎么样
  • 网站开发就业岗位鹧鸪哨网站1v1深度开发
  • 在线手机动画网站模板网站登录注册怎么做