REAL-WORLD COMPUTER PROGRAMMING FOR KIDS
STEP 19: RETROFITTING & RE-PURPOSING (REFACTORING) OUR CODE, CONTINUED
We are in the middle of retrofitting, or “Refactoring” our code to make it able to run any set of multiple-choice questions it is given to work with (any .CSV file with the right type of data in it, that is). Perhaps in this case, “re-purposing” is actually the more accurate term.
Since we are reading the questions and answers to display on the screen …