Grade 11 Pre IB Assignments

N

Date

Assignment Topic

File Name

Due Date

Drop Off Folder

Notes to read Homework

131/2Inroduction. Java Installation Install Notepad ++, jdk, and Eclipse on your home computer 01. Java Installation on Gr 11 Demos webpage
23/2Java, First program, Printing ICS3U_01_Assignment1_print_2019.docx February 4 01_Assgn1_Name Java Booklet: pages 11-13
Demo 03. System.out.print
Demo 04. Escape sequences
3, 44/2, 5/2Variables and Datatypes. Addition and concatination.format() method ICS3U_02_Assignment2_format.doc
Format_handout.docx
February 6 02_Assgn2_Timetable Java Booklet: pages 14-24
Demos: 06. System.out.format
07. Advanced: System.out.format
56/2Calculations, Math class, random Calculation Exercises


Calculation Exercises (Practice)

Answer Key

Feb. 7 03_Assgn3_Var_Calc Read:Java Booklet: pages 29-35
Review for the quiz on Tuesday
67/2Scanner Booklet. Questions 7, 10 on pages 44 and 45.Feb. 10 04_Scanner Booklet: pages 35-41
Demo:
12. Scanner (integer & String)
13. Scanner (several integers)
14. Scanner (Double and Int)

710/2Scanner: special cases. Increment/Decrement. Type of Errors. Booklet. Questions 7, 10 on pages 44 and 45.Feb. 10 04_Scanner Booklet: pages 35A, 35B, 37-38, 40-41
Demo:
15. Scanner (go from numbers to Strings)
811/2Quiz 1
If statements, Boolean operators
ICS3U_01 - 15 questions from Logic 1 on codingbat.com
https://codingbat.com/java/Logic-1


ICS3U_02 - 10 questions from Logic 1 and 1 question from Logic 2 on codingbat.com
https://codingbat.com/java/Logic-1
https://codingbat.com/java/Logic-2

Feb. 13 05_CodingBat_Logic Booklet: pages 47-55
Demo:
17. If simple Demo

19. Boolean Expressions 1

20. Boolean Expressions 2

21. Nested Structures

912/2CCC competition. JOptionPane Example in the pick up folder. Demo:
16. JOptionPane

1013/02String methods 5 questions from codingbat.com from String 1
https://codingbat.com/java/String-1
Feb.18 06_CodingBat_String1 Booklet: pages 71-76
Website example:
26. Simple string example
1118/02Switch, compareTo, Simple DMOJ questions DMOJ.ca questions
Question 1: CCC '11 J1 - Which Alien?
Question 2: CCC '12 J2 - Sounds fishy!
Question 3: CCC '04 J1 - Squares
Booklet: pages 55-59
Website example:
18. Switch demo
1219/02Loops
ICS3U_Password_Exercise.docx
Booklet: pages 78-79
Website example: 23. For Loop Demo
1320/02Jeopardy. Review. 6 questions from codingbat.com from String 2
https://codingbat.com/java/String-2
Feb.24 07_CodingBat_String2
1424/02Loops/Strings examples If you did not understand from the class, try to do this questions yourself:

  • reverse a string
  • check if a string is a palindrom
  • print how many 'a' are in a string
  • remove all non-letter characters from a string
  • print the count of all letters in a string
  • codingBat: repeatSeparator
  • codingBat: mixString
  • codingBat: wordEnds

1525/02ICS3U7-01 Math contest
ICS3U7-02 ASCII
Review for the test on Thursday

Caesar Cipher

Challenge:
Kickstart '17 RC PA - Ambiguous Cipher

Booklet: pages 106

Link to Jeopardy file

1827/02Test 1 Review

1928/02Test 1 Analysis Rock Paper Scissors test or Unique emails
Dmoj Questions:

CCC '09 S1 - Cool Numbers
You could need to round to eliminate java rounding problem

CCCHK '08 J2 - Lucky Number
You need to use String for input, becuase int or long can not hold 100000-digit numbers.

202/03Nested Loops 08_Loop_Exercises_2.doc March 5 08_Loops2_Password Booklet: pages 78-84
Website example:
22. While Loop Demo
23. For Loop Demo
24. Simple Loops
213/03Nested Loops March 5 Booklet: pages 78-84
Website example:
22. While Loop Demo
23. For Loop Demo
24. Simple Loops
224/03Nested Loops. Triangles ICS3U_09_Loop_Exercises_Set3_Triangl.doc March 9 09_Triangles Booklet: pages 80-91
Website example:

