Tuesday 29 April 2014

Which God or Goddess are you?

Coding: Bank Assignment #2

Second Assignment Due April 25th.
Save a copy of your first banking example and add extend it for the second assignment.

The bank still has one customer but the customer can have at least two accounts. In addition to being able to withdraw and deposit money the customer can also transfer funds from one account to another. The customer can also have a line of credit account.

I would like you to use methods (also called functions or routines) in your code.
You can review the slide pack called Introduction_to_Methods_revised.pdf. We have gone through the slides on March 24th. The copy from April 4th has some revision.

Or you can watch a youtube video at the following link.https://www.youtube.com/watch?v=7MBgaF8wXls&list=PLFE2CE09D83EE3E28 Watch Tutorials 15 and 16.

Additional notes
  • comment your code.
  • Give the proper feed back to the customer. e.g if he/she withdraws money and there is insufficient funds, inform the customer.
  • Think of error scenarios. e.g invalid input.
  • No need to hand in flowcharts.
  • Due on April 25th
  • If you finish before April 25th, add the functionality to handle two customers.


Screenshot of a section of my code:


Evaluation:

Feed back

A few bugs in the logic so that performing the same operation twice prints out an error message and then the program recovers.  
-good attempt to use multiple methods.  (although that's where the bug was introduced too)
-good job recognizing that you can put common code into methods so that it isn't duplicated unnecessarily.
-no exception handling, so non-integer input results in program termination. (I did not take mark off for this)
Mark 8 out of 10.   -2  

Well done!

Friday 25 April 2014

Coding: Quiz 1

Quiz:

There are four questions and each are worth 25%.  
You have two hours to do the quiz.  Plan your time accordingly.  
It is open book. You may use the following to help you.
      1) programs you have written previously.
      2) the internet (for examples, to look up conversion formulas etc.)
      3) all course notes on the wiki page.
      4) khan academy (your programs and/or videos)
You may not discuss your with each other.


1) Write a program that outputs the following patterns. Use at least one loop.

a.)
*
**
***
****
*****

b.)
++++1
+++22
++333
+4444
55555


=====================
2.  Write a program that 
    1) Asks the user if they want to convert miles to kilometres or kilometres to miles.
    2) Reads the input and does the conversion.
    3) Prints the result to the screen.

=====================
3.  Write a program that 
    1) Asks the user if they want to convert pounds to kilograms or kilograms to pounds.
    2) Reads the input and does the conversion.
    3) Prints the result to the screen.
=====================

4.  Write a program that
    1) Asks the user for a number between 1 and 512.
    2) Print out the multiples of that number up to 12.

    e.g.
    Enter a number
    512
    0 * 512 = 0
    1 * 512 = 512
    2 * 512 =  1024
    .
    .
    .
    12 * 512 = 6144


Evaluation:

1.

*, **, ***, ****, *****    

 [4] is +5
 [3] is +4
 [2] is +3
 [1] is +2
 [0] is +1


2.  Correct.  Nice precision!  

3. Correct.  Nice precision!  

4.  Correct.


Mark 16 out of 20.    Well done!

Question 1a -1  Using one System.out.println for each would do the job.


Question 1 b)  - 3 desired output was:
++++1
+++22
++333
+4444
55555


Tuesday 22 April 2014

Chemistry: Test 5

The fifth test was of chapter 8. A chapter of theory such as Hydration, Hydrogen Bonding, The relationship between temperature and the solubility of Gases, etc... The chapter also consisted numericals, mainly one principle equation, C1V1=C2V2. The chapter centred around the concept of  Concentration (of a solution). 

Wednesday 16 April 2014

Chemistry: 2nd Presentation: Titration

Mark: 95%

Comments:
Dani your Second Presentation on Titration was more structured and timed as compared to the
first one which shows that you learned from your mistakes. You answered all the questions with confidence
which showed your depth of knowledge regarding the subject. There is always space for improvement and 
hopefully. You will upgrade and enhance your capabilities in future presentations.

PowerPoint:

Friday 11 April 2014

419 : Extended Reflections + Rubric

After reading and reflecting  419 by Will Ferguson we asked to develop two of our reflections. Here are mine as well as the rubric and comments.

Rubric & Comments:



Reflections:

419-2reflections2014 by Greenprop

Sunday 6 April 2014

419: Book Trailer



The Ottawa Public Library hosts a video book contest where teens from around the ages of 10 to 18 create a video review, trailer, or a scene of their favourite book. Our teacher this would be a fun way to demonstrate our understanding of the book 419 by Will Ferguson. So my fellow student and I created and submitted a book trailer, and funny enough we were amongst the top ten finalists. A bonus was that we won the wildcard prize which is a 50$ gift card to Chapters, which I think is the best prize of them all.

Thursday 3 April 2014

Chemistry: Test 4

Going from a 72% to a 94% is a very impressive leap, for me. Particularly if the test consisted of only numericals. I am also glad that this test also covered chapter 5, a bit like a retake of ch.5. Thus the previous test of 72% is not worth as much.  This test was also the largest test given so far since it covered all the mathematical concepts of chapter 5 to 7. Questions could consist of determining the empirical as well as the molecular formula, the mass percentage of a specific element in a compound or of the entire compound, determine the limiting reactant, determine the moles needed of an element or compound to react with different one(s).