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

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

1、国家三级(网络技术)机试-试卷 27 及答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_国家三级(网络技术)机试-试卷 27 答案解析(总分:2.00,做题时间:90 分钟)一、程序设计题(总题数:1,分数:2.00)1. (分数:2.00)_正确答案:(正确答案: )解析:解析:首先定义一个循环变量 i,以及分别用来存放四位数分解之后各位数的变量 qw(千位)、bw(百位)、sw(十位)和 gw(个位)。 通过 for 循环依次对数组中的每个四位数进行分解,每分解一个四位数,则根据题目要求,判断其“个位-百位-十位-千位0

2、的条件是否满足,当满足条件时,则将 ai的值累加到变量 pjz1 中,同时计数变量 cnt 的值加 1;如果不满足判断条件,则将四位数累加到变量 pjz2中。当 for 循环结束之后,就能等到所有满足条件的四位数之和 pjz1 和个数,以及所有不满足条件的四位数之和 pjz2。 最后将变量 pjz1 的值除以变量 cnt 的值,得到所有满足条件的四位数的平均值并赋给变量 pjz1,将变量 pjz2 的值除以 300 减去变量 cnt 的差,得到所有不满足条件的四位数的平均值并赋给变量 pjz2。 本题中,pjz1、pjz2 和 cnt 三个变量在源程序中已经定义,在该子程序中就不需要再重新定义了。

展开阅读全文
相关资源
猜你喜欢
  • DIN EN ISO 4263-3-2016 Petroleum and related products - Determination of the ageing behaviour of inhibited oils and fluids using the TOST test - Part 3 Anhydrous procedure for synt.pdf DIN EN ISO 4263-3-2016 Petroleum and related products - Determination of the ageing behaviour of inhibited oils and fluids using the TOST test - Part 3 Anhydrous procedure for synt.pdf
  • DIN EN ISO 4263-4-2006 Petroleum and related products - Determination of the ageing behaviour of inhibited oils and fluids - TOST test - Part 4 Procedure for industrial gear oils (.pdf DIN EN ISO 4263-4-2006 Petroleum and related products - Determination of the ageing behaviour of inhibited oils and fluids - TOST test - Part 4 Procedure for industrial gear oils (.pdf
  • DIN EN ISO 4264-2013 Petroleum products - Calculation of cetane index of middle-distillate fuels by the four-variable equation (ISO 4264 2007 + Amd 1 2013) German version EN ISO 42.pdf DIN EN ISO 4264-2013 Petroleum products - Calculation of cetane index of middle-distillate fuels by the four-variable equation (ISO 4264 2007 + Amd 1 2013) German version EN ISO 42.pdf
  • DIN EN ISO 4267-2-1996 Petroleum and liquid petroleum products - Calculation of oil quantities - Part 2 Dynamic measurement (ISO 4267-2 1988) German version EN ISO 4267-2 1995《石油和液.pdf DIN EN ISO 4267-2-1996 Petroleum and liquid petroleum products - Calculation of oil quantities - Part 2 Dynamic measurement (ISO 4267-2 1988) German version EN ISO 4267-2 1995《石油和液.pdf
  • DIN EN ISO 4287-2010 Geometrical Product Specifications (GPS) - Surface texture Profile method - Terms definitions and surface texture parameters (ISO 4287 1997 + Cor 1 1998 + Cor .pdf DIN EN ISO 4287-2010 Geometrical Product Specifications (GPS) - Surface texture Profile method - Terms definitions and surface texture parameters (ISO 4287 1997 + Cor 1 1998 + Cor .pdf
  • DIN EN ISO 4288-1998 Geometrical Product Specifications (GPS) - Surface texture Profile method - Rules and procedures for the assessment of surface texture (ISO 4288 1996) German v.pdf DIN EN ISO 4288-1998 Geometrical Product Specifications (GPS) - Surface texture Profile method - Rules and procedures for the assessment of surface texture (ISO 4288 1996) German v.pdf
  • DIN EN ISO 4320-1997 Non-ionic surface active agents - Determination of cloud point-index - Volumetric method (ISO 4320 1977 including Erratum 1980) German version EN ISO 4320 1997.pdf DIN EN ISO 4320-1997 Non-ionic surface active agents - Determination of cloud point-index - Volumetric method (ISO 4320 1977 including Erratum 1980) German version EN ISO 4320 1997.pdf
  • DIN EN ISO 4373-2009 Hydrometry - Water level measuring devices (ISO 4373 2008) English version of DIN EN ISO 4373 2009-01《液体比重测定法 水位测量装置》.pdf DIN EN ISO 4373-2009 Hydrometry - Water level measuring devices (ISO 4373 2008) English version of DIN EN ISO 4373 2009-01《液体比重测定法 水位测量装置》.pdf
  • DIN EN ISO 4375-2015 Hydrometry - Cableway systems for stream gauging (ISO 4375 2014) German version EN ISO 4375 2014《水文测验 河流测量用索道系统(ISO 4375-2014) 德文版本EN ISO 4375-2014》.pdf DIN EN ISO 4375-2015 Hydrometry - Cableway systems for stream gauging (ISO 4375 2014) German version EN ISO 4375 2014《水文测验 河流测量用索道系统(ISO 4375-2014) 德文版本EN ISO 4375-2014》.pdf
  • 相关搜索

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

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