[计算机类试卷]计算机三级网络技术机试(上机操作)模拟试卷99及答案与解析.doc

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

1、计算机三级网络技术机试(上机操作)模拟试卷 99及答案与解析 一、程序设计题 1 已知数列 Xn的前两项为 2和 3,其后继项根据当前最后两项的乘积按下列规则生成; (1)若乘积为 1位数。则该乘积为数列的后继项; (2)若乘积为 2位数,则该乘积的十位数字和个位数字依次作为数列的两个后继项。 请编写函数 void produceX(int n),生成该数列的前 n项 (n 100),并把它保存在数组 outBuf中,再把这前 100项的和保存在整型变量 sum中。 readWriteData()函数负责将 n值从 IN DAT文件中读出,并将结果 outBuf输出到文件 OUT DAT中。

2、注意:部分源程序已经给出。 请勿改动主函数 main()和输出函数 readWriteData()的内容。 试题程序: #include int outBuf200, sum=0; void readWriteData(); void produceX(int n) void main() int n, i; printf(“please input the amounts n: ”); scanf(“ d”, &n); produceX(n); for(i=0; i10) 如果是两位数 outBufi=x 10;求出十位上的值 sum+=outBufi; 将该数计入总和 i+; 将数组下标右移一位 outBufi=X 10;求出个位上的值 sum+=outBufi; 将该数计入总和 else如果是一位数 outBuffi=X; sum+=outBufi; 将该数计人总和 【试题解析】 本题主要考查数列问题。按照指定的运算规则,如果得到的乘积是两位数,则将两位数的十住和个位作为新的后两位,注意此时循环量应谊多加 1。如果得到的是 1位数,直接作为新值即可。

展开阅读全文
相关资源
猜你喜欢
  • ASD-STAN PREN 3055-1987 Aerospace Series Bearings-Airframe Rolling Single Row Self-Aligning Roller Bearings in Corrosion Resisting Steel Dimensions and Loads (Issue P 1)《航空航天系列 轴承 .pdf ASD-STAN PREN 3055-1987 Aerospace Series Bearings-Airframe Rolling Single Row Self-Aligning Roller Bearings in Corrosion Resisting Steel Dimensions and Loads (Issue P 1)《航空航天系列 轴承 .pdf
  • ASD-STAN PREN 3056-1987 Aerospace Series Bearings-Airframe Rolling Rigid Two Row Ball Bearings in Steel Dimensions and Loads (Issue P 1)《航空航天系列 轴承 机体用钢制刚性双排滚子轴承 尺寸和负荷 第P1版》.pdf ASD-STAN PREN 3056-1987 Aerospace Series Bearings-Airframe Rolling Rigid Two Row Ball Bearings in Steel Dimensions and Loads (Issue P 1)《航空航天系列 轴承 机体用钢制刚性双排滚子轴承 尺寸和负荷 第P1版》.pdf
  • ASD-STAN PREN 3057-1987 Aerospace Series Bearings-Airframe Rolling Rigid Two Row Ball Bearings in Steel Cadmium Plated Dimensions and Loads (Issue P 1)《航空航天系列 轴承 机体用镀镉钢制刚性双排滚子轴承 尺寸.pdf ASD-STAN PREN 3057-1987 Aerospace Series Bearings-Airframe Rolling Rigid Two Row Ball Bearings in Steel Cadmium Plated Dimensions and Loads (Issue P 1)《航空航天系列 轴承 机体用镀镉钢制刚性双排滚子轴承 尺寸.pdf
  • ASD-STAN PREN 3058-1987 Aerospace Series Bearings-Airframe Rolling Rigid Two Row Ball Bearings in Corrosion Resisting Steel Dimensions and Loads (Issue P 1)《航空航天系列 轴承 机体用耐蚀钢制刚性双排滚子.pdf ASD-STAN PREN 3058-1987 Aerospace Series Bearings-Airframe Rolling Rigid Two Row Ball Bearings in Corrosion Resisting Steel Dimensions and Loads (Issue P 1)《航空航天系列 轴承 机体用耐蚀钢制刚性双排滚子.pdf
  • ASD-STAN PREN 3059-2001 Aerospace Series Bearings Airframe Rolling Rigid Single Row Ball Bearings in Steel with Flanged Alignment Housing Cadmium Plated Dimensions and Loads (Editi.pdf ASD-STAN PREN 3059-2001 Aerospace Series Bearings Airframe Rolling Rigid Single Row Ball Bearings in Steel with Flanged Alignment Housing Cadmium Plated Dimensions and Loads (Editi.pdf
  • ASD-STAN PREN 3060-2001 Aerospace Series Bearings Airframe Rolling Rigid Single Row Ball Bearings in Steel Cadmium Plated with Flanged Alignment Housing Cadmium Plated Dimensions a.pdf ASD-STAN PREN 3060-2001 Aerospace Series Bearings Airframe Rolling Rigid Single Row Ball Bearings in Steel Cadmium Plated with Flanged Alignment Housing Cadmium Plated Dimensions a.pdf
  • ASD-STAN PREN 3061-1997 Aerospace Series Bearings Airframe Rolling Rigid Single Row Ball Bearings in Corrosion Resisting Steel with Flanged Alignment Bush Dimensions and Loads (Edi.pdf ASD-STAN PREN 3061-1997 Aerospace Series Bearings Airframe Rolling Rigid Single Row Ball Bearings in Corrosion Resisting Steel with Flanged Alignment Bush Dimensions and Loads (Edi.pdf
  • ASD-STAN PREN 3063-1987 Aerospace Series Bolts Double Hexagon Head Close Tolerance Medium Thread Length in Heat Resisting Nickel Base Alloy NI-P101HT (Waspaloy) Classification 1210.pdf ASD-STAN PREN 3063-1987 Aerospace Series Bolts Double Hexagon Head Close Tolerance Medium Thread Length in Heat Resisting Nickel Base Alloy NI-P101HT (Waspaloy) Classification 1210.pdf
  • ASD-STAN PREN 3064-1988 Aerospace Series Self-Locking Serrated Shank Nuts Assembly Procedure (Issue P 1)《航空航天系列 自锁锯齿状柄螺母装配程序 第P1版》.pdf ASD-STAN PREN 3064-1988 Aerospace Series Self-Locking Serrated Shank Nuts Assembly Procedure (Issue P 1)《航空航天系列 自锁锯齿状柄螺母装配程序 第P1版》.pdf
  • 相关搜索

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

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