[计算机类试卷]计算机三级数据库技术(上机操作)机试模拟试卷35及答案与解析.doc

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

1、计算机三级数据库技术(上机操作)机试模拟试卷 35及答案与解析 一、程序设计题 1 已知数据文件 in dat中存有 300个四位数并已调用读函数 readDat()把这些数存人数组 a中请编写函数 jsValue(),其功能是:求出千位数上的数减百位数上的数减十位数上的数减个位数上的数大于零的个数 cnt,再求出所有满足此条件的四位数平均值 pjzl,以及所有不满足此条件的四位数平均值 pjz2。最后 main()函数调用写函数 writeDat()把结果 cnt, pjzl, pjz2输出到 out dal文件。 例如: 9123, 91230,则该数满足条件, 参加计算平均值 pjzl,

2、且个数 cnt=cnt+l。 9812, 9812 int aE3003, cnt=0; double pJz1=0 0, pjz2=0 0; void readDat(); void writeDat(); void is Value() main() readDat(); jsValue(); writeDat(); printf(“cnt= d n满足条件的平均值 pjz1= 7 21f n不满足条件的平均值 pjz2= 7 21H n”, cnt, pjzl, pjz2); void readDat() FILE*fp; int i; fp=fopen(“in dat”, r); for(i=0;i0) *判断条件 * pjz1+=ai; cnt+; else pjz2+=ai; pjz1 =cnt; *求平均值 * pjz2 =(300一 cnt);

展开阅读全文
相关资源
猜你喜欢
  • ASTM C1481-2011 Standard Guide for Use of Joint Sealants with Exterior Insulation and Finish Systems (EIFS)《外部绝缘和精整系统用密接剂使用的标准指南》.pdf ASTM C1481-2011 Standard Guide for Use of Joint Sealants with Exterior Insulation and Finish Systems (EIFS)《外部绝缘和精整系统用密接剂使用的标准指南》.pdf
  • ASTM C1481-2012 Standard Guide for Use of Joint Sealants with Exterior Insulation and Finish Systems (EIFS)《外部绝缘和精整系统(EIFS)用密接剂使用的标准指南》.pdf ASTM C1481-2012 Standard Guide for Use of Joint Sealants with Exterior Insulation and Finish Systems (EIFS)《外部绝缘和精整系统(EIFS)用密接剂使用的标准指南》.pdf
  • ASTM C1481-2012(2017) Standard Guide for Use of Joint Sealants with Exterior Insulation and Finish Systems (EIFS)《外部绝缘和精整系统用密接剂使用的标准指南》.pdf ASTM C1481-2012(2017) Standard Guide for Use of Joint Sealants with Exterior Insulation and Finish Systems (EIFS)《外部绝缘和精整系统用密接剂使用的标准指南》.pdf
  • ASTM C1482-2004 Standard Specification for Polyimide Flexible Cellular Thermal and Sound Absorbing Insulation《聚酰亚胺柔性多孔隔热和隔声材料标准规范》.pdf ASTM C1482-2004 Standard Specification for Polyimide Flexible Cellular Thermal and Sound Absorbing Insulation《聚酰亚胺柔性多孔隔热和隔声材料标准规范》.pdf
  • ASTM C1482-2008 Standard Specification for Polyimide Flexible Cellular Thermal and Sound Absorbing Insulation.pdf ASTM C1482-2008 Standard Specification for Polyimide Flexible Cellular Thermal and Sound Absorbing Insulation.pdf
  • ASTM C1482-2009 Standard Specification for Polyimide Flexible Cellular Thermal and Sound Absorbing Insulation《聚酰亚胺柔性多孔吸热和吸声绝缘件的标准规范》.pdf ASTM C1482-2009 Standard Specification for Polyimide Flexible Cellular Thermal and Sound Absorbing Insulation《聚酰亚胺柔性多孔吸热和吸声绝缘件的标准规范》.pdf
  • ASTM C1482-2010 Standard Specification for Polyimide Flexible Cellular Thermal and Sound Absorbing Insulation《聚酰亚胺柔性多孔隔热和吸声材料标准规范》.pdf ASTM C1482-2010 Standard Specification for Polyimide Flexible Cellular Thermal and Sound Absorbing Insulation《聚酰亚胺柔性多孔隔热和吸声材料标准规范》.pdf
  • ASTM C1482-2011 Standard Specification for Polyimide Flexible Cellular Thermal and Sound Absorbing Insulation《聚酰亚胺柔性多孔保温及吸声绝缘的标准规格》.pdf ASTM C1482-2011 Standard Specification for Polyimide Flexible Cellular Thermal and Sound Absorbing Insulation《聚酰亚胺柔性多孔保温及吸声绝缘的标准规格》.pdf
  • ASTM C1482-2012 Standard Specification for Polyimide Flexible Cellular Thermal and Sound Absorbing Insulation《聚酰亚胺柔性多孔隔热和吸声绝缘材料的标准规格》.pdf ASTM C1482-2012 Standard Specification for Polyimide Flexible Cellular Thermal and Sound Absorbing Insulation《聚酰亚胺柔性多孔隔热和吸声绝缘材料的标准规格》.pdf
  • 相关搜索

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

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