AP Computer Science A (Day 1)

Did you learn something about computer science/programming in this class? What are the things you learned? Did you find it difficult? Compare writing the program in the terminal with the IDE, which one do you prefer?

I learned to set up a main by using the “public static void main(String[] args)” and then setting up different phrases inside the method. I also learned how to use for loops, if/else statements, and setting up parameters. I found the concept of using the args itself quite difficult as I’ve never used something this before. I prefer to use the IDE over the terminal because the codes itself are quite shorter, simpler, and easier to identify. Some of the codes worked as in if I just used “public void main()” instead of the previous code, and I am not sure why we need to set up args instead of just using a method without args. The code I made below prints my name “JP” in the pyramid pattern, which I used a for loop to create.

Defining Miltimer

The challenge during the mile-timer was accurately recording each person’s mile timer per lap and making sure there is no confusion in time or require a person to measure the time of the mile.

– There was sometimes problems in the mile run where people either skipped a lap or cheat the mile. We wanted to make individual counters for each person and also record the lap time so that there can’t be mistakes or cheating in the future mile runs.

– Another problem was sometimes the records weren’t clear as they were calculated by the human eye and there were slight errors or inaccurate times for the mile run.

– We wanted to make the program so that a teacher didn’t necessarily had to do much work other than starting the program and letting the program run everything by itself. As keeping an eye on every individual accurately requires a lot of work.

Empathy Miletimer

Screen Shot 2017-01-25 at 3.58.11 pm

From the simple machines that people wanted in HKIS, most people wanted things that were mechanical and didn’t need programming such as mouse traps, better doors, and trackers. So from the list, the ones we could have tried programming was mile counter, individual alarm system, and octopus reader. As octopus readers required more than just programming, we needed to choose from individual alarm system and mile counter. As individual alarm systems are most ‘individual’ and we wanted to make something that could help the whole HKIS community, we decided on the mile counter.Screen Shot 2017-01-25 at 3.58.31 pm


We also looked at some of the things that people wanted improved in the school. Again, they were all mostly things that we couldn’t help including stairs, food, wifi, etc…


Screen Shot 2017-01-25 at 3.58.53 pm

In order to make specific improvements in certain subjects, we also asked what subject they wanted improve just incase we could help with one of the problems they had. Sadly, they were mostly academic changes that talked about test and quiz.

These problems were all problems that we could emphasise with, but couldn’t do much to improve.


Mind map                                                                                   Flow Chart

Mind Map      Psuedo Code



Item Test Outcome Fixed Date & By
Function for how to play Works N/A November 23rd

by JP

Function for written questions Works N/A November 23rd

by Marcus

Function for multiple choice questions Works N/A November 23rd

by JP

Function for chance game Repeats words and questions. Took out the while loop and replaced it with if November 28th

by JP

Difficulty choice Repeated the whole function again It was set as ‘while vgamedif == hard’ changed to if to stop loop November 25th

by JP

Total point and grade Works N/A November 25th

by JP

Time stall Can’t control amount of time that stalls Asked Cheng for how to set amount November 25th

by Cheng



I didn’t search up a lot of things, but instead depended on  people a lot.

I got Marcus, who is currently in AP computer science to clean up my code and ask for suggestions. From which I got my chance game idea.

Ms. Mok helped me whenever I wasn’t able to find out what was the problem.

Cheng helped me with the simple things. He taught me a couple of tricks and new commands to run my program.

Python THE QUIZ Lesson 3

This lesson I cleaned up the question list and made a new question list. Now I have to questions list of two different difficulty which the player can choose which one to play.

Screen Shot 2016-11-23 at 9.02.34 amScreen Shot 2016-11-23 at 9.02.29 am

I also got to finish off the ‘chance game’ which I made into a ‘guess the number’ game that we did earlier in the year.

Screen Shot 2016-11-23 at 9.02.41 am

Python THE QUIZ Lesson 2

This class I finished the function for the multiple choice question and added them on to my question list

Screen Shot 2016-11-21 at 10.33.26 amScreen Shot 2016-11-21 at 10.34.51 am

I also finished setting up the ‘hint’ function where the player can get hints but has a limit of 3 throughout the whole game.

Screen Shot 2016-11-21 at 10.34.34 am