If you have difficulty accessing the Google links, please LOG OUT
of your GAPPS account and try again.
Java Keyboard Input Fundamentals - REMEMBER THIS FOR THE EXAM!!!!!
Your Assignments and Due Dates are HERE
Netbeans Installers are here
Your Assignments and Due Dates are HERE
Netbeans Installers are here
Unit 3 - File Input / Output Operations
Unit 2 - Object Oriented Programming
Unit 1 - Review of CS Fundamentals
Course Introduction - The First Couple of Days
February 10th Practice - Some Graphics - Creating a Graphics Project with a jPanel
Work through these two tutorials:
It's CRITICAL that you create your project at the ROOT OF YOUR H drive by navigating to it. Watch the teacher do it on the screen first.
Graphics in Java
Animation in Java
The Bouncing Ball - version 1
February 7 - Practice Activity
Ask the user to enter a string from the keyboard.
Use a FOR loop to determine if the string (with no spaces) entered is a palindrome (example: 'abba', 'kayak', 'madamimadam'
Give a message to indicate if the string is a palindrome.
Enclose your code in a while(true){} loop so you can test endless strings until a force quit.
Second version:
Create a method that receives a String that is entered by the user in main() and then returns TRUE if the string is a palindrome and FALSE if it's not. Display a message from main() indicating if it's a palindrome or not.
Third version:
Modify your program so that it can accept a string WITH spaces and MiXeD CaSe (ex. 'A man a plan a canal Panama'
Then send the lowercase, no-spaces version to the method for analysis.
Forth version:
Can you change your loop slightly so you only have to count through HALF the characters in the string?
February 6 - Practice activities:
Recall .length(), .charAt(x), .substring(x,y) and .indexOf("x",y) methods from Grade 11. Look around PDF69
1. Write a program that asks the user for a sentence and then prints out the reverse of the sentence.
2. Write a program that asks the user to enter a sentence.
Then use the .charAt() and the .indexOf(,) methods to replace all the spaces with hyphens (-)
You should try the charAt with a loop that traverses the string.
Use the .indexOf(,) method to keep searching until a -1 is returned indicating that no more spaces are in the string. Use String Cocatenation to build the string as you go.
This unit will ensure you're ship-shape with all the Programming Concepts learned in grade 11. At the same time, you'll be using these skills in more advanced ways that will get you used to the rigour and professionalism expected in grade 12.
Unit 1 Outline
Unit 1 Review
CS Fundamentals with Java
Lesson - Algorithms and Heuristics
Lesson - Fundamental Programming Principles
Pseudocode Guidelines for ICS at NHS
Types of Computer Errors
Java Fundamentals
Lesson - NetBeans Refresher
Repetition Practice Problems - 1-3, 6-13
If you want to use keyboard input:
Java Keyboard Input Fundamentals - REMEMBER THIS FOR THE EXAM!!!!!
February 5 - Practice activity:
Write a mark collection program to do the following:
Set a counter to 0.
Ask user to enter a double between 1 and 100.
As long as the value is NOT -9, add it to a sum variable and increment the counter by 1
Once a -9 is entered, divide the sum by the counter and display the average
Selection Structures
Selection Practice Problems - 1-9
Lesson - Java Concepts needed for each Assignment Challenge
Collaborative Coding, Debugging and Unit Testing
Debugger Demo
Input Verification Example
Building a GUI in Netbeans GUIBuilder - extended tutorial
Using GUI Components in Netbeans GUIBuilder - hints
Methods
Lesson - Methods (JavaText 2013 reference - PDF 54)
Practice in JavaText2013 - PDF 66 - 15 to 18
Strings and Methods Review
Lesson - Commenting Suped - JavaDocs
Work through these two tutorials:
It's CRITICAL that you create your project at the ROOT OF YOUR H drive by navigating to it. Watch the teacher do it on the screen first.
Graphics in Java
Animation in Java
The Bouncing Ball - version 1
February 7 - Practice Activity
Ask the user to enter a string from the keyboard.
Use a FOR loop to determine if the string (with no spaces) entered is a palindrome (example: 'abba', 'kayak', 'madamimadam'
Give a message to indicate if the string is a palindrome.
Enclose your code in a while(true){} loop so you can test endless strings until a force quit.
Second version:
Create a method that receives a String that is entered by the user in main() and then returns TRUE if the string is a palindrome and FALSE if it's not. Display a message from main() indicating if it's a palindrome or not.
Third version:
Modify your program so that it can accept a string WITH spaces and MiXeD CaSe (ex. 'A man a plan a canal Panama'
Then send the lowercase, no-spaces version to the method for analysis.
Forth version:
Can you change your loop slightly so you only have to count through HALF the characters in the string?
February 6 - Practice activities:
Recall .length(), .charAt(x), .substring(x,y) and .indexOf("x",y) methods from Grade 11. Look around PDF69
1. Write a program that asks the user for a sentence and then prints out the reverse of the sentence.
2. Write a program that asks the user to enter a sentence.
Then use the .charAt() and the .indexOf(,) methods to replace all the spaces with hyphens (-)
You should try the charAt with a loop that traverses the string.
Use the .indexOf(,) method to keep searching until a -1 is returned indicating that no more spaces are in the string. Use String Cocatenation to build the string as you go.
This unit will ensure you're ship-shape with all the Programming Concepts learned in grade 11. At the same time, you'll be using these skills in more advanced ways that will get you used to the rigour and professionalism expected in grade 12.
Unit 1 Outline
Unit 1 Review
CS Fundamentals with Java
Lesson - Algorithms and Heuristics
Lesson - Fundamental Programming Principles
Pseudocode Guidelines for ICS at NHS
Types of Computer Errors
Java Fundamentals
Lesson - NetBeans Refresher
Repetition Practice Problems - 1-3, 6-13
If you want to use keyboard input:
Java Keyboard Input Fundamentals - REMEMBER THIS FOR THE EXAM!!!!!
February 5 - Practice activity:
Write a mark collection program to do the following:
Set a counter to 0.
Ask user to enter a double between 1 and 100.
As long as the value is NOT -9, add it to a sum variable and increment the counter by 1
Once a -9 is entered, divide the sum by the counter and display the average
Selection Structures
Selection Practice Problems - 1-9
Lesson - Java Concepts needed for each Assignment Challenge
Collaborative Coding, Debugging and Unit Testing
Debugger Demo
Input Verification Example
Building a GUI in Netbeans GUIBuilder - extended tutorial
Using GUI Components in Netbeans GUIBuilder - hints
Methods
Lesson - Methods (JavaText 2013 reference - PDF 54)
Practice in JavaText2013 - PDF 66 - 15 to 18
Strings and Methods Review
Lesson - Commenting Suped - JavaDocs
Unit 6 - Project Management
Computer Ethics
Unit 5 - Recursion, Stacks, Queues and Program Efficiency
Unit 4 - 2D Arrays, Sorting and Searching Algorithms
Unit 3 - File Input / Output Operations
Unit 2 - Object Oriented Programming
Let's Talk about Backups
Let's Talk about Error Checking
In Grade 12, EVERY assignment expects that you do user data-entry verification to make sure the user is entering the data in the format your program expects. There will be marks on the rubric for this work so don't leave it out. Your teacher will lead you through a MINIMAL example of error checking. You're writing software for a non-technical user. NOT YOURSELF!
Two Ways to Drop Your Mark by 15%
1. No Comments in your Code: Communications is approximately 15% of your overall mark. That INCLUDES but is not limited to documentation of your code. If you can't be bothered to put MEANINGFUL, EXPLANATORY and APPROPRIATE commenting in your program code, your mark will be affected accordingly. We don't need a Harry Potter novel of comments, but a 'New programmer' should be able to read your comments and FULLY understand what your code does.
Let's also use meaningful variable, method and class names. If you want to store a person's age, a variable, "theAge" is much more meaningful than "x". If you're writing a method to convert Celsius to Fahrenheit, call it, "celsiusToFahrenheit", not "daBomb".
2. Blow off your Culminating Activity - Your ISU (Culminating Activity) is worth 15% of your final mark. You are given considerable in-class time to work on this assignment but your will likely need to work on it outside of class time as well. If your teacher finds you're blowing off this work, they will:
a) Speak with you
b) Speak with your parents (if you're under 18).
Some students have begun choosing to play the, "I've been accepted to my Post Secondary Program. I can afford to drop by 15%" game. It's a VERY RISKY GAME.
How to Do Poorly on the Unit 1 Test
The Unit 1 Test will be a test of your Grade 11 Java and programming skills. The best way to tank this test is to have the attitude of, "It's only Grade 11. I got this." You should make sure you're competent in the review activities and skills your teacher has assigned. Anything less, you may get a mark that you're not pleased with.
Java Reference
Java Textbooks
Java SE 7 API Documentation
Java Indentation and Style Guide
Top Ten Java Errors
Michael Fudge - Java Tutorials - THESE ARE VERY HELPFUL! (Individual lessons on top right side of screen)
The Reference Library is HERE
Ephemera, Articles of Interest, Cool Stuff
Want to Learn some Arduino before you graduate? - Click HERE
What to Expect as a Computer Science Major
How do CompSci Students Study?
What to do if you don't have a Computer Science Degree
Kill Your Mark - take Photos of Notes
Canada fights for lead in Quantum Computing!
Getting Ready for the Job Market - Globe and Mail Article
FDA Recalls Half a Million Pacemakers over Hacking Fears
The difference between Computer Science and Computer Engineering Programs
Saudi Arabia Grants Citizenship to a Robot - October 25, 2017 Toronto Star
THIS 1 MINUTE PODCAST SNIP WILL CHANGE YOUR LIFE!!! REALLY!
What Tech World Did You Grow Up In? - Washington Post - Nov 28, 2017
The Racialization of Code - Guardian - Dec 4, 2017
A few words about 'break;', 'continue;' and 'System.exit()'
PLEASE DON'T USE THEM IN THIS COURSE except in the following circumstances:
a) break; to end a case structure
b) System.exit() for a Quit button in a GUI
You should be able to use control structures in such a way that your program will end in a controlled manner as a result of conditions being met rather than having a break; statement to exit the program. Thank you!
Sorry - that was 67 words.
Mr. Payne's email is [email protected]
I RARELY CHECK MY GAPPS ACCOUNT
AP Students must also frequently look HERE
About this Course
Welcome to Grade 12 Computer Science with Mr. Payne ([email protected])
This course enables students to further develop knowledge and skills in Computer Science. Students will use modular design principles to create complex and fully documented programs, according to industry standards. Student teams will manage a large software development project, from planning through to project review. Students will also analyse algorithms for effectiveness. They will investigate ethical issues in computing and further explore environmental issues, emerging technologies, areas of research in computer science, and careers in the field.
Prerequisite: Introduction to Computer Science, Grade 11 (ICS3U)
Course Syllabus is HERE
Course Policies are here
Your Grade 11 Java Textbook is HERE
This course enables students to further develop knowledge and skills in Computer Science. Students will use modular design principles to create complex and fully documented programs, according to industry standards. Student teams will manage a large software development project, from planning through to project review. Students will also analyse algorithms for effectiveness. They will investigate ethical issues in computing and further explore environmental issues, emerging technologies, areas of research in computer science, and careers in the field.
Prerequisite: Introduction to Computer Science, Grade 11 (ICS3U)
Course Syllabus is HERE
Course Policies are here
Your Grade 11 Java Textbook is HERE
javatext2013a.pdf | |
File Size: | 1219 kb |
File Type: |
steveerickson-whydogoodwork.mp3 | |
File Size: | 1941 kb |
File Type: | mp3 |
inputverificationdemo.png | |
File Size: | 46 kb |
File Type: | png |
don’t_skip_the_pseudocode.pdf | |
File Size: | 2373 kb |
File Type: |
pseudocode_guidelines.pdf | |
File Size: | 443 kb |
File Type: |