- 1、本文档共16页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
JAVA程序设计说明书及代码(国外英语资料)
JAVA程序设计说明书及代码
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 start to feel unable to start, go to th
您可能关注的文档
- 2010年第一季度绵阳市劳动力市供求状况分析(国外英语资料).doc
- 2010年自考医学类工程心理学复习笔记(第2章)(国外英语资料).doc
- 2010年辽宁省高考数学命题展看与温习对策(国外英语资料).doc
- 2010年锅炉运规试题(A卷)(国外英语资料).doc
- 2010新课标数学(国外英语资料).doc
- 2010网络管理员试题(国外英语资料).doc
- 2010建筑工程清包工单价参考(国外英语资料).doc
- 2010年非上海生源高校毕业生进沪就业评分办法(国外英语资料).doc
- 2010陕西中考物理(国外英语资料).doc
- 2010年造价工程师考试《工程造价案例分析》摸底评测(一)(国外英语资料).doc
文档评论(0)