Discover mental arithmetic exercises, include the articles, news, trends, analysis and practical advice about mental arithmetic exercises on alibabacloud.com
20165236 2017-2018-2 "Java programming" pair programming exercises _ arithmeticPair group: Ye Shi, Guo JintaoFirst, demand analysis:1, can randomly generate N road arithmetic topic, n by user input;2, support a variety of operators;3, can calculate the correct rate;4, can correctly handle the case of the parentheses and output the correct results of the operation.Second, design ideas:Randomly generated
operation Ken Reference;Then enter 0 to indicate that there are countless participating operations, and the results are as shownWhen the input character is not 0 or 1, the program prompts the error, requiring the user to re-enter3. Test methods and procedures with 2, the implementation results are as follows4. Multiple operations to see if there are duplicate topicsIt is not difficult to find a variety of execution and no repetition algorithm appears5. When 30 questions are selected, select the
Practice One,(1)(2) Answer: (1) or:1 | 0 = 1, 0 | 1 = 1, 1 | 1 = 1, 0 | 0 = 0; result = bis (x, y);(2) xor:1 | 0 = 1, 0 | 1 = 1, 0 | 0 = 0, 1 | 1 = 0; result = bis (bic (x, y), Bic (y,x));Suppose z = Bic (x, y) if one of Y's Yi is 1, then XI if 1 then Zi = 0, if XI is 0, then Zi = 0; If Yi is 0, then XI does not change, so the difference between z and x ^ y is Yi = 1, xi = 0 o'clock (x ^ y) The first bit is 1 and zi = 0; So these bits should be found: Xi = 0, Yi = 1, and these positions of
Requirements: Write a class that can be arithmetic, or can be calculated as a rectangular area
1. ProcedureViewcount.html Count.class.phpprintcount.php 2. Results
Requirements: the arithmetic and area operators into one, the main menu lets the user choose to do arithmetic or area calculation
1. ProcedureViewcount1.html use a little javas
20172311 "Java Programming" course pair programming exercises _ Arithmetic first-week phase summary pair Partners
Study No.: 20172307
Name: Steven Uptown
Partner First week blog address:
Demand analysis
Functional Requirements
1. Automatic generation of topics
can be used independently (able to write the function of the test class to create a separate problem)
ca
Exercise request: Randomly generate 30 arithmetic questionsHere is the program code:1#include"stdafx.h"2#include"stdio.h"3#include"time.h"4#include"stdlib.h" //with machine function header file5 6 voidprint ()7 {8Srand ((int) Time (0));9 for(intI=0; i in; i++)Ten { One intx; A intA=rand ()% -; - intB=rand ()% -; - thex=1+rand ()%4;//randomly produce four different algorithms - Switch(x) - { -
) Result+=multi; if (suiji2==3) Result+=div; if (level==3) result+=fenshu3; else RESULT+=R3; if (suiji11==1suiji2!=0suiji2!=1) result+= ")"; } return result; } Main class Import Java.util.scanner;public class Calculate {public static void main (string[] args) {System.out.println ("output The number of questions you want to generate "); Scanner scan = new Scanner (system.in); int Tishu = Scan.nextint (); System.out.println ("Enter th
For the teacher to decorate the arithmetic, the following is the results of our group (there are some deficiencies: such as can not continue to issue, and later improve):#include #include#include#include"math.h"#includevoidMain () {intA,b,c,d,e,r,i,v,an; Charch1[4]={'+','-','*','/'}; Charch2[4]={'+','-','*','/'}; for(i=0;iTen; i++) {a=rand ()% -; b=rand ()% -; C=rand ()% -; D=rand ()%4; E=rand ()%4; printf ("%d%c%d%c%d", A,ch1[d],b,ch2[e],c); printf
%
Members of the group Project impressions
Houzeian: This arithmetic, we do not do very well, add sub-items do not do, many times there is no time, from the beginning of the project did not plan the time of the whole project arrangements, and in the early completion of some slow. But in this project completed we also harvested a lot, including the use of stacks and the use of Stringtokenier methods, as well as the whole project planning
Estimate
Estimate how long this task will take
100
100
Development
Development
800
Analysis
Demand analysis (including learning new technologies)
100
Coding Standard
Code specification (to develop appropriate specifications for current development)
30
Design UML
Design Project UML class diagram
50
C
voluminous.
A: After the members of the reminder, I just re-read the teacher's lectures, found in the PPT gave a clear idea, so before it is to pay their own tuition bar.
2:
Q: How do I prioritize an operator?
A: At first I want to write a compare class that defines the precedence relationships of all operators in the class, determining the relationship between the top element and the current input operator when the suffix is turned, the output "Yes, it feels step-by-point toward the be
-consuming (minutes)
Planning
Plan
60
Estimate
Estimate how long this task will take
3
Development
Development 2000
3000
Analysis
Demand analysis (including learning new technologies)
350
Coding Standard
Code specification (to develop appropriate specifications for current development)
60
Design UML
Design Project UML class diagram
60
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.