- 1、本文档共16页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
java程序设计说明书及代码(Java programming instructions and code)
java程序设计说明书及代码(Java programming instructions and code)
JAVA programming instructions and code, 2007-05-19 21:19JAVA programming manual
I. design topics:
Calculator based on JAVA
Two, design purpose:
A small simple calculator, simple calculation can meet the needs of people, there are four main functions of arithmetic simple and complex arithmetic, but also adds several expansion function involves little more complicated operation. It can free people from tedious manual calculations.
Three, operating environment
NetBeans IDE 5
Four, program function module
This procedure consists of three forms, namely: Jisuan (main form), Help (help form), Science (scientific computing form) composition. The Jisuan form is a calculator display interface, basic functions can be achieved through the operation of the calculator, the Help display help information, let you know the relevant content of the calculator, the Science interface represents the scientific calculator, time only a part of the design.
Procedures used by the main controls are: JMenubar, JTextFiled, JLabel, JCommand, JPanel and so on.
Master form flow chart:
Directions: the following are the names of variables and methods used in a program
Now: a variable that represents the number displayed in the current text field;
Lately: a variable indicating the number of digits to be displayed before using the operator;
OperateNow: represents the variable that stores the current use of the operator;
Operatelate: a variable that represents the previous character
Operator (): a method of calculating results
DoForeScreen (): displays the current value
Six, summary
This work is all object-oriented programming ideas of previously learned and programming method of a summary, review and practice, through a semester of JAVA learning, I think it is indeed a language we now have to learn the language, its design is very close to the peoples way of thinking, I think it is very convenient, in the curriculum design, I do a calculator, just
您可能关注的文档
- 2009网络终极盘点(2009 network ultimate inventory).doc
- 2009年网络流行语大总结(In 2009, network catchwords summed up).doc
- 2010mcpu(2010mcpu).doc
- 2010—2011学年度上期初三物理半期考试卷(2010 - 2011 school year, the third half of physics examination volume).doc
- 2010—2011福建重要时事(2010 - 2011 important events in Fujian).doc
- 2009金山区初三数学模拟试卷(2009 Jinshan District mathematics simulation paper).doc
- 2010中考题数学(2010 math exam).doc
- 2010年3月计算机等级考试二级vf笔试真题(In March 2010 two computer grade examination questions written VF).doc
- 2009年普通高等学校招生全国统一考试(广东卷)(National unified examination for general institutions of higher learning (Guangdong roll) in 2009).doc
- 2010年中考数学真题分类汇编专题29 尺规作图(In 2010 29 compilation of thematic classification of senior high school entrance examination mathematics exam ruler).doc
文档评论(0)