最新-C语言外语课件-PPT精品.ppt
- 【下载声明】
1. 本站全部试题类文档,若标题没写含答案,则无答案;标题注明含答案的文档,主观题也可能无答案。请谨慎下单,一旦售出,不予退换。
2. 本站全部PPT文档均不含视频和音频,PPT中出现的音频或视频标识(或文字)仅表示流程,实际无音频或视频文件。请谨慎下单,一旦售出,不予退换。
3. 本页资料《最新-C语言外语课件-PPT精品.ppt》由用户(三亚风情)主动上传,其收益全归该用户。163文库仅提供信息存储空间,仅对该用户上传内容的表现方式做保护处理,对上传内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知163文库(点击联系客服),我们立即给予删除!
4. 请根据预览情况,自愿下载本文。本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
5. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007及以上版本和PDF阅读器,压缩文件请下载最新的WinRAR软件解压。
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 最新 语言 外语 课件 PPT 精品
- 资源描述:
-
1、 Lab Programming SyllabusLab Programming Syllabus High-level Language Programming I High-level Language Programming I Chunhua PanChunhua PanLab Schedule and PolicyLab Schedule and PolicyEvery Wednesday or by appointment;Totally 24 hours,2 hours per week;Please be sure to get in the lab on time;Assig
2、nment will be shown in the class on the morning of the same day;Some assignments will be graded;It is a good habit to write the program on paper prior the lab time;Please write your program carefully and independently.2Programming EnvironmentProgramming Environment3Assignment#1Assignment#1Write a pr
3、ogram to show the following sentences:I am a student.I love China.4Assignment#1Assignment#1Write a program to show the following figure:5Assignment#1Assignment#1Given the values of three variables a=2,b=4,c=7a=2,b=4,c=7,write a program to calculate the sum of a,b and c;compute and output the value o
4、f variable x x,where x=a/(b c)x=a/(b c)The result should be like the figure shown below:6Assignment#2Assignment#2Write a program to get the values of integer a and b from the keyboard,and then calculate the results of a+ba+b,a ba b,a a*b b,a/b a/b and a%ba%b respectively.7Assignment#2Assignment#2Inp
5、ut the bottom length and height of a triangle,output the area of this triangle(Reserve two effective digits).8Assignment#2Assignment#2Input five integers from the keyboard,and then output the minimum number among them.9Assignment#3Assignment#3Input n from keyboard,and calculate n!10Assignment#3Assig
6、nment#3Print the first 20 Fibonacci Numbers.11Assignment#3Assignment#3Print all the“Daffodils Number”“Daffodils Number”between 100 999.12Assignment#3Assignment#3Input several numbers from keyboard,print the max number among them.13Assignment#4Assignment#4Write a function to return the maximum number
7、 in five numbers,you can use the function getMax(int a,int b,int c)getMax(int a,int b,int c)two times.14Assignment#4Assignment#4Write a program to accept two numbers from the keyboard,and then print the greatest common divisor(最大公约数)and the least common multiple(最小公倍数)using functions.15Assignment#4A
8、ssignment#4Calculate 1+2+n using nestednested calls of functions.16Assignment#4Assignment#4Calculate 1+2+n using recursiverecursive calls of functions.17Assignment#5Assignment#5Input several numbers,and output its reverse.18Assignment#5Assignment#5Input a string,output the number of words it contain
9、s.19Assignment#5Assignment#5Write a program to accept a string and a character,and then delete each element which is equal to the character from the array.20Assignment#5Assignment#5Write a program to implement the following questions:Define a function void void input(intinput(int s,s,intint n)n)to g
10、et ten integers into an array;Define a function void void sort(intsort(int s,s,intint n)n)to sort these integers in the array;Define a function void void print(intprint(int s,s,intint n)n)to output the sorted numbers in the array;Finally,write appropriate mainmain function to test your program.21Ass
11、ignment#6Assignment#6Use the arrays of structures arrays of structures to store five students information including id id,namename and scorescore,input the information from the keyboard,output the information of the student with the maximum scoremaximum score,then sort sort these students by scores
展开阅读全文