Page 1 of 1

in c language create a function that takes an integer argument n generates two positive integers, each of them consists

Posted: Mon May 02, 2022 12:48 pm
by answerhappygod
in c language create a function that

takes an integer argument n
generates two positive integers, each of them consists of n
digits
prompts the user with a question, such as how much is 6 times
7?
The student then inputs the answer. The function returns 1 if
the student’s answer is correct and 0 otherwise.


Create a program that monitors the student’s performance over a
period of time. The decision to begin a new topic is often based on
the student’s success with previous topics. The program should:

Start with problems of 1 digits
count the number of correct and incorrect responses typed by
the student.
After the student types 10 answers, your program should
calculate the percentage of correct answers.

If the percentage is lower than 75%, display "Please ask your
teacher for extra help.", then reset the program so another student
can try it.
If the percentage is 75% or higher, display "Congratulations,
you are ready to go to the next level!", then repeat the process
with challenges that are 1 digit longer than the completed
iteration ( i.e the first time present challenges that are 1 digit
long, if the student passes after 10 questions, then present
challenges that are 2 digits long, such as 14, 78,..., if the
student passes after 10 questions, then present challenges that are
2 digits long and so on