Thursday, November 28, 2013

Continuing programming assignment

We continued to do the part for percentage correct, grade percentage and print results with following to the reference given by teacher. We've also seek helped from some of our classmates on how to start on some parts.
 
 
 
 
So firstly, we started testing out our script and we had this error where by we accidentally typed in 'userinputA' instead of 'userinput'.
 
 
We've then made the following changes and tested out the script again.
 
 
This time round, we've discovered this error whereby 'questionlist' is not defined. Then we realised that the 'L' should be in capital letter instead. We've also made changes for 'anslist' to 'ansList' which is a similar problem. So, here we are testing out again after making changes.
 
 
This time round, the 'runQuestion' is not defined and we realised we've a missing 'S' on the lower part of 'runQuestion' so we've made changes again and tested out.
 
 
So, this is the next error that we've faced. After asking some of our classmates for help and doing researched. We understand that for numerical values, '+' is not needed to put such as score , score_possible , percent and finalGrade.  After fixing and removing the '+' sign, we tested out again.
 
 
And yes! The script is finally working fine and it is able to display the scores, percentage and final results grade correctly.
 
 

No comments:

Post a Comment