I. PURPOSE of preparation
In the programming, through the design, compilation, debugging a simulation calculator program, deepen the understanding of the principles of grammar and semantic analysis, and achieve the flexible application of command statements. In the program design, two methods can be used to solve the problem: one is the traditional structured programming method, the other is more advanced object-oriented programming method. The key in object-oriented programming is how to extract the entities in the problem domain (that is, the concepts that are seen everyday) as classes in C + + programs, while attributes and behaviors are often necessary as two kinds of elements of a class, and even the constraints that the class must satisfy.
Ii. Background of the project
Calculator is a very convenient and effective tool in daily life to achieve simple operations such as adding, reducing, multiplying, removing, prescribing, and seeking the reciprocal. To achieve the calculation function, you can use VC + + knowledge to write programs to solve this problem. As for the specific interface can be implemented in Java and so on. This calculator greatly reduces the difficulty of the numerical calculation and improves the accuracy and accuracy of the calculation. The use of the calculator is very simple and convenient, for the majority of primary and secondary school students have a great help, but also for the work of workers a little help. For example, in the calculation of the ability to improve the degree of difficulty can be applied to different computing range, exercise computing capacity.
Third, function description
1. Interface optimization
2. Degree of difficulty
3. Whether the answer is visible
4, specific operators, operations to several
5, the relevant operational conditions can be provided requirements
6, the data accuracy requirements
7, for the practice of the calculation requirements, the need to assign the type of operation, the answer example
8. (optional) Is it possible to convert into a binary?
9. How many digits can the operation take? For example, you can calculate a maximum of 12 numbers.
Combined with examples, may be applied to the operator more time is doing business, such as supermarkets, markets and so on, including primary school just contact the operator and our own binary conversion and so on, if possible, then whether we can on the original basis, enrich the content of the conversion into the system.
Demand Analysis Reform edition