- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
九江学院C编程题期末(Jiujiang University C programming title final)
九江学院C编程题期末(Jiujiang University C programming title final)
C programming questions, reference answers and scoring rules (C language final exam questions library) (2010-02-22 20:06:46) reprinted labels: stdio.hiffor scoring rules, PIC language library, source code, education categories: learning materials
C programming questions, reference answers and scoring rules
I. General rules for scoring:
1. programming questions, 15 points each.
2. complete program (including the header files, right main function) 3 points, taking into account the program without standard answer, it is divided into 2 motor, by marking teachers flexibility to maneuver.
3., the specific function of the implementation of 10 points, such as code can get the correct results, 10 points, if the code error, can not get the correct results can be divided into steps, to sub methods, see the reference code notes section.
Two, scoring rules:
Question 1. enter the three sides of the triangle, the triangle area. The formula for finding the area of a triangle is area=s (S-A) (S-B) (S-C), where s= (a+b+c) /2
Reference code:
#include stdio.h
#include math.h
Void, main ()
{
Float, a, B, C, s, area;
Scanf (%f,%f,%f, a, b, c);
S=1.0/2* (a+b+c);
Area=sqrt (s* (S-A) * (S-B) * (S-C));
Printf (a=%7.2f, b=%7.2f, C, =%7.2f, s, =%7.2f\n, a, B, C, s);
Printf (area=%7.2f\n, area);
}
Question 2. enter a capital letter from the keyboard and request to use lowercase letters to output
#include stdio.h
Void, main ()
{
Char, C1, c2;
C1=getchar ();
Printf (%c, %d\n, C1, C1);
C2=c1+32;
Printf (%c, %d\n, C2, C2);
}
Question 3. enter a Fahrenheit temperature, require output Celsius temperature, output required text, take two digits after decimal point. The formula is c=5/9 (f-32)
#include stdio.h
Void, main ()
{
Float, C, f;
Printf (enter a Fahrenheit temperature:);
Scanf (%f, f);
C= (5.0/9.0) * (f-32);
Pritnf (%5.2f\n, C);
}
Question 4. programming for circle area, circle circumference. The radius of the circle is required to be in
您可能关注的文档
- 家园合作(Homeland cooperation).doc
- 家园2舰只名称(Name of home 2 ships).doc
- 家园沟通技巧父母手册(Home, communication skills, parents Handbook).doc
- 家居布置的十个美学原则(Ten aesthetic principles of home furnishing).doc
- 家具销售术语(Furniture sales terminology).doc
- 家居饰品店如何选址管理(How to site management of home accessories shop).doc
- 家常菜谱 好吃好做(Home recipes are good to eat and do).doc
- 家常炒面---油泼面--麻辣鸡丝拌面--炸酱面--酸辣翡翠凉面(Homemade shredded chicken with spicy noodles, Stir-Fried Noodles with Vegetables Youpo surface -- -- -- Noodles with Soy Bean Paste and Cold Noodles with Sesame Sauce jade).doc
- 家庭发生矛盾的因素(Contradictory factors in the family).doc
- 家庭中的蒙特索利教育-21个数学游戏(Monte Solli education in the family; -21 math games).doc
- 九年级英语全一册(下半学期)reading翻译(English for grade nine (the second half of semester) reading translation).doc
- 九年级英语同步作文 unit 12(English composition nine grade unit 12).doc
- 九语15《隆中对》(Nine 15 Longzhongdui).doc
- 买一个商铺需要交些什么税(What tax should I pay to buy a shop).doc
- 买前注意 行货和水货手机区别在那里(Before buying, pay attention to licensed goods and parallel mobile phones, where is the difference).doc
- 买房前必看的基本常识(Basic knowledge of buying a house before you buy it).doc
- 九道经典面试考题(答案)(Nine classic interview questions (answers)).doc
- 买房是个大事(Buying a house is a big deal).doc
- 买手提要注意点什么(What should I pay attention to when I buy a portable).doc
- 买手模式与zara品牌运营案例解析(Buyer model and Zara brand operation case analysis).doc
最近下载
- ZXR10 M6000电信级路由器硬件手册.docx VIP
- 《输液导管相关静脉血栓形成防治中国专家共识》解读PPT课件.pptx VIP
- 高中英语_Being funny without saying a word教学课件设计.ppt
- 2024版育婴师培训全套课件完整版.docx VIP
- 子网掩码相关教学 子网掩码快速算法.doc VIP
- 什么什么踏地四字成语.docx VIP
- 力士乐卷扬减速机制动器安装拆解图文.pdf VIP
- 新能源汽车充电系统检修:车载充电机的认知与检修PPT教学课件.pptx
- 2025年度食品安全风险日管控、周排查、月调度记录表.pdf VIP
- (新版)消防设施操作员(初级)消防设施操作-考试题库(含答案).docx VIP
文档评论(0)