欢迎来到天天文库
浏览记录
ID:35618158
大小:215.50 KB
页数:20页
时间:2019-04-02
《课程设计说明书--(一元多项式运算)》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库。
1、长沙学院课程设计说明书题目一元多项式运算系(部)计算机科学与技术系专业(班级)软件工程6班姓名邹胤屏学号2010022615指导教师魏歌起止日期2011.09.06-2011.09.1620课程设计任务书课程名称:数据结构与算法设计题目:一元多项式计算问题已知技术参数和设计要求:问题描述:设计一个稀疏多项式简单计算器基本要求:(1)输入并分别建立多项式A和B(2)输入输出多项式,输出形式为整数序列:n,c1,e1,c2,e2……,其中n是多项式的项数,ci和ei是第i项的系数和指数,序列按指数降序排列(3)完成两个多项式的相加、相减,并将结果输出;测试数据:(1
2、)A+BA=3x14-8x8+6x2+2B=2x10+4x8+-6x2(2)A-BA=11x14+3x10+2x8+10x6+5B=2x14+3x8+5x6+7(3)A+BA=x3+x1B=-x3-x1(4)A+BA=0B=x7+x5+x3+x1(5)A-BA=100x100+50x50+20x20+xB=10x100+10x50+10x20+x选作内容:(1).多项式在x=1时的运算结果(2)求多项式A和B的乘积设计工作量:40课时工作计划:见课表指导教师签名: 日期: 教研室主任签名: 日期: 系主任
3、签名: 日期: 长沙学院课程设计鉴定表20姓名邹胤屏学号2010022615专业软件工程班级六班设计题目图书预定系统指导教师付细楚指导教师意见:评定等级:教师签名:日期:答辩小组意见:评定等级: 答辩小组长签名: 日期: 教研室意见:教研室主任签名:日期: 系(部)意见:系主任签名: 日期: 说明课程设计成绩分“优秀”、“良好”、“及格”、“不及格”四类;20摘要这是我第一次接触关于数据结构的程序设计,这一次有三个可选择,而我选择了一元多次项式的计算器来作为我这次的任务。输入多个或一个多项
4、式后,一元多项式有两两进行相加、相减、相乘,还有把它按次幂的升或降进行排列输出。我做的主界面很普通,按0-4来选择这些功能,如果选择没有在这个范围了,你就可以是否重新选择。这次主要运用了链表存储结构,这样可以很方便的计算一元多项式的基本运算。这次设计还用到了C++和C语言的相关知识,在主函数中可以通过调用来完成运算。关键字:数据结构、C++、C语言、链表、一元多项式运算目录20第1章需求分析····························································61.1问题描述···················
5、··········································61.2基本要求·····························································61.3测试数据····························································61.4选作内容····························································6第2章系统分析·····························
6、······························72.1功能模板设计························································72.1.1多项式创建··························································72.1.2主菜单······························································72.2编码··········································
7、······················8第3章.运行效果图·························································93.1创建多项式A..B··················································93.2主菜单···························································93.3输出多项式AB··················································103.4
8、20多项式A+B····
此文档下载收益归作者所有