Computer Science 2 Q2 2020-2021 |
Registering on CodeHS Website
Link to CodeHS Website for this course using the button below. Use your full first and last name when registering.
Class Code: 8BE16 |
Beginning Object Oriented Programming 11/17-11/18/2020
Assignment
CodeHS 2.1.1-2.1.9 Looking Ahead CodeHS 2.2.1-2.2.10 |
Constructors 11/19-11/20/2020
Assignment
CodeHS 2.2.1-2.2.10 Looking Ahead 2.3.1-2.3.6 Method Overloading |
More Construction and some vocabulary
Assignment
CodeHS 2.3.1-2.3.10
CodeHS 2.3.1-2.3.10
void Instance Methods 12/1-12/2/2020
Assignment
CodeHS 2.4.1-2.4.8 |
void Instance Methods with Parameters 12/3-12/4/2020
Assignments
CodeHS 2.5.5-2.5.8 |
Non Void Instance Methods 12/8-12/9/2020
Assignment
CodeHS 2.6.6-2.6.8 |
Strings and Things 12/10-12/16/2020
Assignment
Complete Strings Unit at CCU Take notes as needed Complete the end of unit quiz CodeHS 2.7.7-2.7.9 |
More Strings/Unit 2 Review
Assignment
CodeHS 2.8.7, 2.8.8 CodeHS 2.11 Unit 2 Practice Test |
Assignment:
Complete one of the following
1)Overtime Pay: Write a program that inputs a rate of pay and the number of hours worked during the week. The program will calculate the pay for the person. For every hour of overtime work (over 40 hours in the week) the person gets paid 150 percent of the regular wage.
Example: Input: Sue, $10.00 per hour rate, 45 hours
Calculation: pay = 10*40 + 1.5*10*5 = $475
2) Teen Check
Input: A person’s age
Output: Whether the person is a teenager.
Example: Enter 14, You are a teenage
Enter 10: You are not a teenager
3) Quadratic with Real Roots: Modify the quadratic formula program to also calculate imaginary roots.
If b2 – 4ac >= 0 then display the real roots
Else show the imaginary roots
Complete one of the following
1)Overtime Pay: Write a program that inputs a rate of pay and the number of hours worked during the week. The program will calculate the pay for the person. For every hour of overtime work (over 40 hours in the week) the person gets paid 150 percent of the regular wage.
Example: Input: Sue, $10.00 per hour rate, 45 hours
Calculation: pay = 10*40 + 1.5*10*5 = $475
2) Teen Check
Input: A person’s age
Output: Whether the person is a teenager.
Example: Enter 14, You are a teenage
Enter 10: You are not a teenager
3) Quadratic with Real Roots: Modify the quadratic formula program to also calculate imaginary roots.
If b2 – 4ac >= 0 then display the real roots
Else show the imaginary roots
For loop day 1 1/7-1/8/2021
Assignments:
1) Fix Two in order (OnlineGDB) Complete one of the following 1) Stars Input: Nothing Output: Use a for loop to show 10 stars (*) Push: User inputs the number of stars to show Push: Input the number of rows of stars and columns of stars, then the program shows the grid based on the user input using a for loop inside a for loop (nested) 2) Baby Shark: Using a for loop for the repeated phrases, write a program that will display the words to “Baby Shark”. 3) Total of 10: Using a for loop, enter 10 test scores and calculate the total score Push: Find the average and lowest score. |
CodeHS Support Material
CodeHS 4.2.1-4.2.5 |
Corrections and Catchup 1/12/2021Assignment:
Nothing new. Correct your Chapter 2 Exam. Complete missing or incomplete work |
For loop Day 2: 1/13-1/14/2021
Assignment
1) Fix Youngest (OnlineGDB)
2) Complete any one of the following Options
a) Total, average and highest score (OnlineGDB)
Input: 5 scores
Output: The total, average and highest score
b) Factorial (OnlineGDB)
The user enters a positive integer the program outputs its’ factorial.
Example: input 5, output 5 factorial = 5*4*3*2*1 = 120
c) CodeHS Option: Complete ALL of the following CodeHS Activities
4.2.6, 4.2.7 AND 4.2.9
1) Fix Youngest (OnlineGDB)
2) Complete any one of the following Options
a) Total, average and highest score (OnlineGDB)
Input: 5 scores
Output: The total, average and highest score
b) Factorial (OnlineGDB)
The user enters a positive integer the program outputs its’ factorial.
Example: input 5, output 5 factorial = 5*4*3*2*1 = 120
c) CodeHS Option: Complete ALL of the following CodeHS Activities
4.2.6, 4.2.7 AND 4.2.9
For loop with Math.random() and if 1/15-1/19/2021
Assignment:
1) Fix Pair program
2) Complete any one of the following options
a) Coin Flip
Flip a coin 100 times, show the total number of heads and tails AND which occurred the most often.
b) 3's or 11's
Roll a pair of 6-sided dice 100 times. Find out which occurs most often, 3 or 11. Show how often each of these rolls occur and which occurs most often.
c) Fortune Cookie:
Write a program that will generate a random fortune cookie saying.
You will need to include at least three different fortune cookie saying options.
1) Fix Pair program
2) Complete any one of the following options
a) Coin Flip
Flip a coin 100 times, show the total number of heads and tails AND which occurred the most often.
b) 3's or 11's
Roll a pair of 6-sided dice 100 times. Find out which occurs most often, 3 or 11. Show how often each of these rolls occur and which occurs most often.
c) Fortune Cookie:
Write a program that will generate a random fortune cookie saying.
You will need to include at least three different fortune cookie saying options.
while loop 1/20-1/21/2021
Assignment: Complete any one of the following
1) Unknown number tot-ave- high - low Input: An unknown number of integers. Output: The total , average, high and low values. 2) Three 7's in a row Input: None Process: Roll a pair of six-sided dice and count how many rolls it takes for you to roll three sevens in a row. Output: Each roll and the count for the number of rolls it takes to roll three sevens in a row. 3) CodeHS 4.1.7 4) CodeHS 4.1.8 |
Support Material
CodeHS 4.1.1-4.1.4 |
String Algorithms 1/22-1/26/2021
Assignment
1) Complete 4.3.2-4.3.5
2) AND Complete any one of the following CodeHS programs
4.3.8 Finding Palindromes
4.3.9 Fixing Grammar
4.3.10 Teen Talk
1) Complete 4.3.2-4.3.5
2) AND Complete any one of the following CodeHS programs
4.3.8 Finding Palindromes
4.3.9 Fixing Grammar
4.3.10 Teen Talk