Purchase Solution

Program in C to Test Students

Not what you're looking for?

Ask Custom Question

We have to use rand() to get 2 numbers in random each time and ask student to find the correct solution.. First we start with numbers 1 to 6.If we get 4 and 5 then the program will ask "how much is 4 times 5 4x5 = " Then the student will be able to give the answer, If it is correct then it will be typed on screen "Correct" otherwise "wrong" The student would be able to repeat it for 10 times until he finds the correct answer, If he fails then it will appeared on screen "You have to remember that 4 times 5 is 20!"
i)We have to use rand() also for 4 choices when the student give a correct answer "Very good, Congratulation, Bravo, Correct"
Also we use rand() for wrong answer "wrong, try again, give another answer, surly you know it try again"
ii) if the percentage of the correct answers is 75% of the 10 questions, then it will take us to the next level from 7 to 9. it continues to next level from 10 to 60 and the next level from 70 to 90.
iii) The student should be able to test himself in addition, subtraction, multiplication, division giving integer (we use positive numbers).

Purchase this Solution

Solution Summary

The solution discusses program in c to test students.

Solution Preview

Please find attached C source code. The program operates as follows:

For up to 4 levels of difficulty we give a student in a loop 10 tasks. On each task he has 10 attempts to give a correct answer. Level can be raised only when 75% ...

Purchase this Solution


Free BrainMass Quizzes
C++ Operators

This quiz tests a student's knowledge about C++ operators.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

C# variables and classes

This quiz contains questions about C# classes and variables.