【计算机类职业资格】国家三级(网络技术)机试-试卷97及答案解析.doc

上传人:李朗 文档编号:1331139 上传时间:2019-10-17 格式:DOC 页数:2 大小:30KB
下载 相关 举报
【计算机类职业资格】国家三级(网络技术)机试-试卷97及答案解析.doc_第1页
第1页 / 共2页
【计算机类职业资格】国家三级(网络技术)机试-试卷97及答案解析.doc_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

1、国家三级(网络技术)机试-试卷 97 及答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_国家三级(网络技术)机试-试卷 97 答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_正确答案:(正确答案: )解析:解析:首先,本题要定义多个变量,包括两个循环变量循环 i、j:用来存放四位数分解之后各位数的变量 qw(千位)、bw(百位)、sw(十位)和 gw(个位);两个用来存放重新组合数字的变量 newV1 和newV2。 通过 for 循环依次对数组中的每个四

2、位数进行分解,每分解一个四位数,根据题目要求,对其各位数进行重新组合,形成两个新的十位数,组合条件分别是原四位数的千位和十位组成一个十位数,个位和百位组成一个十位数,并将两个新的十位数分别赋给变量 newV1 和 newV2。 数字重组完毕之后,再根据题目要求筛选满足条件的四位数,本题需要考虑多个筛选条件:一是新组合的十位数中,其十位数不能为 0,即原四位数的千位和个位数字不能为 0;二是两个新组合的十位数之差必须大于等于 0 小于等于 10;三是两个新组合的数字均为奇数。 将同时满足以上 3 个条件的四位数赋给数组 bcnt,同时数组下标值加 1,当 for 循环执行完毕后,则将所有满足条件的四位数全部存放到数组 bcnt中。 最后通过两个 for 循环,对数组 bcnt中的元素按从大到小的顺序排序,排序过程中,可用 newV1 或 newV2作为数据交换的中间变量。

展开阅读全文
相关资源
猜你喜欢
  • NBN T 04-086-1983 1875 Athanol fur technische Zwecke - Prüfverfahren- Allgemeines Ethanol for industrial use - Methods of test - General《工业用乙醇,试验方法 概述》.pdf NBN T 04-086-1983 1875 Athanol fur technische Zwecke - Prüfverfahren- Allgemeines Ethanol for industrial use - Methods of test - General《工业用乙醇,试验方法 概述》.pdf
  • NBN T 04-087-1983 5000 Ethanol for industrial use - Dection of alkalinity or determination of acidity to phenolphthalein《工业用乙醇,碱度测定和酚酞酸度的测定》.pdf NBN T 04-087-1983 5000 Ethanol for industrial use - Dection of alkalinity or determination of acidity to phenolphthalein《工业用乙醇,碱度测定和酚酞酸度的测定》.pdf
  • NBN T 04-088-1983 6250 Ethanol for industrial use - Estimation of content of carbonyl compounds présent insmall amounts - Photometric method《工业用乙醇,少量的羰基化合物的测定 光度测定法》.pdf NBN T 04-088-1983 6250 Ethanol for industrial use - Estimation of content of carbonyl compounds présent insmall amounts - Photometric method《工业用乙醇,少量的羰基化合物的测定 光度测定法》.pdf
  • NBN T 04-089-1983 3125 Ethanol for industrial use - Estimation of content of carbonyl compounds present in moderate amounts - Titrimetric method《工业用乙醇,适量的羰基化合物的测定 滴定法》.pdf NBN T 04-089-1983 3125 Ethanol for industrial use - Estimation of content of carbonyl compounds present in moderate amounts - Titrimetric method《工业用乙醇,适量的羰基化合物的测定 滴定法》.pdf
  • NBN T 04-090-1983 3125 ETHANOL A USAGE INDUSTRIELDOSAGE DES ALDEHYDESMéthode colorimétrique visuelle《工业用乙醇,乙醛含量的测定 目测比色法》.pdf NBN T 04-090-1983 3125 ETHANOL A USAGE INDUSTRIELDOSAGE DES ALDEHYDESMéthode colorimétrique visuelle《工业用乙醇,乙醛含量的测定 目测比色法》.pdf
  • NBN T 04-091-1983 1875 Ethanol for industrial use - Test for miscibility with water《工业用乙醇,与水的可混合性试验》.pdf NBN T 04-091-1983 1875 Ethanol for industrial use - Test for miscibility with water《工业用乙醇,与水的可混合性试验》.pdf
  • NBN T 04-092-1983 0625 Ethanol for industrial use - Determination of methanol content[ methanol contents between 0 01 and 0 20 % (V V)] - Photometric method《工业用乙醇,甲醇含量的测定[甲醇含量在 0 0.pdf NBN T 04-092-1983 0625 Ethanol for industrial use - Determination of methanol content[ methanol contents between 0 01 and 0 20 % (V V)] - Photometric method《工业用乙醇,甲醇含量的测定[甲醇含量在 0 0.pdf
  • NBN T 04-093-1983 5000 Ethanol for industrial use - Determination of methanol content [methanol contents between 0 10 and 1 50 % (V V)]- Visual colorimetric method《工业用乙醇,甲醇含量的测定[甲醇.pdf NBN T 04-093-1983 5000 Ethanol for industrial use - Determination of methanol content [methanol contents between 0 10 and 1 50 % (V V)]- Visual colorimetric method《工业用乙醇,甲醇含量的测定[甲醇.pdf
  • NBN T 04-094-1983 5000 Ethanol for industrial use - Determination of esters content - Titrimetric method after saponification《工业用乙醇,酯含量的测定 皂化后滴定法》.pdf NBN T 04-094-1983 5000 Ethanol for industrial use - Determination of esters content - Titrimetric method after saponification《工业用乙醇,酯含量的测定 皂化后滴定法》.pdf
  • 相关搜索

    当前位置:首页 > 考试资料 > 职业资格

    copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
    备案/许可证编号:苏ICP备17064731号-1