Personal work Arithmetic topic generation Program (based on Android)

Source: Internet
Author: User

First, the title description:the improvement of practical ability is of course the more hands-on, then start with the first personal project, a week to complete a console-based four operation program, to achieve an automatic generation of primary school arithmetic topic of the command line program. Starting from the "procedure" example of the first chapter of the Law of construction, take 20 minutes, like Chiu, to write a command line "software" that automatically generates arithmetic topics for primary schools to meet the following requirements: 1. Use intent parameters to control the number of problems generated 2. Use the Intent pass parameter to control the range of values (natural number, true fraction, and true fraction denominator) in the topic3. If there are sub-expressions such as E1 ÷e2 in the generated topic , the result should be a true score . 4. There are no more than 3 operators in each topic. 5. The problem of one run of a program cannot be repeated, that is, no two topics can be transformed into the same topic by means of an arithmetic expression of the finite Exchange + and the X or so . For example, 23 + 45 = and 45 + 23 = are repetitive topics, 6x8 = and 8x6 = are also repetitive topics. The two topics of 2+1 and 1+2+3 are repetitive, because the + is left-associative, and 1+2+3 is equivalent to (1+2) +3, which is the total (1+2), which is (2+1). However, 1+2+3 and 3+2+1 are two non-repetitive problems, because 1+2+3 is equivalent to (1+2) +3, and 3+2+1 is equivalent to (3+2) +1, and they cannot be changed to the same subject by a finite exchange. In particular, the operation of the true fraction is shown in the following example: 1/6 + 1/8 = 7/24. 7. The program should be able to support the generation of 10,000 topics. Code has been submitted to the code cloud: Https://gitee.com/hyw826664258/SZYS Insufficient: The ListView in the EditText display content will appear the problem of confusion can not be corrected

Personal work Arithmetic topic generation Program (based on Android)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.