November 10 2020
Parallel Arrays
Posted here are the slides and notes on parallel arrays. The exercises for this topic are at the end of the notes and demos are posted on github. I will create a hand in dropbox on teams. (yay teams!!) Any questions? Let me know.
Parallel Arrays
Posted here are the slides and notes on parallel arrays. The exercises for this topic are at the end of the notes and demos are posted on github. I will create a hand in dropbox on teams. (yay teams!!) Any questions? Let me know.
|
|
Great News Everyone
- Teams is finally up and running. You can join with code zlvuuh8. Once everyone has joined we can switch.
- I have also added a second coding challenge.
- Our next topic will be parallel arrays
November 5 2020
Hi Everyone
I posted an example of using functions on the github page. Look for the file "Rounding.pde". This file shows a function in action. Feel free to copy it into processing and play with it.. also anytime in the future you want to round a float to 2 decimal places. (say for currency).
Remember functions are the verbs of computer language... we are just defining what the action is.
Hi Everyone
I posted an example of using functions on the github page. Look for the file "Rounding.pde". This file shows a function in action. Feel free to copy it into processing and play with it.. also anytime in the future you want to round a float to 2 decimal places. (say for currency).
Remember functions are the verbs of computer language... we are just defining what the action is.
Some extra resources
Good Afternoon
I have been asked to provide a couple videos to help with functions. This is a crucial concept in programming and we need a clear understanding before we move on to more complex concepts. Its not easy and requires a change in the way we think about programming. Think of them as building blocks to build bigger and better programs. Here are a few videos that can help you out. Remember, whenever you have questions, I'll be happy to help.
Good Afternoon
I have been asked to provide a couple videos to help with functions. This is a crucial concept in programming and we need a clear understanding before we move on to more complex concepts. Its not easy and requires a change in the way we think about programming. Think of them as building blocks to build bigger and better programs. Here are a few videos that can help you out. Remember, whenever you have questions, I'll be happy to help.
|
|
|
Join the ZOOM: November 13
Our guest speaker Mr. Alan Carr will be joining us via zoom from sunny California. Remote learners are expected to log in. Credentials are below.
Join Zoom Meeting
https://us02web.zoom.us/j/82744755211?pwd=R2w5OVRocExLeG4wSkpUbWdyL0JTUT09
Meeting ID: 827 4475 5211
Passcode: 9Q0jg9
Our guest speaker Mr. Alan Carr will be joining us via zoom from sunny California. Remote learners are expected to log in. Credentials are below.
Join Zoom Meeting
https://us02web.zoom.us/j/82744755211?pwd=R2w5OVRocExLeG4wSkpUbWdyL0JTUT09
Meeting ID: 827 4475 5211
Passcode: 9Q0jg9
October 27 2020
Now that we have a foundation for arrays, this seemed like a good place to talk about strings and the functions associated with them. The powerpoint and notes are posted below. The notes contain a couple programs to write to practice using string functions.
Now that we have a foundation for arrays, this seemed like a good place to talk about strings and the functions associated with them. The powerpoint and notes are posted below. The notes contain a couple programs to write to practice using string functions.
|
|
October 23 2020
Array exercise 2:
Fibonacci Numbers
Given an array of 15 integer with the first 2 elements = 1...
A) Create a function that calculates and populated the remaining elements of the array with the Fibonacci sequence, and a second function that prints the sequence to the console. Note: The next number in the Fibonacci sequence is the sum of the previous 2 numbers. (1,1,2,5,7...)
B) Create a function that calculates the displays the ratio between adjacent elements [i+1]: [i], starting i= 3.
Array exercise 2:
Fibonacci Numbers
Given an array of 15 integer with the first 2 elements = 1...
A) Create a function that calculates and populated the remaining elements of the array with the Fibonacci sequence, and a second function that prints the sequence to the console. Note: The next number in the Fibonacci sequence is the sum of the previous 2 numbers. (1,1,2,5,7...)
B) Create a function that calculates the displays the ratio between adjacent elements [i+1]: [i], starting i= 3.
|
|
October 20 2020
We are continuing to work on arrays. Tomorrow we will look at sorting arrays and some of the "famous" algorithms for sorting. If you would like some extra coding challenges try the exercise posted below. (Not for marks, but I can give you feedback)
Quiz on functions and arrays
Cohort A: Oct 27 2020
Cohort B: Oct 28 2020
We are continuing to work on arrays. Tomorrow we will look at sorting arrays and some of the "famous" algorithms for sorting. If you would like some extra coding challenges try the exercise posted below. (Not for marks, but I can give you feedback)
Quiz on functions and arrays
Cohort A: Oct 27 2020
Cohort B: Oct 28 2020
palindromic_array.docx | |
File Size: | 12 kb |
File Type: | docx |
October 13 2020
For those that are done both sets of programming exercises, you may work ahead a little. Our next topic is arrays.
https://processing.org/tutorials/arrays/
For those that are done both sets of programming exercises, you may work ahead a little. Our next topic is arrays.
https://processing.org/tutorials/arrays/
arrays.pptx | |
File Size: | 4787 kb |
File Type: | pptx |
arrays_and_functions_exercise.docx | |
File Size: | 15 kb |
File Type: | docx |
NEW: I have created a github repository for demos and sample code
https://github.com/klatimer1/CS30S
https://github.com/klatimer1/CS30S
|
|
October 7 2020
The question came up today about formatting numbers, specifically about formatting as currency. Although we can use the round function from Java, its really messy. So here's how you do it in Processing.
float anyFloat= 50.4444;
float currency = nf(anyFloat, 0, 2);
println(currency);
This will display to the console 50.44
Note: to use this with a double variable we need to implicitly cast it to a float.
double anyDouble = 56.98568;
float anyFloat = (float)anyDouble;
The question came up today about formatting numbers, specifically about formatting as currency. Although we can use the round function from Java, its really messy. So here's how you do it in Processing.
float anyFloat= 50.4444;
float currency = nf(anyFloat, 0, 2);
println(currency);
This will display to the console 50.44
Note: to use this with a double variable we need to implicitly cast it to a float.
double anyDouble = 56.98568;
float anyFloat = (float)anyDouble;
October 6 2020
I'm still missing some Computer Scientist Digital Posters and Tangram programs. Please hand those in ASAP.
Here is the last topics for functions. For the remaining assignments for this course, you will be expected to use functions. You exercises for this unit are posted below. We will touch base on Friday to see if you need more time to complete them. If anyone has any questions, please contact me.
A reminder that your review exercises and tangrams are due
I'm still missing some Computer Scientist Digital Posters and Tangram programs. Please hand those in ASAP.
Here is the last topics for functions. For the remaining assignments for this course, you will be expected to use functions. You exercises for this unit are posted below. We will touch base on Friday to see if you need more time to complete them. If anyone has any questions, please contact me.
A reminder that your review exercises and tangrams are due
|
|
|
|
October 2 2020
Functions:
Functions:
|
|
|
functions.pde | |
File Size: | 0 kb |
File Type: | pde |
September 29 2020
Happy Grace Hopper Day! Grace Hopper was a pioneer of computer programming and the Queen of Software. Here her story linked below. We are very happy that the internet is back up and running at the school. For remote learning, for Processing review please code solutions of the problems listed below. Remember your tangram code is coming due. Here is the gallery of tangram images |
|
|
September 25 2020
Here are the processing review slides from today. Please review and practice animating your shapes.
Here are the processing review slides from today. Please review and practice animating your shapes.
|
|
|
4_interactive_sketches.pptx | |
File Size: | 1027 kb |
File Type: | pptx |
September 24 2020
Cohort B: During remote learning, try to draw a picture using the shapes of a tangram. A tangram is an ancient Chinese puzzle containing 7 pieces which you can make any figure. What the video below and draw a figure using the shapes of a tangram. (google search of samples)
Note:
to fill the colour of a shape use the fill() function.
For a grey scale use one parameter, an integer between 0-255; (or FF in hexadecimal)
fill(128);
For colour use 3 parameters, integers between 0-255 (one for each of red, green and blue)
fill(0,255,99)
copy and paste your code and email it to me. Have fun!! Due Sept 30 2020
Want more fun with tangrams? Try this online version https://mathigon.org/tangram
Cohort B: During remote learning, try to draw a picture using the shapes of a tangram. A tangram is an ancient Chinese puzzle containing 7 pieces which you can make any figure. What the video below and draw a figure using the shapes of a tangram. (google search of samples)
Note:
to fill the colour of a shape use the fill() function.
For a grey scale use one parameter, an integer between 0-255; (or FF in hexadecimal)
fill(128);
For colour use 3 parameters, integers between 0-255 (one for each of red, green and blue)
fill(0,255,99)
copy and paste your code and email it to me. Have fun!! Due Sept 30 2020
Want more fun with tangrams? Try this online version https://mathigon.org/tangram
September 22 2020
Hello Class Today it was the second cohort's turn to talk about problem solving. The Einstein Riddle video and solution is posted. As well as the Powerpoint from yesterday and today. Review the Programming/Processing Basics PowerPoints during your remote learning days. A reminder your Computer Science Research posters are due tomorrow. |
02_-_visual_problem_solving__lecture_.pptx | |
File Size: | 797 kb |
File Type: | pptx |
|
|
September 21 2020
Today we are talking about problem solving. How do we solve a problem?
Here is a link to The Finder mentioned in class? (optional)
ttps://www.youtube.com/watch?v=aMK-H6BfNbQ
Today we are talking about problem solving. How do we solve a problem?
Here is a link to The Finder mentioned in class? (optional)
ttps://www.youtube.com/watch?v=aMK-H6BfNbQ
September 16 2020
Here is the assignment description and marking rubric.
Here is the assignment description and marking rubric.
computer_scientist_digital_poster.docx | |
File Size: | 12 kb |
File Type: | docx |
September 15 2020
Cohort A: Attached below is the powerpoint slides from today. Assignment details are coming soon. Please work on that during your remote days. Work Period Friday. Due September 23.
Cohort B: We are doing this tomorrow
Cohort A: Attached below is the powerpoint slides from today. Assignment details are coming soon. Please work on that during your remote days. Work Period Friday. Due September 23.
Cohort B: We are doing this tomorrow
history_of_computer_science_2020.pptx | |
File Size: | 5935 kb |
File Type: | pptx |
September 14 2020
Hi Everyone
Thanks to everyone that let me know about the teams code. I am fixing it and will let you know when its done
Both cohorts, please review the powerpoint presentation below and do the activity
Thanks
Mrs. L
Hi Everyone
Thanks to everyone that let me know about the teams code. I am fixing it and will let you know when its done
Both cohorts, please review the powerpoint presentation below and do the activity
Thanks
Mrs. L
flowchart_and_sequencing.pptx | |
File Size: | 119 kb |
File Type: | pptx |
September 11 2020
Good Morning Class
First our teams class has been set up. Please use code 905jyc5 to join.
Have you heard computers use bits and bytes, but do you really know what that means? Today we are looking briefly into binary (base 2) and hexadecimal (base 16) number systems and how it represents the data, specifically how hexadecimal numbers are used to determine colours. This activity can be done in class and at home. Both cohorts please do this today.
Binary Numbers
Binary numbers are just like regular (decimal) numbers but instead of being in base 10, they are in base 2. The digits using the decimal number system are 0-9, the digits in binary are 0 & 1. When counting in decimal when we run out digits we add one to the next place value; its the same with binary. When counting in binary we go 0, 1, 10 adding to the next place value when reaching the maximum digit.
For example, represented in the decimal number 7 is 111. ALL data in a computer can be represented as a series of 0's and 1's.
Watch the videos below:
Good Morning Class
First our teams class has been set up. Please use code 905jyc5 to join.
Have you heard computers use bits and bytes, but do you really know what that means? Today we are looking briefly into binary (base 2) and hexadecimal (base 16) number systems and how it represents the data, specifically how hexadecimal numbers are used to determine colours. This activity can be done in class and at home. Both cohorts please do this today.
Binary Numbers
Binary numbers are just like regular (decimal) numbers but instead of being in base 10, they are in base 2. The digits using the decimal number system are 0-9, the digits in binary are 0 & 1. When counting in decimal when we run out digits we add one to the next place value; its the same with binary. When counting in binary we go 0, 1, 10 adding to the next place value when reaching the maximum digit.
For example, represented in the decimal number 7 is 111. ALL data in a computer can be represented as a series of 0's and 1's.
Watch the videos below:
|
|
Hexadecimal Numbers
Hexadecimal numbers work the same way but instead of base 10 or base 2, it is base 16 which is really a shortcut for writing binary. The digits in hexadecimal are 0-9 and A-F. When counting in hexadecimal we go 8, 9, A, B, C, D, E F; A - F representing the decimal number 10-15.
See the chart below and complete the worksheet
Hexadecimal numbers work the same way but instead of base 10 or base 2, it is base 16 which is really a shortcut for writing binary. The digits in hexadecimal are 0-9 and A-F. When counting in hexadecimal we go 8, 9, A, B, C, D, E F; A - F representing the decimal number 10-15.
See the chart below and complete the worksheet
counting_in_hex.pdf | |
File Size: | 94 kb |
File Type: |
Welcome to Computer Science 30S!
Sept 4 2020
Hello Class
I am Mrs. Latimer and I will be teaching you computer science this term. This is where you will find course content, assignments and announcements. During your days of remote learning it is your responsibility to check here and stay up to date. Here's what's on tap for the first bit.
1. For the first few days were are going to have some discussion on some of the topics within computer science and do some coding and problem solving activities.
2. Next, we will learn about some of the important figures in the history of computer science.
3. We will then review the basics of computer programming.
The majority of our coding will continue processing. In preparation for remote learning, you can download the development software using the link on the computer science home page if you haven't done so already.
Mrs. L
Sept 4 2020
Hello Class
I am Mrs. Latimer and I will be teaching you computer science this term. This is where you will find course content, assignments and announcements. During your days of remote learning it is your responsibility to check here and stay up to date. Here's what's on tap for the first bit.
1. For the first few days were are going to have some discussion on some of the topics within computer science and do some coding and problem solving activities.
2. Next, we will learn about some of the important figures in the history of computer science.
3. We will then review the basics of computer programming.
The majority of our coding will continue processing. In preparation for remote learning, you can download the development software using the link on the computer science home page if you haven't done so already.
Mrs. L
computer_science_30s_course_outline_2020.docx | |
File Size: | 20 kb |
File Type: | docx |