用汇编语言实现的程序: 每名学生需要如下描述:班级、学号、姓名、期末成绩、期中成绩、实验成绩、平时成绩。成绩可以有小数,如果有小数只能是点5,班级、学号、姓名格式自定。试编制一程序完成学生的录入和输出,输出的格式为:“班级、学号、姓名、总评成绩”,按照班级、学号进行排序,每人一行;最后再输出60以下、60-70、70-80、80-90、90-100分段内的人数。总评成绩的计算方法是:期末成绩×0.6+期中成绩×0.2+实验成绩*0.1+平时成绩*0.1。
上传时间: 2014-01-13
上传用户:rishian
溫度華氏轉變攝氏 #include <stdio.h> #include <stdlib.h> enum x {A,B,C,D,E} int main(void) { int a=73,b=85,c=66 { if (a>=90) printf("a=A等級!!\n") else if (a>=80) printf("73分=B等級!!\n") else if (a>=70) printf("73分=C等級!!\n") else if (a>=60) printf("73分=D等級!!\n") else if (a<60) printf("73分=E等級!!\n") } { if (b>=90) printf("b=A等級!!\n") else if (b>=80) printf("85分=B等級!!\n") else if (b>=70) printf("85分=C等級!!\n") else if (b>=60) printf("85分=D等級!!\n") else if (b<60) printf("85分=E等級!!\n") } { if (c>=90) printf("c=A等級!!\n") else if (c>=80) printf("66分=B等級!!\n") else if (c>=70) printf("66分=C等級!!\n") else if (c>=60) printf("66分=D等級!!\n") else if (c<60) printf("66分=E等級!!\n") } system("pause") return 0 }
上传时间: 2014-11-10
上传用户:wpwpwlxwlx
溫度華氏轉變攝氏 #include <stdio.h> #include <stdlib.h> enum x {A,B,C,D,E} int main(void) { int a=73,b=85,c=66 { if (a>=90) printf("a=A等級!!\n") else if (a>=80) printf("73分=B等級!!\n") else if (a>=70) printf("73分=C等級!!\n") else if (a>=60) printf("73分=D等級!!\n") else if (a<60) printf("73分=E等級!!\n") } { if (b>=90) printf("b=A等級!!\n") else if (b>=80) printf("85分=B等級!!\n") else if (b>=70) printf("85分=C等級!!\n") else if (b>=60) printf("85分=D等級!!\n") else if (b<60) printf("85分=E等級!!\n") } { if (c>=90) printf("c=A等級!!\n") else if (c>=80) printf("66分=B等級!!\n") else if (c>=70) printf("66分=C等級!!\n") else if (c>=60) printf("66分=D等級!!\n") else if (c<60) printf("66分=E等級!!\n") } system("pause") return 0 }
上传时间: 2013-12-12
上传用户:亚亚娟娟123
成績顯示三個部份abc #include<stdio.h> #include<stdlib.h> int main(void) { float gread printf("請輸入分數\n") scanf("%f",&gread) if(gread>=80&&gread<=100) printf("成績為A\n") else if(gread>=60&&gread<=79) { printf("成績為B\n") } else if(gread>=0&&gread<60) { printf("成績為C\n") } else { printf("分數輸入錯誤\n") } system("pause") return 0 }
标签: include stdlib float gread
上传时间: 2014-01-15
上传用户:waizhang
The XC226x derivatives are high-performance members of the Infineon XC2000 Family of full-feature single-chip CMOS microcontrollers. These devices extend the functionality and performance of the C166 Family in terms of instructions (MAC unit), peripherals, and speed. They combine high CPU performance (up to 80 million instructions per second) with extended peripheral functionality and enhanced IO capabilities. Optimized peripherals can be adapted flexibly to meet the application requirements. These derivatives utilize clock generation via PLL and internal or external clock sources. Onchip memory modules include program Flash, program RAM, and data RAM.
标签: high-performance full-feature derivatives Infineon
上传时间: 2016-12-12
上传用户:wab1981
Altera Modesim破解版的LICENCE. 下载解压后: 1.直接运行mentorkg.exe(生成的license.txt拷贝到D:\altera\80\modelsim_ae\下或者mentorkg.exe拷贝到此目录下运行). 2.设置环境变量lm_license_file="D:\altera\80\modelsim_ae\license.txt" 3.搞定
标签: modelsim_ae mentorkg Modesim LICENCE
上传时间: 2014-02-10
上传用户:silenthink
实验题目:Hermite插值多项式 相关知识:通过n+1个节点的次数不超过2n+1的Hermite插值多项式为: 其中,Hermite插值基函数 数据结构:三个一维数组或一个二维数组 算法设计:(略) 编写代码:(略) 实验用例: 已知函数y=f(x)的一张表(其中 ): x 0.10 0.20 0.30 0.40 0.50 y 0.904837 0.818731 0.740818 0.670320 0.606531 m -0.904837 -0.818731 -0.740818 -0.670320 -0.606531 x 0.60 0.70 0.80 0.90 1.00 y 0.548812 0.496585 0.449329 0.406570 0.367879 m -0.548812 -0.496585 -0.449329 -0.406570 -0.367879 实验用例:利用Hermite插值多项式 求被插值函数f(x)在点x=0.55处的近似值。建议:画出Hermite插值多项式 的曲线。
上传时间: 2013-12-24
上传用户:czl10052678
编制具有如下原型的函数prime,用来判断整数n是否为素数:bool prime(int n) 而后编制主函数,任意输入一个大于4的偶数d,找出满足d=d1+d2的所有数对,其中要求d1与d2均为素数(通过调用prime来判断素数)。如偶数18可以分解为11+7以及13+5;而偶数80可以分解为:43+37、61+19、67+13、73+7。 提示:i与d-i的和恰为偶数d,而且只有当i与d-i均为奇数时才有可能成为所求的“数对”。
上传时间: 2017-01-02
上传用户:Breathe0125
多媒体 技术的起源,最早是在20世纪80年代中期,1984年,Apple公司在研究Macintosh计算机时,为了增加图形处理功能,创造性的使用了映射、窗口、图符、等技术,1985年,微软公司
标签: 多媒体
上传时间: 2017-01-02
上传用户:CHINA526
多媒体技术的起源,最早是在20世纪80年代中期,1984年,Apple公司在研究Macintosh计算机时,为了增加图形处理功能,创造性的使用了映射、窗口、图符、等技术,1985年,微软公司推出了Windows多任务图形操作系统,同样是在这一年,Commodore公司首先推
标签: 多媒体技术
上传时间: 2013-12-03
上传用户:sxdtlqqjl