25. Nested For Loops
235/03Strike
246/03Program debugging
259/03Methods Method1_assignment.docx March 10 10_Loop2_updated Booklet: pages 115-122
Website example:

31. Method example 00
32. Method example 01
2610/03Methods. String Game menu StringGameMenu.docx March 11 Booklet: pages 115-122
Website example:

31. Method example 00
32. Method example 01
2711/03Reading files with Scanner
Website example:

27. Reading files (vegetables or fruits)
28. Pick a random word from file
2812/03String game a_35_String_game_assignment.doc April 6
Website example:

27. Reading files (vegetables or fruits)

28. Pick a random word from file

29. String game. Pick a word in method
297/04Arrays Watch the following tutorials. They are short 4-7min videos.
Java Programming Tutorial - 27 - Introduction to Arrays

Java Programming Tutorial - 28 - Creating an Array Table

Java Programming Tutorial - 29 - Summing Elements of Arrays



Read your booklet: pages 99-100

Send email to Ms. S with the responses to the follwong questions ( in the email body):

1. Using the first methods described in the tutorial, create an array of 6 doubles. Name it val.

2. Populate this array with the values 3.5, 4.5, 6.6, 7.7, 9.1, 10.0.

3. Using the second methods described in the tutorial, create an array of 6 doubles. Name it myVal and populate it with the values in quesion 2.

4. What would be printed: System.out.print(val[2]);

5. What would be printed: System.out.print(myVal[6]);

6. What would be printed: System.out.print(val);
April 7- at the end of the day
Website example:

31. Array declare/populate/print simple Demo

308/04Arrays 2 1. Watch the following tutorials. They are short 4-7min videos.
Java Programming Tutorial - 30 - Array Elements as Counters

Java Programming Tutorial - 31 - Enhanced for Loop

Java Programming Tutorial - 32 - Arrays in Methods



2. Read your booklet: pages 101-102

3. Do exercises 1-12 on pages 102-103 to check your understanding.

Website example:

31. Array declare/populate/print simple Demo

319/04Arrays 3 1. Watch the following tutorial:Java: Loop and Array Examples Barry Brown.
Java: Loop and Array Examples Barry Brown



2. From 0:00 to 20:20 minutes the teacher goes though codingBat questions: Array1 fistLast6, sum3, sum2, makePi, middleWay

3. Do any other 6 questions from CodinBat Array 1. Make screenShots to submit the assignment next week.
April 14th. CodingBat_Arrays
Website example:

31. Array declare/populate/print simple Demo

3213/04Arrays 4 1. Watch the following tutorial:Java: Loop and Array Examples Barry Brown.
Java: Loop and Array Examples Barry Brown



2. From 2:20 to end end the teacher goes though codingBat questions: Array2 countEven, more14, has22, sumArray, sumTogether, multShorter

3. Do any other 6 questions from CodinBat Array 2. Make screenShots to submit the assignment on April 14th ( together with 6 questions from the Arrays1).
April 14th. CodingBat_Arrays
Website example:

31. Array declare/populate/print simple Demo

3315/04Arrays 5 1. Watch the following tutorials. They are short 4-7min videos.
Java Programming Tutorial - 33 - Multidimensional Arrays

Java Programming Tutorial - 34 - Table for Multi Arrays

2D Arrays in Java Tutorial



2. Read your booklet: pages 103-105 and 106-107.

3. Write the follwing java program:
Create a 2-dimential 6x5 array if integers.
Populate it with random numbers ( pick any range you like).
Print it in a table look form.
Find and print the max and min value.

For example:
14 11 36 29 57
45 31 10 21 25
22 74 39 65 18
23 27 97 46 16
34 86 26 57 62
96 81 16 27 36
Min is 10
Max is 96

4. Email the program to me in the email body.
April 15-16th.
Website example:

32. click to see more Array examples (reverse, max, min, median, average, sort, populate)

3416/04Arrays Lists. TicTacToe 1. Watch the following tutorials.
Intermediate Java Tutorial - 4 - Introduction to Collections

Intermediate Java Tutorial - 5 - ArrayList Program

ArrayList in Java Tutorial

Tic Tac Toe Java Game - Build a Tic Tac Toe Game in 30 Minutes



