Basic requirements for individual projects: write 10-20 arithmetic titles to the document, program read and output the problem, and calculate the correct results. The user calculates the answer to each question, answers the correct questions, and answers the wrong output. Record the number of correct and incorrect answers and output them separately.
Arithmetic topic Basic requirements:
1. Subtraction four operations all appear 2. Parentheses appear in the calculation
3. Calculation of true and false fractions
4. At least one arithmetic with a length of 10 (10 numbers of mixed operations) is required to include fractions in the calculation, and the representation of fractions is the same as the representation of division, so there is sometimes ambiguity in the representation. For example, in the Expression 4 divided by 2 3 o'clock, the normal writing is 4÷2/3, the result is 6. However, because "÷" is also expressed as "/" in programming, the formula becomes 4/2/3, and the 4/2/3 result is 2 3. Fractions and divisions cannot differentiate between errors that cause results. For this reason I can only distinguish between the two sides of the score, that is, 4/(2/3), and the parentheses on both sides of the score are actually not in accordance with the habit. The topic also requires a minimum of 10 arithmetic. That 4/(2/3) should be counted as 3 number of operations or 2 number of operations is how to understand all can. My understanding is that the topic "/" is all divided by the meaning, that is, the problem of the math problem does not include fractions, just integer operations, the results can contain fractions (must be minimal). At the beginning of this project I found that some of the correct results of the astounding is wrong, the output of the answer found that the actual answer calculation is not wrong, but the negative score of the expression is not standard. When you enter the result, the minus sign in the customary negative fraction is in front, shaped like-a/b, but the stored result may be a minus sign in front of the denominator, shaped like a/-b, causing the program to go wrong. Later unified the standard, judge whether there is a negative sign before the denominator, if there is a negative numerator denominator at the same time, eliminating the negative sign on the denominator, so that the results conform to the customary expression. Through this personal project, I learned a lot, my ability to implement the algorithm has been strengthened, but there are problems need to be improved, such as the beginning of the question is not comprehensive enough. Hope that the teacher later out of the project requirements can be clear, do not appear two, this project requires me to look at the more tangled.
Problems encountered in individual projects