In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
The editor will share with you how to use C language to realize the math examination system for primary school students. I hope you will get something after reading this article. Let's discuss it together.
1. To make an examination system for primary school students, the functions include:
The main results are as follows: (1) using random numbers to work out 10 addition questions.
(2) pupils' users answer questions and give answers to each question.
(3) judge the answers of primary school students.
(4) calculate the correct answer rate of primary school students.
two。 Further improve and improve the quality of the topic.
Require (1) internal arithmetic: the arithmetic and the result are all less than 100!
(2) after randomly generating operators, the operands are generated for each operation to guarantee the following requirements: for addition, the sum of the two numbers is guaranteed to be no more than 100; for subtraction, the subtraction is greater than the subtraction, and the subtraction is not greater than 100; for multiplication: the product of two numbers is not more than 100; for division: the divisor is greater than the divisor, and the divisor is not greater than 100, and the divisor is not allowed to be 0.
3. Create a file that contains manual questions. The program reads the title from the file.
Reference answer:
1. To make an examination system for primary school students, the functions include:
The main results are as follows: (1) using random numbers to work out 10 addition questions.
(2) pupils' users answer questions and give answers to each question.
(3) judge the answers of primary school students.
(4) calculate the correct answer rate of primary school students.
# include # include # include int main () {int sum=0;/* student answers the question correctly * / int aRegy / ddpent; / * represents two operands, the correct answer and the answer entered by the student * / int i; srand (time (0)); / * initializes the random seed * / for (iS0; I)
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.