Greetings,
I made a CHECK button, that would checks all the answers in my Test/Survey and gives you an result which says that you're either a Good or a Bad person. (e.g. If you have more answer's checked by Option Buttons, that make a count_of_good > count_of_bad, then You'll get a message table, saying that you're a good person.
But I want to write the code, which makes the button active, only when every answer is given (e.g. I have 10 questions, and I need to make so, that the checking will start only when all of the 10 questions will be answered, if the conditions will be unacceptable (Not every question is answered) then the user will be notified with a message "You must answer every question, before you can start checking your test)
And also I would like to write a code, that shows the count of Good and Bad points (e.g. Answers that define you as a good person - #, Answers that define you as a bad person - #) If someone is familiar with C, the code if written in C would look like this -
int main()
{
int goodcount;
int badcount;
if (answer 1 = true)
{
goodcount += 1;
}
...Every line of code, for every answer type, including the badcount += 1;
printf("The count of good answers: %d \n The count of bad answers: %d",
goodcount, badcount);
}
The main questions - how to program the CHECK button, as I described earlier, and which code should I write, so the count of Good and Bad answers would be displayed, when I press the CHECK button.
My current code for the button is here -
https://pastebin.com/kEPudyrb
Thanks in advance for every advice, which will be given!