2. Read about arrayLists from my webste. Grade11Demo. 44. Array List Class

Check the demo: 45. Array Lists demo

Website example:

44. Array List Class

45. Array Lists demo
3517/04Quiz 1 and Quiz 2: Arrays and Arrays Lists.
3620/04Array sorting algoriths 1. Watch the following tutorials.
Java: Insertion Sort sorting algorithm

Java: SelectionSort animated demo with code

Java: BubbleSort algorithm

Visualization and Comparison of Sorting Algorithms



These are not the fastes algorithms, but you need to remember them. They are on Grade 12 IB exam, all univercity CS courses, and so on. 2. If you need more explanation, this is the link to my handout.
SortingAlgorithms.docx

3. Do the follwing exercise:
assgn11/ICS3U_Arrays_SortingExercise_2020.pdf

4. Read booklet pages: 105a-105h

April 21st 13_SortingArrays


3822/04Linear & binary search, Big O notation. 1. Watch the following tutorials.
Bill Barnum: Sequential Search (Linear Search) in Java

Binary Search (Java Tutorial)

Intro to Big Oh Analysis



Email me answers to the following questions:
1. Imagine an array made of single digits of your student number. For example, if my student number is 714623445 the array will be 7 1 4 6 2 3 4 4 5.
Show the data after first 5 iterations(passes of the sort) of this array during bubble sort, selection sort, and insertion sort.Assume we try to sort the array in ascending order
For example, for my array 7 1 4 6 2 3 4 4 5 the answer will be:

Bubble sort:
1: 1 4 6 2 3 4 4 5 7
2: 1 4 2 3 4 4 5 6 7
3: 1 2 3 4 4 4 5 6 7
4: 1 2 3 4 4 4 5 6 7
5: 1 2 3 4 4 4 5 6 7

Selection sort:
1: 5 1 4 6 2 3 4 4 7
2: 5 1 4 4 2 3 4 6 7
3: 4 1 4 4 2 3 5 6 7
4: 4 1 4 3 2 4 5 6 7
5: 4 1 2 3 4 4 5 6 7

Insertion Sort:
1: 1 7 4 6 2 3 4 4 5
2: 1 4 7 6 2 3 4 4 5
3: 1 4 6 7 2 3 4 4 5
4: 1 2 4 6 7 3 4 4 5
5: 1 2 3 4 6 7 4 4 5

Check the booklet (105a-105h) for more examples.

2. Answer question 2 of exercises 1.3 on page 105(b) of your booklet.

3. Answer question 3 of exercises 1.3 on page 105(b) of your booklet.

4. Answer question 2 of exercises 1.4 on page 105(d) of your booklet.

5. Answer question 2 of exercises 1.5 on page 105(g) of your booklet.

6. What is the complexity ( O(n) ) of linear search?

7. What is the complexity ( O(n) ) of binary search?

8. If the complexity of a binary search is lower, why don't people use binary search instead of linear search all the time?

9. What is a complexity ( O(n) ) of a bubble sort?

April 23nd


4024/04Object Oriented Programming 1. Create an account on codeHS.com

2. Join our class: Class code is 6F146

3. Cover at least 1 lesson a day. Watch videos or poverPoints, go though examples, submit exercises, answer quiz questions and so on.

4. I recomend to cover 3 classes before our Monday Google meet.




4127/04Object Oriented Programming. Google meet #1.1PM

Check example on my website: 37. Intro to Objects




4329/04Object Oriented Programming. Questions-answers meet.10:30 Email with a link to the video of our first meet was sent to you.

We have decided to have an extra non-mandatory meet on Wednesday from 10:30 to 11:20 AM. It will be an question-asnwer section. Join if you need any clarifications.

Check example on my website: 37. Intro to Objects




4430/04Object Oriented Programming. Google meet #2.1PM By now you should finish covering 5 lessons.

Friday 24.04 - 4.1 INTRODUCTION TO CLASSES AND OBJECTS

Monday 27.04 - 4.2 CLASSES VS. OBJECTS

Tuesday 28.04 - 4.3 USING A CLASS AS A CLIENT

Wednesday 29.04 - 4.4 WRITING CLASSES

Thusday 30.04 - 4.5 WRITING CLASSES AND INSTANCE METHODS



Check example on my website: 39. UML and Encapsulation




