欢迎来到天天文库
浏览记录
ID:69436655
大小:290.00 KB
页数:20页
时间:2021-11-04
《java计算器》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、.-工程技术学院课程设计说明书学生:专业:计算机科学与技术学号:170731062指导教师:红梅所属系〔部〕:信息系-.word.zl.-二〇一七年十二月工程技术学院课程设计评阅书题目:计算器 信息 系 计算机科学与技术 专业设计时间:2021年12月5日~2021年12月10日评阅意见:成绩:指导教师:〔签字〕-.word.zl.- 职 务:201年月日-.word.zl.-摘要在当今这个网络的时代,java语言在网络编程方面的优势使得网络编程有了更好的选择。Java语言最大的特点是具有跨平台性,使其不受平台不同的影响,得到了广泛
2、的应用。该程序是一个图形界面的java计算器,其界面主要采用了swing包, 程序实现了: 〔1〕实现简单加、减、乘、除的运算。 〔2〕实现除了加、减、乘、除按钮外其他按钮功能。 〔3〕给软件添加一个编辑、查看、帮助的主菜单。 〔4〕在数据输入方面,提高程序代码的强健性,增强其对非法输入数据的识别能力。 〔5〕科学型计算器与标准计算器之间的菜单切换。 Java的早期版本以来,抽象窗口工具包为用户界面组件提供了平台独立的API。在AWT中,每个组件都由一个原生的等同组件生成和控制,这个原生组件是由当前的图形窗口系统决定的。 与此相对,Swing 组件经常被描述为轻量级的,因为它们不需要
3、操作系统本身所带窗口工具包的原生资源来生成。关键词:计算器;四那么运算;函数功能 -.word.zl.-AbstractIntheageofthisnetwork,theadvantagesofJavalanguageinnetworkprogramminghavemadethenetworkprogrammingabetterchoice.ThebiggestfeatureoftheJavalanguageisthecrossplatform,whichmakesitnotaffectedbythedifferentplatforms,andhasbeenwidelyused.The
4、programisagraphicalinterfacejavacalculatorinterfaceswingpackage,program:(1)theoperationofsimpleaddition,subtraction,multiplicationanddivision. (2)thefunctionofotherbuttonsexceptforadding,reducing,multiplyingandremovingbuttons. (3)addamainmenutothesoftwareforediting,viewing,andhelping. (4)intheas
5、pectofdatainput,therobustnessoftheprogramcodeisimprovedanditsabilitytorecognizetheillegalinputdataisenhanced. -.word.zl.-(5)menuswitchingbetweenthescientificcalculatorandthestandardcalculator.EarlyversionsofJavahasprovidedaplatformindependentabstractwindowtoolkituserinterfacecomponentsAPI.InAWT,
6、eachcomponentisgeneratedandcontrolledbyanativeequivalentcomponent,whichisdeterminedbythecurrentgraphicalwindowsystem. AndtheSwingcomponentsareoftendescribedaslightweight,becausetheydonotneedthewindowtoolkitoftheoperatingsystemitselftogeneratenativeresources.Keywords:calculator;fouroperation;fun
7、ctionfunction目录摘要IAbstractI第1章 系统概要11.1查找资料11.2系统介绍11.3根本功能要求1-.word.zl.-第2章 设计思路与算法12.1 应用的根本工作流程12.2 类设计 12.3 应用界面的设计 12.4 事件处理原理、具体设计 12.5 算法考虑 1第3章 运行结果及分析1第4章设计中遇到的重点及难点14.1设计中遇到的重点14.2设计中遇到的难点1第5章 心得体会15.1系统需要完善的地方 15.
此文档下载收益归作者所有