C语言大作业题目.pdf

上传人:修**** 文档编号:75980042 上传时间:2023-03-06 格式:PDF 页数:2 大小:55.30KB
返回 下载 相关 举报
C语言大作业题目.pdf_第1页
第1页 / 共2页
C语言大作业题目.pdf_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

《C语言大作业题目.pdf》由会员分享,可在线阅读,更多相关《C语言大作业题目.pdf(2页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、Coursework 2016 DeadLine June 27thWrite a program that will help elementary school pupils practice math.a)The program will first ask the user for his/her ID number(including two letters&4 digits),e.g.Please input your four digit ID no:AB1234 The program should have input validation.Then the program

2、prompts three choices:(1)Start a test(2)Check scores(3)ExitTest:the program will give 10 math problems,e.g.:12*3=3648+32=8056/28=2Note:i)Pupils will answer each problem before the next one is given.ii)The problems should include addition,subtraction,multiplication anddivision.They are randomly gener

3、ated.iii)Randomly generates numbers for problems.However,must ensure thatboth the problem and the result are no larger than two digits.The problemand the result should be greater than or equal to zero.The divisor cannot bezero.iv)After ten problems are finished,record the time used by the student to

4、 dothe ten problems.v)Gives a score to each student.Saves this students ID,his/her score andthe time used into a file named record.txt.vi)Print the following information on the screen:Prob.|Correct Answ.|Ur Answc)Check scores:Searches the file record.txt and lists all the historical scoresfor this student,e.g.:Your previous records are:AB1234 80 150 secondsAB1234 50 182 secondsAB1234 90 98 secondsYou will be marked based on your programs:(1)Correctiveness(2)Readability(3)Robustness(4)Conciseness

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 管理文献 > 企业管理

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