464/05Object Oriented Programming. Google meet #3. By Thursday you should finish covering 10 lessons.

Friday 1.05 - 4.6 GETTER AND SETTER METHODS

Monday 4.05 - 4.7 CLASS METHODS AND CLASS VARIABLES

Tuesday 5.05 - 4.8 METHOD OVERLOADING

Wednesday 6.05 - 4.9 LOCAL VARIABLES AND SCOPE

Thusday 7.05 - 4.10 KEY TERMS FOR CLASSES



Check example on my website: 42. Static non-static variables and methods




475/05Black Jack Assignment Black Jack Assignment(pdf)

Black Jack Assignment(doc)

clarifications and hints(pdf)

clarifications and hints(doc)

May 19th.
5111/05Object Oriented Programming. Google meet #5. By Friday you should finish covering all 16 lessons.

Friday 8.05 - 4.11 OBJECTS VS PRIMITIVES

Monday 11.05 - 4.12 INHERITANCE

Tuesday 12.05 - 4.13 CLASS DESIGN AND ABSTRACT CLASSES

Wednesday 13.05 - 4.14 POLYMORPHISM

Thusday 14.05 - 4.15 INTERFACES

Friday 15.05 - 4.16 CLASSES AND OBJECT-ORIENTED PROGRAMMING QUIZ



Check example on my website: 41. Inheritance

43. OOP definitions. More OO examples. Polymorphism




5719/05Quiz: Object Oriented Programming. Intro to GUI.
5820/05Graphical User Interface(GUI) Programming 1) Read Chapter 36: Beginning Graphics
GUI. Part 7: Graphics Chapter 36: Beginning Graphics




2) Do exercise 1 on the Exercise section
Chapter 36 Programming Exercises

I am going to collect this exercise later together with other GUI exercises


5921/05Graphical User Interface(GUI) Programming 1) Read Chapter 37: Beginning Graphics
GUI. Part 7: Graphics Chapter 37: Graphics Examples




2) Do exercise 6 on the Exercise section
Chapter 36 Programming Exercises

3)Go through chapters:

Chapter 55 Introduction to GUI Programming

Chapter 56 JFrames

Chapter 57 Adding Buttons to a Frame

You don't need to learn an actions yet. Just add buttons without any functionality.

4) Create 3 applications: You should use 3 different layouts and 9 different components.
Layouts example:Flow, Border, Grid, Box, Card, and so on
Component example: JLabel, JTextField, JButton, JComboBox, JTextArea, and so on.
For this assignment you can consider JButton with text and JButton with an image - 2 different components.
The same applies to JLabels. JLabel with text and JLabel with an image could be 2 different components.

The following website has a good examples of components and layouts:

https://www.javatpoint.com/java-swing

Layouts examples are also in our pick-up folder in a zip document.

I am going to collect this exercise later together with other GUI exercises Due date: Monday 25.05


6125/05ActionEvents 1)Go through chapter:

Chapter 57 Adding Buttons to a Frame

3) Update one of the applications you have created for the last Assignment. Add functionality to the button. When button is clicked the background image should be changed/added.

Layouts examples are in our pick-up folder in a zip document.

I have created a folder 16_GUI_1. You should submit all together:

Exercises 1 and 6 from Chapter 36

3 applications with GUI components and layouts. One of them should have a button which changes a backgraound image.
Due date: Wednesday 27.05


694/06Final Project 1)Requiremnets and rubrics are sent to you via email

2) You need to submit 3 versions. Version 1 is due on 8th of June

Version 2 is due on 15th of June

Final Version is due on 20nd of June.(10AM in the morning)

3)Make sure your project is approved and you spesify which classes you will use( in the shared .xls document).

I have created a folder 17_FinalProject_v1.




















Semester 1 2019 year

N

Date

Assignment Topic

File Name

Due Date

Drop Off Folder

Notes to read Homework

1,23/09, 4/09Inroduction. Java Installation Install Notepad ++, jdk, and Eclipse on your home computer 01. Java Installation on Gr 11 Demos webpage
35/09Java, First program, Printing ICS3U_01_Assignment1_print_2019.docx September 6 01_Assgn1_Face_Name Java Booklet: pages 11-13
Demo 03. System.out.print
Demo 04. Escape sequences
4, 56/09, 9/09Variables and Datatypes. Addition and concatination.format() method ICS3U_02_Assignment2_format.doc
Format_handout.docx
September 9 02_Assgn2_Timetable Java Booklet: pages 14-24
Demos: 06. System.out.format
07. Advanced: System.out.format
610/09Calculations, Math class, random Calculation Exercises


