Tuesday, December 3, 2013

The end.....?

Joshua and I combined our work and finally get the script to run smoothly without errors. We were thrilled by it and gave it a try multiple times just in case any mishaps would occur. There are some minor errors here and there but, we managed to fix it up.

I would never done it without the help of my partner, Joshua. He helped and encourages me along the way during this assignment. Not to forget my friends around me that gave a helping hand to us. I really appreciate their help and concern.

Personally, I don't really understand how programming works, including functions! My friend, Sean, taught me one by one of how functions are being used. With his slow-pace teachings and I'm there "Oh", "Ah" and "Y MUST DO TIS?", I somehow understand what he trying to teach. In addition, Zulhilmi taught me on what scripts to use and made it more understandable.

This was a fun learning experience for me as it was my first time doing programming. I have to thank my friends that helped me and especially my partner, Joshua.

What if....?

The user might press other letters instead of the given "a", "b", "c" and "d". With that, the script will take it as a wrong answer.
BEFORE
Joshua and I discussed about this and we decided to place extra strings to allow the user to answer correctly.
AFTER
I believe that the user will have a chance to answer properly if they mistyped the letter.


INVALID SYNTAX

Wait, why did I get this error?
THAT RED HIGHLIGHTED LINE
So I carefully check it back and found out I forgot to put ":"!
Andddddddddddd, viola!
I managed to combine my scripts with Joshua and we will run the script together.

Monday, December 2, 2013

Need a stable comparison

So basically, the user might accidentally typed in either lower case or upper case letters for the answer (And sometimes a space too).
Th strings were given in the brief~

And, I ask around for help. They taught me how use these strings.
Apparently, it looks alright :)
However, when I run it, the problem is STILL the same! With someone's help, I managed to get it to run properly.
Ohhhhh, ok




Opps!

Encountered a minor problem in my script. Urgh, so minor that I nearly flip a table xD
Eh?! Why didn't it run the questions?

Oooooh, instead of "(question)", I used "(ask_question)"
Looks like it can run smoothly. Now, I need to fine tune it a little bit more~

Sunday, December 1, 2013

Splitting of Work Load

We were given with 5 functions to use for the Quiz. Joshua and I split the functions into 2:2:1. We will do the extra function together.
Red for Me and Blue for Joshua
So, "def percentage_correct (score, possible_score):" is the extra one and we will do it together ^^

The Questions for the Quiz

So, I discussed with my partner (Joshua) on the questions for the Quiz. He and I will create 5 questions each.
I will not reveal my options. Muahaha!
Alright now, time to get my scripting done!