电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

基础强化报告新编范本VIP免费

基础强化报告新编范本_第1页
1/10
基础强化报告新编范本_第2页
2/10
基础强化报告新编范本_第3页
3/10
附件1:学号:0121210680529课程设计(基础强化训练)题目SmithNumbers学院计算机科学与技术专业软件工程班级Zy1202姓名胡小意指导教师段鹏飞2014年7月11日课程设计任务书学生姓名:胡小意专业班级:软件zy1202指导教师:段鹏飞工作单位:计算机学院题目:SmithNumbers初始条件:输入:Theinputfileconsistsofasequenceofpositiveintegers,oneintegerperline.Eachintegerwillhaveatmost8digits.Theinputisterminatedbyalinecontainingthenumber0.输出:Foreverynumbern>0intheinput,youaretocomputethesmallestSmithnumberwhichislargerthann,andprintitonalinebyitself.Youcanassumethatsuchanumberexists.要求完成的主要任务:(包括课程设计工作量及其技术要求,以及说明书撰写等具体要求)1、完成算法分析2、给出对应的程序流程图3、给出能正确实现的程序源码5、给出试算截屏图6、课程设计工作的分析与总结7、给出不少于5篇参考文献。时间安排:2014-7-7到2014-7-11指导教师签名:年月日系主任(或责任教师)签名:年月日目录1注册资料.....................................................................................................................42选题描述.....................................................................................................................43算法分析.....................................................................................................................53.1构造逐位相加之和函数...................................................................................53.2求史密斯数.......................................................................................................54程序流程图.................................................................................................................65程序源码.....................................................................................................................86试算截屏图.................................................................................................................97分析与总结.................................................................................................................98参考文献.....................................................................................................................921注册资料用户名:huxiaoyi密码:123456789选题题号:11422选题描述DescriptionWhileskimminghisphonedirectoryin1982,AlbertWilansky,amathematicianofLehighUniversity,noticedthatthetelephonenumberofhisbrother-in-lawH.Smithhadthefollowingpeculiarproperty:Thesumofthedigitsofthatnumberwasequaltothesumofthedigitsoftheprimefactorsofthatnumber.Gotit?Smith'stelephonenumberwas493-7775.Thisnumbercanbewrittenastheproductofitsprimefactorsinthefollowingway:4937775=3*5*5*65837Thesumofalldigitsofthetelephonenumberis4+9+3+7+7+7+5=42,andthesumofthedigitsofitsprimefactorsisequally3+5+5+6+5+8+3+7=42.Wilanskywassoamazedbyhisdiscoverythathenamedthiskindofnumbersafterhisbrother-in-law:Smithnumbers.Asthisobservationisalsotrueforeveryprimenumber,Wilanskydecidedlaterthata(simpleandunsophisticated)primenumberisnotworthbeingaSmithnumber,soheexcludedthemfromthedefinition.WilanskypublishedanarticleaboutSmithnumbersintheTwoYearCollegeMathematicsJournalandwasabletopresentawholecollectionofdifferentSmithnumbers:Forexample,9985isaSmithnumberandsois6036.However,WilanskywasnotabletofindaSmithnumberthatwaslargerthanthetelephonenumberofhisbrother-in-law.ItisyourtasktofindSmithnumbersthatarelargerthan4937775!InputTheinputfileconsistsofasequenceofpositiveinte...

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

基础强化报告新编范本

您可能关注的文档

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部