11/09 03_Assgn3_Var_Calc Read:Java Booklet: pages 29-35
712/09Scanner ICS3U_04_Scanner_exercises_2019.docx Sept 13 04_Scanner Booklet: pages 35-41 Demo: 12. Scanner (integer & String)
13. Scanner (several integers)
14. Scanner (Double and Int)
15. Scanner (go from numbers to Strings)
813/09Flowchart, Types of errors, If statements, Boolean operators ICS3U_05_IfWorkSheet1.doc ICS3U_05_IfWorkSheet2.doc
Boolean_worksheet_2019_s2.docx
Sept 16 05_IF_Practice_wordDocuments Booklet: pages 35-39
916/09Camp. If statements, Boolean operators Finish
ICS3U_05_IfWorkSheet1.doc
ICS3U_05_IfWorkSheet2.doc
Boolean_worksheet_2019_s2.docx
Drop word documents with answers to drop-off folder
Sept 17 05_IF_Practice_wordDocuments Booklet: pages 35-39
1017/09Camp. Calculations, Math class, random review Calculation Exercises (Practice)

Answer Key

Review for the quiz on Wednesday. Booklet: pages 29-35
11 18/09Quiz 1. Loops: while, do, for loops ICS3U_06_LoopsTracing_2019_s1.docx 19/09 Booklet: pages 78-84
Website example:
22. While Loop Demo
23. For Loop Demo
24. Simple Loops
12 19/09Calculations/Boolean review, quiz analysis Jeopardy Booklet: pages 78-84
Website example:
22. While Loop Demo
23. For Loop Demo
24. Simple Loops
1320/09Loops DMOJ.ca questions
Question 1: CCC '12 J2 - Sounds fishy!
Question 2: CCC '03 - Snakes and Ladders
21/09 07_DMOJ_and_Prime Booklet: pages 78-79
Website example: 23. For Loop Demo
14-1623,24,25/09Loops 08_Loop_Exercises_2.doc Sept 30 08_Loops2 Booklet: pages 78-84
Website example:
22. While Loop Demo
23. For Loop Demo
24. Simple Loops
17-1926,27,30/10Nested for loops(Terry Fox run) ICS3U_09_Loop_Exercises_Set3_Triangl.doc October 2 09_Loops3 Booklet: pages 80-91
Website example: 25. Nested For Loops
201/10Test 1 Loops/If 10_Test_1
234/10File reading
247/10Exceptions
258/10Short Period. Test Analysis
269/10Spirit Assembly
2710/10Arrays
2811, 14/10Thanksgiving Days
2915/10Char Arrays
30-3516/10-23/10Methods. String game ICS3U_10_String_game_assignment.pdf Oct 24 11_StringGame
36, 3724/10, 25/10Sorting Array ICS3U_12_Arrays_SortingExercise_2020_s1.doc Oct 28 12_Sorting Booklet: pages 105, 105a)-105h)
3828/10Sorting Array ICS3U_13_2D_array_exercises_2019_s1.docx Oct 30 13_2D_arrays Booklet: pages 106-107
39,4029/10, 30/10ASCII code Coding interview problem. This problem was asked by Dropbox.

Spreadsheets often use this alphabetical encoding for its columns: "A", "B", "C", ..., "AA", "AB", ..., "ZZ", "AAA", "AAB", ....

Given a column number, return its alphabetical column id. For example, given 1, return "A". Given 27, return "AA".

Oct 31 Booklet: pages 106
4131/10Methods ICS3U_14_Nim game assignment.doc

Nov. 1 Booklet: pages 115-122
421/11ASCII Caesar Cipher

Nov. 4 Booklet: pages 106
5626/11Fraction. toString method 1. Download Fraction.java file from the pickUp folder.
2. Add methods (similar to plus(..) method)to subtract, multiply and divide 2 fractions.
3. In main class create 4 fractions.
4. Perform the following operation using the classes you have created: f1+f2, f2-f3, f3*f2, and f4/f3.


Nov. 27 pickUp folder. Java file Fraction.java
5727/11Review Object Oriented Programming Online quiz with answers