Agility Kata "Filling Out a Questionnaire IV"
Improve the questionnaire application with the following functions:
- The questionnaire dialog should display a "percentage completed" number; a distinction should be made between completion with optional questions and without optional questions.
- The score can be saved in a CSV file with the following structure. Each score is appended to the CSV file so that the CSV file can be used at the end to analyze scores across users and questionnaires.
Title | Question | Answer quality |
Questionnaire 1 | Which of these animals is a mammal | 1 [1] |
Questionnaire 1 | What is the sum of 2+3 | 0 |
Questionnaire 2 | What is the result of 2*3 | 1 |
Questionnaire 2 | First name of President Obama | 1 |
The CSV file is called scores.csv and is located in the application directory. It has this form:
Title;Question;Answer quality Questionnaire 1;Which of these animals is a mammal;1 Questionnaire 1;What is the sum of 2+3;0