Arithmetic Programming Ideas

Source: Internet
Author: User

Design ideas:

First, because the topic is randomly generated, so there will be repeated phenomenon, in order to avoid duplication of the topic, to

Adding a condition to a topic is that each generation of a topic needs to be stored in each subsequent
A topic should be compared with the previous topic, if it is not the same as the previous topic, meet the requirements,
If you repeat the previous topic, you will be re-created.

Second, the topic requirements can be customized, you need to enter a hint in the program, when you enter the program will see the prompt "need

Number of topics to generate "when the topic is finished, please select the" How to print "Quantity customization

Requires that you set a variable in your program to be customized for the number of questions.

This one requirement.

Third, the first topic to have the hint "whether need multiplication method" then the user chooses, wants to satisfy the user's

requirements, then the program needs to have the option to control the transfer variable when satisfying the condition A is the randomly generated topic

There is the appearance of the multiplication method if the condition B is satisfied does not produce a problem with the multiplication method.

Four, the topic requires whether there are brackets, the topic also must first output the message for the user to choose, and then according to the

The user's choice to meet the needs of users, so that the same need to control the transfer of variables to the operation has no

The parentheses are controlled.

Arithmetic Programming Ideas

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.