- 1、本文档共10页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
c实验题目(Cexperimenttitle)
c++实验题目(C++ experiment title)
The first stage of the process oriented program design
1. programming iterative method for a iteration formula of cube root, cube root:: Xi+1= (2*Xi) /3+a/ (3*Xi*Xi) initial assume that X is a to -5 power |Xi+1-Xi|10 iteration so far. To display the value of a=3,27, and by calling the pow (a, 1.0/3) function is verified.
The 2. program, from the keyboard to enter a positive integer n, and serial number of N and its anti and output. For example, input 2038, output should be 2038+8302=10340.
3 program to calculate the Fibonacci sequence of n using the following method simple variable so-called data translation (the specific value) and displayed on the screen (positive integer n through the keyboard input): old2=1, newItem; variable old1=1, the new Fibonacci newItem is the nearest the first two (old1 and old2) and the cumulative. Then the old1=old2; old2=newItem; data translation . Then calculate another new Fibonacci newItem, followed by the cycle, until the calculated item n series so far.
Formula of Fibonacci sequence as follows:
FIB (1) = 1;
FIB (2) = 1;
FIB (n) = FIB (n-1) + FIB (n-2); / / of greater than or equal to 3, any n.
Expand programming (election), the design of double FIB (int n recursive function); to determine the sequence of Fibonacci n (the specific items of value) and returns, and the preparation of the main function calls on it.
4. program, enter a positive integer m, which represents a RMB amount of money (number). For such a scheme, using a minimum number of Renminbi banknotes, make money m above, and calculate the output results.
Note that there are now 7 yuan RMB banknotes, par value respectively is 100, 50, 20, 10, 5, 2, 1.
The 5. program, the user of any input a year and the year January 1st is the day of the week, and then randomly assigned one day (and then enter the month of any year to date), by the program to calculate the day of the week. Note that in February a leap year is 29 days, non leap year is 28 day
您可能关注的文档
- 99-询价文件(99- inquiry documents).doc
- 99个三阶魔方打乱公式(99 three order Rubik's cube scrambling formula).doc
- 99盘新积分规则简介和等级表(99 sets of new integral rules and grades).doc
- 93-聊城恒大会计师事务所所长王克国同志的先进事迹(93- Liaocheng Hengda accountant firm director Comrade Wang Keguo's advanced deeds).doc
- 9型人格相处之道(The way to get along with type 9 personality).doc
- 8个细节看出气血不足(8 details see the lack of Qi and blood).doc
- 9月 情商管理与压力缓解(EQ Management and stress relief in September).doc
- 9种情绪行为直接对健康产生影响(9 emotional behaviors directly affect health).doc
- aatcc标准 目录(aatcc标准 目录).doc
- 9种方法陪伴抑郁者走出阴影(9 ways to accompany depressed people out of the shadows).doc
- 小学科学:ESP8266智能插座电路原理与动手实践研究教学研究课题报告.docx
- 《金融开放浪潮下我国多层次监管体系构建与创新研究》教学研究课题报告.docx
- 区域教育质量监测中人工智能应用的数据质量分析与优化策略教学研究课题报告.docx
- 《金融科技监管中的数据治理与合规性要求》教学研究课题报告.docx
- 《3D打印技术在航空航天领域中的多材料制造与复合材料应用》教学研究课题报告.docx
- 《绿色金融发展中的政府职能与市场机制研究》教学研究课题报告.docx
- 《植物工厂多层立体栽培光环境调控技术对植物生长发育节律的调控机制探讨》教学研究课题报告.docx
- 销售团队年度业绩总结.docx
- 银行风险管理与金融危机防范.docx
- 银行网络攻击预警与快速响应机制.docx
最近下载
- 附件14:项目《标价分离书》.xls VIP
- 喷塑规章制度管理.doc VIP
- 2025年高考真题——物理(甘肃卷)含答案.docx VIP
- DBJD25-60-2018 甘肃省建设工程施工机械台班费用定额(含税).docx
- 考研真题 中山大学化学学院化学(B)历年考研真题汇编.docx VIP
- 2025年甘肃高考化学真题试卷含答案.docx VIP
- Colorful七彩虹 主板Intel H610H610M-D EVO V21 说明书(系统 win10 win11)用户手册.pdf
- 新九年级暑假衔接讲义 20 作文(二)描写出彩(学生版+教师版)2025八升九语文统编版.docx VIP
- 2024年甘肃高考政治试卷(真题+答案).pdf VIP
- 模板7:CSCEC8B-CM- M10303《项目商务资料档案清单》.xls VIP
文档评论(0)