Thursday, November 28, 2013

End of Programming Assignment 1! - Learning Experiences and splitting of workload

This basically marks the end of our first programming assignment. Initially when I received this assignment brief, I was quite panic as I am still not familiar with Python (GUI) script. I not sure how to start with the assignment and was still rather quite new to this software. However, with the help of our classmates and my partner, Emily, we managed to complete the assignment within the deadline. I am also glad that in every programming lesson, our teacher will provide us with the information we need to complete our assignment and help us. The time given to us was also rather sufficient for us to complete our assignment in time. Through this assignment, I learned how to create a script tool in a very systematic and orderly way. I've also learned how to use different functions such as the 'def' whereby it's used commonly to define a particular word in the script. Similarly, I've learned how to use the 'if' and 'else' functions correctly. We must use 'print' to allow the words or sentences we want to appear in the final script. I've also learned how to store the values we wanted in the script using the raw_input. I think that when doing this quiz tool, we really have to be careful of the words that we typed as it really make a vast difference if we are lack of a capital letter in one of the word or lack of that particular alphabet. It would affect the whole script operating system. Sometimes, it is also quite difficult to spot the error in a glance. We got to re-look again and again to pin down the error and correct it. So basically, this script is done by Emily and I together where we will think and type together. Some part of the mistakes solving part, we would split the workload and research for the correct way to solve it. We will then combine the solutions and substitute into the script to make the script run smoothly. It was really a great experience exploring Python (GUI) software.

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.
 
 

Wednesday, November 27, 2013

Beginning Part Of The Assignment

This is the first part Emily and I started to do on programming assignment 1. We followed the format given by us and try out by substituting our questions into python.  Currently we had not meet any problems yet and will carry on doing it.
 
 
 
 
We've also taken note down of what teacher provided us with guides on how to do on some part of the assignment. I also used it as a reference guide to guide me as a format type.
 
 
 

Friday, November 22, 2013

Programming Questions

Here's the question that Emily and I, had came out for the programming assignments to ask the audience who will be doing our test. It's a simple grammar test and we had also listed down those options to allow audience to choose between either a,b,c or d. It was quite a fun task to think out of those questions that we will be using.