At the start of the program, randomly generated 2 operand and operator, calculated by the user input, as a result, the user input and the result was compared with the results generated by the program is running, the calculation to make the "on" or "wrong" tag, then every time involved in the calculation data and operator and as a result, all want to write to the file,
Such as: 1 + 2=3 for
1 + 3=5 wrong
Two-thirds of=0 wrong
2, each program running at a time, to complete the 10 yes generated and computation,,
3, after the answer by reading the file content, statistical computing result, if a 10 cent, how many questions right, how many points is given,
CodePudding user response:
C #, do a simple calculator program,At the start of the program, randomly generated 2 operand and operator, calculated by the user input, as a result, the user input and the result was compared with the results generated by the program is running, the calculation to make the "on" or "wrong" tag, then every time involved in the calculation data and operator and as a result, all want to write to the file,
Such as: 1 + 2=3 for
1 + 3=5 wrong
Two-thirds of=0 wrong
2, each program running at a time, to complete the 10 yes generated and computation,,
3, after the answer by reading the file content, statistical computing result, if a 10 cent, how many questions right, how many points is given,