Programming of two pillars arithmetic 2

Source: Internet
Author: User
Tags repetition

Personal Item------Arithmetic 2

  1. The topic avoids repetition.
  2. Parameters can be controlled.
  3. can be customized.

My design ideas:

  1. is the implementation of the random number.
  2. The interface defines the range of random numbers.
  3. The interface definition has a variety of parameter definitions, and you can use case statements to know how many functions are required.
  4. In order to avoid repetition, I define in each set of questions, repetition is not possible, but different sets of questions can be repeated, so the idea is as follows: In the limited range, the number of random items from small to large assignment, has been assigned to the array of items, then skip, until the full assignment, you can get a randomly ordered array, Take the number that you need earlier. So although the first number in each set of questions will not be the same, but this is a test question, you can guarantee that the topic will not be the same.
  5. To be customizable, you can use the while loop to define how many times to print.

This is my design idea, hope can succeed.

Programming of two pillars arithmetic 2

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.