[计算机类试卷]国家三级(网络技术)机试模拟试卷137及答案与解析.doc

上传人:周芸 文档编号:495641 上传时间:2018-11-28 格式:DOC 页数:3 大小:99.50KB
下载 相关 举报
[计算机类试卷]国家三级(网络技术)机试模拟试卷137及答案与解析.doc_第1页
第1页 / 共3页
[计算机类试卷]国家三级(网络技术)机试模拟试卷137及答案与解析.doc_第2页
第2页 / 共3页
[计算机类试卷]国家三级(网络技术)机试模拟试卷137及答案与解析.doc_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

国家三级(网络技术)机试模拟试卷 137及答案与解析 一、程序设计题 1 国家三级(网络技术)机试模拟试卷 137答案与解析 一、程序设计题 1 【正确答案】 【试题解析】 首先定义变量并赋值,包括表示级数的整型变量 a1、 a2,赋初值 1,表示级数前 n项的和 s,其初值为 2,表示级数的第 n项 t,循环变量 i,级数 n项赋初值 1。 采用 for循环,循环变量 i从 0开始依次递增到 2。在循环体中对 m的值扩大10倍,当级数前 n项的和 s小于 m时,根据级数的第 n项等于第 n-2项与 2倍的第 n-1项的和,把表达式 a1+2*a2的值赋给变量 t。然后把级数前 n-1项的和 s加上第 n项的值 t赋给变量 s,求得级数前 n项的和赋给变量 s。把 n的值加 1,在下次循环中计算级数第 n+1项的值,把变量当前级数第 n-1项的值 a2赋给第 n-2项 a1,把当前的第 n项 t的值赋给第 n-1项 a2。当级数前 n项的和 s大于或等于m时,退出 while循环。在屏幕上输出变量 m和 n的 值,并把求的 n值赋给数组元素 bi,进入下一次 for循环。

展开阅读全文
相关资源
猜你喜欢
  • STAS 9484 17-1974 SILICA-ALUMINA MINING PRODUCTS Methods of physical and mechanical tests Determination of bending strength《硅铝矿产品 物理和力学试验的方法 抗弯强度的测定 》.pdf STAS 9484 17-1974 SILICA-ALUMINA MINING PRODUCTS Methods of physical and mechanical tests Determination of bending strength《硅铝矿产品 物理和力学试验的方法 抗弯强度的测定 》.pdf
  • STAS 9484 18-1992 PRODUSE MINIERE SILICO-ALUMINOASE《矿产品 硅铝 》.pdf STAS 9484 18-1992 PRODUSE MINIERE SILICO-ALUMINOASE《矿产品 硅铝 》.pdf
  • STAS 9484 2-1974 SILICA-ALUMINA MINING PRODUCTS Methods of physical tests Determination of bonding substances《硅铝矿产品 物理试验的方法 粘接物质的测定 》.pdf STAS 9484 2-1974 SILICA-ALUMINA MINING PRODUCTS Methods of physical tests Determination of bonding substances《硅铝矿产品 物理试验的方法 粘接物质的测定 》.pdf
  • STAS 9484 22-1982 SILICO-ALUMINOUS MINING PRODUCTS Methods of physical ands mechanical tests Determination of free sand content《硅铝质矿产品 物理和力学试验方法 单体砂含量的测定 》.pdf STAS 9484 22-1982 SILICO-ALUMINOUS MINING PRODUCTS Methods of physical ands mechanical tests Determination of free sand content《硅铝质矿产品 物理和力学试验方法 单体砂含量的测定 》.pdf
  • STAS 9484 3-1974 SILICA-ALUMINA MINING PRODUCTS Methods of physical and mechanical tests Determination of compression strength and tensile strength《硅铝矿产品 物理和力学试验的方法 压缩强度和拉伸强度的测定 》.pdf STAS 9484 3-1974 SILICA-ALUMINA MINING PRODUCTS Methods of physical and mechanical tests Determination of compression strength and tensile strength《硅铝矿产品 物理和力学试验的方法 压缩强度和拉伸强度的测定 》.pdf
  • STAS 9484 4-1974 SILICA-ALUMINA MINING PRODUCTS Methods of physical and mechanical tests Determination of bentonite number《硅铝矿产品 物理和力学试验的方法 膨润土值的测定 》.pdf STAS 9484 4-1974 SILICA-ALUMINA MINING PRODUCTS Methods of physical and mechanical tests Determination of bentonite number《硅铝矿产品 物理和力学试验的方法 膨润土值的测定 》.pdf
  • STAS 9484 5-1974 SILICA-ALUMINA MINING PRODUCTS Methods of physical and mechanical tests Determination of swelling degree《硅铝矿产品 物理和力学试验的方法 溶胀度的测定 》.pdf STAS 9484 5-1974 SILICA-ALUMINA MINING PRODUCTS Methods of physical and mechanical tests Determination of swelling degree《硅铝矿产品 物理和力学试验的方法 溶胀度的测定 》.pdf
  • STAS 9484 6-1974 SILICA-ALUMINA MINING PRODUCTS Methods of physical and mechanical tests Determination of plasticity index by Pfefferkorn method《硅铝矿产品 物理和力学试验的方法 通过Pfefferkorn法测定塑性.pdf STAS 9484 6-1974 SILICA-ALUMINA MINING PRODUCTS Methods of physical and mechanical tests Determination of plasticity index by Pfefferkorn method《硅铝矿产品 物理和力学试验的方法 通过Pfefferkorn法测定塑性.pdf
  • STAS 9484 7-1974 SILICA-ALUMINA MINING PRODUCTS Methods of physical and mechanical tests Determination of slurry stability《硅铝矿产品 物理和力学试验的方法 泥浆稳定性的测定 》.pdf STAS 9484 7-1974 SILICA-ALUMINA MINING PRODUCTS Methods of physical and mechanical tests Determination of slurry stability《硅铝矿产品 物理和力学试验的方法 泥浆稳定性的测定 》.pdf
  • 相关搜索

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

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