COOL SITES & THINGS TO KNOW:
Lesson 19 excercise Lesson 19 Exercise. Matthew walker. Balcar 3A 22/01/13. Write code that will create an array of 300 BankAccount objects. You are only to. Instantiate two of them. The object with index 47 should have a beginning balance of. $92, and index 102 should have $1007.
AP EXAM DATE: FRIDAY MAY 8, 2020 12:00 NOON. SCHOOLOGY.COM QUIZ CODE: 5D2H-MX37-38BGG
AP COLLEGE BOARD EXAM PRACTICE AND ASSESSMENT: Join Code: 7D4D4G
Extra Java Practice: http://codingbat.com/javaGeorge Tech Site: http://ice.cc.gatech.edu/apexam/
College Board FRQ REVIEW SITE:http://www.skylit.com/beprepared/fr.html
More Practice Sites for the BIG EVENT:
https://runestone.academy/runestone/static/JavaReview/TimedTests/toctree.htmlhttps://runestone.academy/runestone/static/JavaReview/index.html
This Week in ADVANCED PLACEMENT COMPUTER & JAVA PROGRAMMING
WATCH THIS!WHAT'S AN ALGORITHM? A PRE-CHALLENGE.
WEEK VI: OCTOBER 7-10
This week we continue our study of numbers, Strings, variables and some simple input ,process, output concepts. By now, you have established your learning habits that will carry you though a VERY, SUCCESSFUL journey through AP Computer.
WHAT WE WILL COVER:
Casting, Math Class, & Input from the Keyboard - Blue Pelican Java Text Book. (BPJ)
Lesson 3. Strings & Concatenations,
- methods of String Class:
- length, substring, toLowerCase, toUpperCase
- Escape sequences: ' n
Ex. 1-12 (3-3)Project: Name that Celebrity
Lesson 4. Numerics Operators, Increment & Decrement
Ex. 1-18 (4-3)Project: Arithmetic
Lesson 5. Casting Data Types - to get out of tight situations.
- Mixing Types, Casting, Final
- Ex. 1-17
- (5-3)Project Mixed Results
Lesson 6. The Math Class - Lots of fun, static methods for your daily use.
- sqrt(), ceil(), pow(), random(), PI and lots of others
- Ex., 1-14
- Project: Compute This
Lesson 7. Input - Get your Computer to Ask You a question.
- Scanner Class & Reader Objects ; Methods: nextInt( ), nextDouble(), next(), nextLine()
- 2 Projects: Going in Circles, What's My Name?
- We Will Review all information through class questions & discussion.
A. WEEKLY EXERCISE:
BPJ: Work on selected exercises from Lesson 5 - 7
Practice by doing Programming Projects in each Lesson we go over in class.
B. JOURNAL SUBMIT:
*You may want to start HANDWRITING your JOURNAL as the AP Exam is to be HANDWRITTEN.
PROGRAMS TO WRITE FOR THE JOURNAL : DUE TUESDAY, OCT. 15.
- PROGRAMMING CHALLENGE I - JOURNAL 2
- Program Header (pgm. name, description, author, date)
- Pertinent comments to explain code
- Program Output
C. WEEKLY QUIZ: Schoology.com
Go To Schoology and Complete Quizzes: 1 - 7
Access Code: N2PGG-G2ZSD
REMEMBER THE GREAT WORDS OF ARISTOTLE:
We are what we repeatedly do. Excellence, then, is not an act, but a habit.
AP COMPUTER 2019 - 2020 - OUR YEARLY PROGRESS
WEEK I: SEPTEMBER 3 - 6
Let's begin by learning a bit about Objects and How to code them to exist in a 'living & breathing 3D world'. By learning about the 3D Programming Language called ALICE, we can begin to understand the concept of Object - Attributes & Behaviors and a few other critical programming concepts that will serve us well as we tackle the AP CompSci Curriculum.
Step I - Installing ALICE (this may be completed on your P.C.)
Go to the ALICE INSTALLATION PAGE and Install for your Machine Type
(Make sure the Java JDK is already installed.
Step I. JDK Install
Step II. ALICE INSTALLATION INFORMATION
Step II - Watch the following Videos and experiment with the information provided.
- Scene Editor Overview - an overview of the Alice scene editor covering the three major components: Camera, Properties, and Gallery.
- Adding Objects - how to use the gallery to add characters and props to a scene.
- Positioning Objects - move objects around the scene editor.
- Rotating Objects - use the mouse to click and drag the handle to turn objects.
- Resizing Objects - using the resize Handle Style tool found at the top of the Properties Panel will display an arrow above the object that can be selected.
- Moving the Camera - set the camera’s initial point of view for best effect in animation.
- Using Camera Markers - four camera views that are not used in animating your scenes but can be used to help orient objects in the scene editor, including the Layout Scene View.
- Manipulating Object Joints - how to pose models by bending the limbs at the joints.
STEP III. Your First ALICE PROJECT
Complete the following project for your first 10pt Challenge of the Year!
Enhancements: Add in Camera Stops for Alice Cat and MadHatter. Add a discussion.
Try to make Alice move to the Teapot and pick it up.
Then have her pour the tea into a teacup for the Mad Hatter. Have him sip the tea!
WEEK II: SEPTEMBER 9 - 13
Continuing on with our discovery of the Object Oriented World of Programming. This week we will begin coding some neat video stories and games as we gain understanding for the Object and it's Attributes & Behaviors. Always be CURIOUS & CREATIVE as you explore the ALICE environment.
STEP I - We will cover these topics in Class- These YouTube videos from Duke University will serve as review and confirmation.
- Part 1: Video - Adding Objects
- Part 2: Video - Positioning the Camera
- Part 3: Video - Properties and Positions of Objects
- Part 4: Video - Coding
- Part 5: Video - A New Procedure
- Part 6: Video - Events
- Part 7: Video - Vehicles
When you complete the TUTORIAL, try challenging yourself with the following tasks:
1. Continue the Conversation between Witch and Dragon - Add Camera Close-Ups to
2. Experiment with Dragon Wing movement or Witch Limbs - How 'Life Like' can you make the scene?
3. Add in another Character. Give that Character (Object) some Attributes & Behaviors to enhance the scene.
4. Compare and Collaborate with your classmates. Give constructive Rates and Reviews.
STEP II - CHALLENGE OF THE WEEK
Now that you have mastered some Object-Attributes-Behavioral techniques, it is time to creatively implement this skillset into an original epic tale. Follow the rubric and develop your project. Save the project to our Class Folder. You will receive 10 pts for successful completion of this effort.
PROJECT: MY EPIC TALE
RUBRIC:
Multiple Objects (3) | Interesting Backgrounds | Use of Sound Effects, Voice | Evidence of Programmed Loops | Multiple Camera Views, Character Closeups |
Movement Extends to SubParts of Object | Evidence of Character Interaction. | Evidence of Method Development beyond Initial Main Method. | Creative Idea- Scene has logical flow | 20 Second Run Time |
STEP III - SCHOOLOGY QUIZ
Go To Schoology and Complete: ALICE- QUIZ I
Access Code : 5D2H-MX37-38BGG
WEEK III: SEPTEMBER 16 - 20
This week we extend our knowledge by implementing one of the most important concepts in computer programming. The DECISION STATEMENT. Enjoy, as we build our skill, implementing this concept into our project work.
Step I - Working out the Idea - Decision Statements
Tutorial: Moon Landing w/ if-else, key events
- Part 1: Video - Scene Setup, IF ELSE, and getHeight function call.
- Part 2: Video - getDistanceTo function call, and explanation of other comparison operators.
- w03-33BunnyVisitsTutorial.pdf (this is a document version of the following videos)
- Part 1: Video - Scene Setup, Creating a visit procedure with a generic type parameter.
- Part 2: Video - Adding a new TextString parameter that will send a specific greeting message.
- Part 3: Video - Adding mouse capability through the MouseClick event handler.
Extending the idea
Character Discussions: Create two characters. Program a variety of outcomes based on the responses given.
Alien Conversation: Create an Alien Character and interact with them by typing responses to questions. Make the Alien perform different tasks or responses based on programmed decisions.
STEP II - CHALLENGE OF THE WEEK
I GET BY WITH THE HELP OF MY FRIENDS:
Create an Alice Project with 4 Characters. When you click on each Character they will perform some action. Be creative. Try to develop a theme around your scene (artistic, athletic, scientific..etc). Save project to your class folder. Follow the Rubric below. 10 pts for successful submission.
RUBRIC:
Multiple Objects (4) | Interesting Backgrounds | Use of Sound Effects, Voice | Evidence of Decision Statement Logic | Multiple Camera Views, Character Closeups |
Movement Extends to SubParts of Object | Evidence of Character Interaction. | Evidence of Method Development beyond Initial Main Method. | Creative Idea- Scene has logical flow | Interactive Mouse Click Action. |
STEP III - SCHOOLOGY QUIZ
Go To Schoology and Complete: ALICE- QUIZ II - Conditionals
Access Code : 5D2H-MX37-38BGG
WEEK IV: SEPTEMBER 23 -27
This week we will spend more time with input concepts, the concept of random and various loop techniques. You will gain a lot more control over your projects with these concept skills in your toolbox.
Step I - Working out the Idea - Types of Inputs - Decisions - While Loops
Adding inputs to develop a Quiz:
STEP II - CHALLENGE OF THE WEEK
Now that you have mastered the art of Input - Decisions - Looping, it's time to CREATE once again. Let's build a 5 question quiz on any topic of your interest. The quiz program will keep score as the user plays. There will be one Happy Character that performs when the Correct Answer is chosen. And of course, a Disgruntled Character that performs when the Wrong Answer is chosen. Enjoy using all you have learned to make a fun and informative learning program. Follow the rubric as you develop your project. Save the project to our Class Folder. You will receive 10 pts for successful completion of this effort.
PROJECT: QUIZ SHOW
RUBRIC:
Multiple Objects (2) | 5 Question Minimum. User Input Required | Decision Technique is Evident. | Evidence of Programmed Loops | Multiple Camera Views, Character Closeups |
Movement Extends to SubParts of Object | Evidence of Character Interaction. | Evidence of Method Development beyond Initial Main Method. | Creative Idea- Scene has logical flow | Score is kept and Delivered upon end of Quiz |
STEP III - SCHOOLOGY QUIZ
Go To Schoology and Complete: ALICE- QUIZ III - Input- Random- Loops
Access Code : 5D2H-MX37-38BGG
WEEK V: SEPTEMBER 30 - OCTOBER 4 - JAVA STARTS HERE -
This week we will Introduce the course, Software & Text and learn some of the basics of Java Programming. Installing the JDK (Java Development Kit), the IDE (interactive Development Editor) , then discuss and dive right in with Primitive variable types, Introduction to Strings and Simple Print Routines.
WHAT WE WILL COVER: INSTALLING THE JDK AND BLUE-J:
Get your JDK FROM HERE: CLICK AND DOWNLOAD
SETUP THE CLASSROOM WORK AREA:
SERVER FOLDERS
GOOGLE DRIVE CLOUD SPACE
MICROSOFT O365-ONE DRIVE
JAVA SYNTAX AND STRUCTURE - Blue Pelican Java Text Book. (BPJ)
Lesson 1. Method, Comments, Printing
Lesson 2. Variable Types(String, int, double) & Definitions
Ex. 1-12 (2.3)
Lesson 3. Strings & Concatenations, methods of String Class: length, substring, toLowerCase, toUpperCase
Escape sequences: ' n
Ex. 1-12 (3-3)Project: Name that Celebrity
Lesson 4. Numerics
Operators, Increment & Decrement
Ex. 1-18 (4-3)Project Arithmetic
A. WEEKLY EXERCISE:
BPJ TEXT: Work on exercises from Chapter 1 - 4.
Be ready for In Class Challenge: Thursday - Friday
Read from FUNDAMENTALS OF JAVA- LAMBERT: CHAPTER 1 & 2
Be Prepared to Discuss Concepts.
B. JOURNAL SUBMIT:
Chapter 3 - Project -Name That Celebrity
Chapter 4 - Project - Math calculations & Printing
(Show for credit ON MONDAY 10/7)
* I will provide answers for Chapter 1 - 4 exercises on Friday if you ask for them.
C. WEEKLY QUIZ: Schoology.com
Lesson 1- 4 . Java Quizzes 1,2,3,4 Due Monday Oct. 7
Access Code5D2H-MX37-38BGG
WEEK VI: OCTOBER 7-10
This week we continue our study of numbers, Strings, variables and some simple input ,process, output concepts. By now, you have established your learning habits that will carry you though a VERY, SUCCESSFUL journey through AP Computer.
WHAT WE WILL COVER:
Casting, Math Class, & Input from the Keyboard - Blue Pelican Java Text Book. (BPJ)
Lesson 3. Strings & Concatenations,
- methods of String Class:
- length, substring, toLowerCase, toUpperCase
- Escape sequences: ' n
Ex. 1-12 (3-3)Project: Name that Celebrity
Lesson 4. Numerics Operators, Increment & Decrement
Ex. 1-18 (4-3)Project: Arithmetic
Lesson 5. Casting Data Types - to get out of tight situations.
- Mixing Types, Casting, Final
- Ex. 1-17
- (5-3)Project Mixed Results
Lesson 6. The Math Class - Lots of fun, static methods for your daily use.
- sqrt(), ceil(), pow(), random(), PI and lots of others
- Ex., 1-14
- Project: Compute This
Lesson 7. Input - Get your Computer to Ask You a question.
- Scanner Class & Reader Objects ; Methods: nextInt( ), nextDouble(), next(), nextLine()
- 2 Projects: Going in Circles, What's My Name?
- We Will Review all information through class questions & discussion.
A. WEEKLY EXERCISE:
BPJ: Work on selected exercises from Lesson 5 - 7
Practice by doing Programming Projects in each Lesson we go over in class.
B. JOURNAL SUBMIT:
*You may want to start HANDWRITING your JOURNAL as the AP Exam is to be HANDWRITTEN.
TWO PROGRAMS TO WRITE FOR THE JOURNAL : DUE TUESDAY, OCT. 15.
- Find the Surface Area of a Cube.
- Employee Payroll Program.
- OR
C. WEEKLY QUIZ: Schoology.com
Go To Schoology and Complete Quizzes: 1 - 7
Access Code: N2PGG-G2ZSD
REMEMBER THE GREAT WORDS OF ARISTOTLE:
We are what we repeatedly do. Excellence, then, is not an act, but a habit.
WEEK II: SEPT 10 - 14
This week we continue our study of numbers, Strings, variables and some simple input ,process, output concepts. By now, you have establishedyour learning habits that will carry you though a VERY, SUCCESSFUL journey through AP Computer.
WHAT WE WILL COVER:
Casting, Math Class, & Input from the Keyboard - Blue Pelican Java Text Book. (BPJ)
Lesson 3. Strings & Concatenations,
- methods of String Class:
- length, substring, toLowerCase, toUpperCase
- Escape sequences: ' n
Ex. 1-12 (3-3)Project: Name that Celebrity
Lesson 4. Numerics Operators, Increment & Decrement
Ex. 1-18 (4-3)Project Arithmetic
Lesson 5. Casting Data Types - to get out of tight situations.
- Mixing Types, Casting, Final
- Ex. 1-17
- (5-3)Project Mixed Results
Lesson 6. The Math Class - Lots of fun, static methods for your daily use.
- sqrt(), ceil(), pow(), random(), PI and lots of others
- Ex., 1-14
- Project: Compute This
Lesson 7. Input - Get your Computer to Ask You a question.
- Scanner Class & Reader Objects ; Methods: nextInt( ), nextDouble(), next(), nextLine()
- 2 Projects: Going in Circles, What's My Name?
- We Will Review all information through class questions & discussion.
A. WEEKLY EXERCISE:
BPJ: Work on selected exercises from Lesson 5 - 6
Practice by doing Programming Projects in each Lesson we go over in class.
B. JOURNAL SUBMIT:
*You may want to start HANDWRITING your JOURNAL
as the APExam is to be HANDWRITTEN.
TWO PROGRAMS TO WRITE FOR THE JOURNAL : DUE MONDAY, SEPT 17.
- Find the Surface Area of a Cube.
- Employee Payroll Program.
- OR
I will provide answers for all Exercises on request: Just ask me for the Lesson you want.
C. WEEKLY QUIZ: Schoology.com
Go To Schoology and Complete Quizzes I, II, III, IV
Access Code
N2PGG-G2ZSD
REMEMBER THE GREAT WORDS OF ARISTOTLE:
We are what we repeatedly do. Excellence, then, is not an act, but a habit.
WEEK III: SEPT 17 - 21
HERE IS OUR 10-POINT QUIZ FROM FRIDAY 9-15
This week we continue with more fundamental constructs of the Java language. We have much to review (Lesson 4 - 6). Then wewill forge ahead with Input Question Techniques. Highlights include boolean values and variables & The IF decision statement. With these concepts under your belt, you are ready to tackle some pretty challengingprograms.
WHAT WE WILL COVER:
BOOLEANS, IF STATEMENTS, SWITCH STRUCTURES, THE FOR LOOP
- Chptr. 4 -6 Quickly review. Numbers, Casting, Math Methods.
- Chptr 7. Review the SCANNER CLASS for Input capability
- Chptr 8. Boolean Values - DEMORGAN'S LAW
' (A && B) 'A || 'B '(A|| B) 'A && 'B
- Chptr 9. The 'IF' Statement (Exercises)
- Additional String and Math Class Programming Challenges.
- The WordSplit Challenge
- watermelon turns to melonwater
- Find the Ceiling and Floor for a Double Input Number
- Print an 8-bit Chart for Binary.
- The 'Pig Latin' 3-word Phrase Translator
- Enter a 4 Digit number and determine if each number is Even or Odd.
- We Will Review all information through class questions & discussion.
A. WEEKLY EXERCISE:
Do selected Exercises from Lessons 8 and 9 (Review Lesson 7).
B. JOURNAL SUBMIT:
Write Programs for the Following:
- Exercise questions from Lesson 8 & 9 ( Pick 5 from each)
- Lesson 9 - Even or Odd
JOURNAL SUBMISSION - DUE MONDAY, SEPTEMBER 25TH
PLEASE HANDWRITE ALL METHODS AND HAND IN HARD COPY
JAVA CHALLENGE-10PT - INPUTS & THINGS
C. WEEKLY QUIZ: Schoology.com
Complete Up to and Including Lesson 7- Java Quizzes Due Friday Sept. 22
Access Code
N2PGG-G2ZSD
REMEMBER THE GREAT WORDS OF ARISTOTLE:
We are what we repeatedly do. Excellence, then, is not an act, but a habit.
Consider purchasing BARRON'S AP COMPUTER SCIENCE A (New or Used) Priced from $4.00 - $ 20.00 on AMAZON. Good Practice Test exams.
WEEK IV: SEPT 24-28
HERE IS OUR 10-POINT QUIZ FROM FRIDAY 9-21
COMPLETE AND SHOW ME ON MONDAY FOR ADDITIONAL CREDIT.
This week we continue reviewing and working with the fundamental constructs of the Java language. Be sure you are comfortable with Lessons (1-7).
If you are NOT, seek EXTRA HELP. We will forge ahead with Input Question Techniques. Highlights include boolean values and variables & TheIF decision statement. With these concepts under your belt, you are ready to tackle some pretty challenging programs.
WHAT WE WILL COVER:
BOOLEANS, IF STATEMENTS AND MORE
- Chptr. 4 -6 Quickly review. Numbers, Casting, Math Methods.
- Chptr 7. Review the SCANNER CLASS for Input capability
- Chptr 8. Boolean Values - DEMORGAN'S LAW
' (A && B) 'A || 'B '(A|| B) 'A && 'B
- Chptr 9. The 'IF' Statement (Exercises)
- Additional String and Math Class Programming Challenges.
- The WordSplit Challenge
- watermelon turns to melonwater
- Find the Ceiling and Floor for a Double Input Number
- Print an 8-bit Chart for Binary.
- The 'Pig Latin' 3-word Phrase Translator
- Enter a 4 Digit number and determine if each number is Even or Odd.
- We Will Review all information through class questions & discussion.
A. WEEKLY EXERCISE:
Do selected Exercises from Lessons 8 and 9 .
Write Programs for the Following:
- Exercise questions from Lesson 8 & 9 ( Pick 5 from each)
- Lesson 9 - Even or Odd
B. JOURNAL SUBMIT:
JOURNAL SUBMISSION - DUE MONDAY, OCT 2ND
PLEASE HANDWRITE ALL METHODS AND HAND IN HARD COPY
JAVA CHALLENGE- WEEK IV - INPUTS & DECISIONS
C. WEEKLY QUIZ: Schoology.com
Complete Up to and Including Lesson 9- Java Quizzes Due Friday Sept. 28
Access Code
N2PGG-G2ZSD
REMEMBER THE GREAT WORDS OF ARISTOTLE:
We are what we repeatedly do. Excellence, then, is not an act, but a habit.
Consider purchasing BARRON'S AP COMPUTER SCIENCE A (New or Used) Priced from $4.00 - $ 20.00 on AMAZON. Good Practice Test exams.
WEEK V: OCT 1 - 5
This week we use our String Class knowledge to assist us in working with the AP/ Magpie Lab.
We will experiment with Chatbots and do some cool String style coding to enhance our own Chatbot model. As time permits, we will discuss SWITCHES and FOR LOOP. With these concepts under your belt, you are ready to tackle some pretty challenging programs.
A. WEEKLY EXERCISE:
THE MAGPIE LAB - CLICK HERE FOR STUDENT TEXT
- Activity 1: Learn about Chatbots
- Activity 2: Getting to Know the Magpie Chatbot, Altering Code
- Activity 3: Better Keyword Detection
- Activity 4: Responses that transform Statements
- We Will Review all information through class questions & discussion.
B. JOURNAL SUBMIT:
Read through the MAGPIE DOCUMENTATION and carry out all exercises and activities.
We will work in small groups as we complete the work in the MAGPIE LAB.
JOURNAL SUBMISSION - DUE TUESDAY, OCTOBER 9TH
* MAGPIE ACTIVITIES 1-4.
- REMEMBER TO HAND WRITE THE JOURNAL AND BRING TO CLASS ON TUESDAY FOR CHECK...
- INCLUDE DEFINITIONS, PROGRAMS, EXERCISE QUESTIONS and OTHER PERTINENT MATERIAL.
Consider purchasing BARRON'S AP COMPUTER SCIENCE A (New or Used) Priced from $4.00 - $ 20.00 on AMAZON. Good Practice Test exams
WEEK VI: OCT 9 - 12
TUESDAY: FINISH UP THE MAGPIE LAB. SHOW PROOF OF LAB 1-4 COMPLETED
This week we will get back the the BPJ book and play with For Loops, Switches.
Then we'll use them to create some neat program solutions by incorporating Ascii codesand the Data Type : char
Then we'll use them to create some neat program solutions by incorporating Ascii codesand the Data Type : char
WHAT WE WILL COVER:
- Chptr 10. The 'SWITCH' / 'char' (Exercises)
- Chapter 11 - The For Loop:
- for ( x=1, x <=10, x++) { }
- To Do: Project - Name Reversal, Exercises (pick 5)
- Chapter 12 - The Do Loop:
- while (x < 10) { }
- do{ } while (x < 10);
- use of : break continue
- Chapter 13 - Ascii and Char
- Chapter 14 - Binary , Hex and Octal Number systems
- We Will Review all information through class questions & discussion.
A. WEEKLY EXERCISE:
- Do 5 (your choice) Q & A from each Chapter (10 - 14)
- Practice Project Examples. (CONCENTRATE ON LOOPS)
Chptr. 10 - Exercise Questions
Project: Weight on other Planets
Chptr. 11 - Exercise Questions
Project: Name Reversal
CONTEST QUESTIONS - In Class Quiz
Chptr. 12 - Exercise Questions
CONTEST QUESTIONS - In Class Quiz
Chptr. 13 - ASCII CODES - Exercise Questions
Chptr. 14 - Binary- Hex - Octal - CODES - Exercise Questions
Project: BASICALLY SPEAKING
ADDITIONAL PROJECT IDEAS TO BE GIVEN IN CLASS
B. JOURNAL SUBMIT:
JOURNAL SUBMISSION - DUE MONDAY, OCT. 15TH!
* JAVA CHALLENGE: LOOPS & DECISIONS - WEEK VI.
C. WEEKLY QUIZ: Schoology.com
Complete Up to and Including Lesson 10, 11, 12 - Java Quizzes Due Monday Oct. 15
Access CodeFXJ9J-6C9H2
Consider purchasing BARRON'S AP COMPUTER SCIENCE A or
BE PREPARED FOR THE AP COMPUTER SCIENCE EXAM by Maria Litvin
(New or Used) Priced from $4.00 - $ 20.00 on AMAZON. Good Practice Test exams
WEEK VII: OCT 15 - 19
JOURNAL SUBMISSION - DUE MONDAY, OCT. 15TH!
* JAVA CHALLENGE: LOOPS & DECISIONS - WEEK VI.
A. WEEKLY EXERCISE:
WHAT WE WILL COVER:
- Chapter 12 - The Do Loop:
- while (x < 10) { }
- do{ } while (x < 10);
- use of : break continue
- Chapter 13 - Ascii and Char
- Chapter 14 - Binary , Hex and Octal Number systems
- Chapter 30 - THE RANDOM CLASS
- NOT STATIC! nextInt( ) , nextDouble( )
- DO Exercises
- DO Projects on Generation.. Experiment
Challenges:
- Convert String - Upper to Lower Case.
- Review of GUESS A NUMBER programs 1 & 2
- Guess the Computer number 1 to 100
- The Computer guesses your number 1 to 100
- The MONTE CARLO PROJECT.
B. JOURNAL SUBMIT:
- Do Exercise Questions BPJ: Chapter 30 (Random) 1-10
- Program Challenge: JAVA CHALLENGE 4 - SOME RANDOM STUFF DUE MON. OCT 22
C. WEEKLY QUIZ: Schoology.com
Complete Up to and Including Lesson 10, 11, 12 , 13, 14 & 30- Java Quizzes Due Monday Oct. 22
Access CodeFXJ9J-6C9H2
Consider purchasing BARRON'S AP COMPUTER SCIENCE A or
BE PREPARED FOR THE AP COMPUTER SCIENCE EXAM by Maria Litvin
(New or Used) Priced from $4.00 - $ 20.00 on AMAZON. Good Practice Test exams
WEEK VIII: OCT 22 - 26
LAST WEEK PROGRAM CHALLENGES - DUE MON. OCT 22!
Program Challenge: JAVA CHALLENGE - SOME RANDOM STUFF DUE MON. OCT 22
A. WEEKLY EXERCISE:
Chapter 30 - THE RANDOM CLASS : REVIEW Programs - ANY QUESTIONS????
This week we concentrate on solidifying our skill. with INPUT (SCANNER), FOR LOOPS, WHILE LOOPS, CONDITIONALS, RANDOM and DATA TYPE CONVERSION. By working on the Programs below, we will get more comfortable with the foundation of the Java Language. This will be vital to insure success as we tackle the upcoming material.
Please ask questions when difficulties arise.
B. JOURNAL SUBMIT:
JAVA CELEBRATION: PROGRAMMING WITH INPUT, LOOPS, CONDITIONALS
JOURNAL PREPARATION:
Review Chapters 1-14, 30.
Complete the JAVA CELEBRATION programs. Final Credit given on Monday Oct. 29
C. WEEKLY QUIZ: Schoology.com
Complete The Following: Quiz 1 - Quiz 14 and Quiz 30 Due Saturday October Friday Oct 26
Schoology Access CodeFXJ9J-6C9H2
Consider purchasing BARRON'S AP COMPUTER SCIENCE A or
BE PREPARED FOR THE AP COMPUTER SCIENCE EXAM by Maria Litvin
(New or Used) Priced from $4.00 - $ 20.00 on AMAZON. Good Practice Test exams
WEEK IX: OCT 29 - NOV 2
MONDAY: HAND IN ASSIGNMENT:
JAVA CELEBRATION: PROGRAMMING WITH INPUT, LOOPS, CONDITIONALS
MONDAY: HAND IN ASSIGNMENT:
JAVA CELEBRATION: PROGRAMMING WITH INPUT, LOOPS, CONDITIONALS
A. WEEKLY EXERCISE:
TIME TO TALK ABOUT BUILDING CLASSES & METHODS
- INSTANTIATING OBJECTS & BEHAVIORSJAVA DOCUMENTATION: BUILDING CLASSES : ATTRIBUTES, CONSTRUCTORS, METHODS
Chapter 15 - Classes & Object Analysis (This is an EXCELLENT INFORMATIVE LESSON)
DO THE EXERCISES.
Chapter 16 - FURTHER OBJECT ANALYSIS
ACCESS CONTROL: public vs. private (experiment with this. How does it work?)
INSTANTIATION: 2 parts1. Declaration 2. Initialization
EQUALITY OF OBJECTS: = = VS. equals
FUNNY THING ABOUT STRINGS.....
DEFAULTS - STATE VARIABLES & CONSTRUCTORS
DO EXERCISES & GAS MILEAGE PROJECT
CHAPTER 15 & 16 A BASIC TO YOUR UNDERSTANDING OF THE OO LANGUAGE. MAKE SURE ALL THIS INFORMATION IS COMPLETELY UNDERSTOOD AND PRACTICED! DO NOT HESITATE TO ASK QUESTIONS! EVEN IF YOU THINK THEY ARE DUMB!
JOURNALPREPARATION:
SELECTION OF 6 Problems from each LESSON (15-16)
1 PROJECT FROM EACH LESSON (Or a comparable 'homemade' project)B. JOURNAL SUBMIT:
MONDAY NOV. 6TH AN EXCITING JOURNAL ASSIGNMENT!!!!!
ACCESS CONTROL: public vs. private (experiment with this. How does it work?)
INSTANTIATION: 2 parts1. Declaration 2. Initialization
EQUALITY OF OBJECTS: = = VS. equals
FUNNY THING ABOUT STRINGS.....
DEFAULTS - STATE VARIABLES & CONSTRUCTORS
DO EXERCISES & GAS MILEAGE PROJECT
CHAPTER 15 & 16 A BASIC TO YOUR UNDERSTANDING OF THE OO LANGUAGE. MAKE SURE ALL THIS INFORMATION IS COMPLETELY UNDERSTOOD AND PRACTICED! DO NOT HESITATE TO ASK QUESTIONS! EVEN IF YOU THINK THEY ARE DUMB!
JOURNALPREPARATION:
SELECTION OF 6 Problems from each LESSON (15-16)
1 PROJECT FROM EACH LESSON (Or a comparable 'homemade' project)B. JOURNAL SUBMIT:
MONDAY NOV. 6TH AN EXCITING JOURNAL ASSIGNMENT!!!!!
C. WEEKLY QUIZ: Schoology.com
Complete The Following: Quiz 15 - Quiz 16 Due Friday NOV. 2
Schoology Access CodeFXJ9J-6C9H2
Consider purchasing BARRON'S AP COMPUTER SCIENCE A or
BE PREPARED FOR THE AP COMPUTER SCIENCE EXAM by Maria Litvin
(New or Used) Priced from $4.00 - $ 20.00 on AMAZON. Good Practice Test exams
QUARTER II : WEEK I: NOV 5 - 9
MONDAY: HAND IN ASSIGNMENT (have the 1st one complete): HANDWRITE THESE 2 CLASSES WITH THEIR TESTER CLASSES
MONDAY: HAND IN ASSIGNMENT (have the 1st one complete): HANDWRITE THESE 2 CLASSES WITH THEIR TESTER CLASSES
A. WEEKLY EXERCISE:
Watch this Video: HOW TO BE A GREAT PROGRAMMER
CONTINUING OUR TALK ABOUT BUILDING CLASSES & METHODS - INSTANTIATING OBJECTS & BEHAVIORS
Chapter 15 - Classes & Object Analysis (This is an EXCELLENT INFORMATIVE LESSON)The Circle Class (know all the parts)
Instantiation...... How to.
The METHOD signature (Access Control, Variable Type & Return, Naming Convention, Parameters)
The CONSTRUCTOR - a GREAT EXPLANATIONWITH RULES!
DO THE PROJECTS (circle method, Bank Acount )
Instantiation...... How to.
The METHOD signature (Access Control, Variable Type & Return, Naming Convention, Parameters)
The CONSTRUCTOR - a GREAT EXPLANATIONWITH RULES!
DO THE PROJECTS (circle method, Bank Acount )
DO THE EXERCISES.
Chapter 16 - FURTHER OBJECT ANALYSIS
ACCESS CONTROL: public vs. private (experiment with this. How does it work?)
INSTANTIATION: 2 parts 1. Declaration 2. Initialization
EQUALITYOF OBJECTS: = = VS. equals
FUNNY THING ABOUT STRINGS.....
DEFAULTS - STATE VARIABLES & CONSTRUCTORS
DO EXERCISES & GAS MILEAGE PROJECT
CHAPTER 15 & 16 A BASIC TO YOUR UNDERSTANDING OF THE OOLANGUAGE. MAKE SURE ALL THIS INFORMATION IS COMPLETELY UNDERSTOOD AND PRACTICED! DO NOT HESITATE TO ASK QUESTIONS! EVEN IF YOU THINK THEY ARE DUMB!
JOURNAL PREPARATION:
SELECTION OF 6 Problems from each LESSON (15-16)
1PROJECT FROM EACH LESSON (Or a comparable 'homemade' project)
ACCESS CONTROL: public vs. private (experiment with this. How does it work?)
INSTANTIATION: 2 parts 1. Declaration 2. Initialization
EQUALITYOF OBJECTS: = = VS. equals
FUNNY THING ABOUT STRINGS.....
DEFAULTS - STATE VARIABLES & CONSTRUCTORS
DO EXERCISES & GAS MILEAGE PROJECT
CHAPTER 15 & 16 A BASIC TO YOUR UNDERSTANDING OF THE OOLANGUAGE. MAKE SURE ALL THIS INFORMATION IS COMPLETELY UNDERSTOOD AND PRACTICED! DO NOT HESITATE TO ASK QUESTIONS! EVEN IF YOU THINK THEY ARE DUMB!
JOURNAL PREPARATION:
SELECTION OF 6 Problems from each LESSON (15-16)
1PROJECT FROM EACH LESSON (Or a comparable 'homemade' project)
!! Make sure that you can BUILD A SIMPLE CLASS - SIGNATURES, CONSTRUCTORS, METHODS, CLASS VARIABLES, ETC.!!
B. JOURNAL SUBMIT:
DUE MONDAY - Additional Journal Challenge: DUE TUES, NOVEMBER 13TH
1. Create a BankAccount Class :
DUE MONDAY - Additional Journal Challenge: DUE TUES, NOVEMBER 13TH
1. Create a BankAccount Class :
Attributes: AccountID , Name, Balance
Methods:
Methods:
Accessors
- public double getBalance()
- public double getName()
- public String getAcctno()
Mutators
- public void withdrawCash(double dollars)
- public void depositCash(double dollars)
- public String toString()
Secure the AccountID and make it 5 digits. ie. 00001, 00002, 00003
2. Create a BankAccount Tester Class:
Instantiate 3 Objects - test the AccountID
Alter the Balance of each account
Print 3 Bank Statements before and after change:
Alter the Balance of each account
Print 3 Bank Statements before and after change:
Name: xxxxx Acct: xxxxx Balance: 99999.99
C. WEEKLY QUIZ: Schoology.com
Complete The Following: Quiz 15 - Quiz 16 Due Friday NOV. 9
Schoology Access Code:
Schoology Access Code:
FXJ9J-6C9H2
MAKE SURE ALL QUIZZES ARE COMPLETE (1-16,30)
QUARTER II : WEEK II: NOV 13 - 16
A. WEEKLY EXERCISE:
Karel J. Robot- Part I- II. Developing Environment, Teaching New Tricks
- Book IVB: Chapters I & II .... Building Programs:
- Basic Robot - RobotTask
- Dropping-Picking Up Beepers in Various Design
- Creating New Methods-Behaviors for Robot
- Extending the CLASS
- CONSTRUCTOR DEFINITIONS & the super()
- superclass,subclass, inheritance
- ASK QUESTIONS- SOLIDIFY OO UNDERSTANDING
B. JOURNAL SUBMIT:
JOURNAL SUBMIT- Karel J. Robot - Part 1 & 2 due: MONDAY 11/19
- Journal entries should consist of the following:
- OO Topics Defined and Discussed in Class.
- Robot Classes and Methods developed through exercises.
- Written: 3 Original Program Patterns in Robot-RobotTask (Chapter I)
- Written: 2 Original New Methods (Chapter II)
- CLICK HERE FOR A: SAMPLE JOURNAL ENTRY
QUARTER II : WEEK III: NOV 19 -20 THANKSGIVING BREAK
A. WEEKLY EXERCISE:
Karel The Robot - PART III & IV
- Multiple Robots
- New Shapes
- An 'is-a' relationship, sub--> super
- Abstract classes: Cannot instantiate-Can extend
- Abstract methods exist to ensure that subclasses include them.
- The super keyword forces method calls to the superclass
B. JOURNAL SUBMIT:- DUE MONDAY 11/26
- Outline & Understand Chapters 3 & 4.of KAREL J. ROBOT (Outline Key topics)
- Present 1 Code Example (with commentary) from each Chapter 3 && 4
- List and Define any NEW Terminology DEFINITIONS:
- Class, Method, Abstract, Constructors, Super/ Sub Class,Interface, Inheritance.
BLUE J & KAREL EXAM AT CONCLUSION OF KAREL PROJECT!!! BE READY!
MAINTAIN A SOLID FOCUS. ASK QUESTIONS..... THINGS WILL FALL INTO PLACE.
QUARTER II : WEEK IV: NOV 26 -30
A. WEEKLY EXERCISE:
Karel The Robot - PART III & IV
- Multiple Robots
- New Shapes
- An 'is-a' relationship, sub--> super
- Abstract classes: Cannot instantiate-Can extend
- Abstract methods exist to ensure that subclasses include them.
- The super keyword forces method calls to the superclass
B. JOURNAL SUBMIT:- DUE DECEMBER 3RD MONDAY
- Outline & Understand Chapters 3 & 4.of KAREL J. ROBOT (Outline Key topics)
- Present 1 Code Example (with commentary) from each Chapter 3 && 4
- List and Define any NEW Terminology DEFINITIONS:
- Class, Method, Abstract, Constructors, Super/ Sub Class,Interface, Inheritance.
- FOLLOW SIMILAR TEMPLATE FROM LAST WEEK: CLICK HERE FOR A: SAMPLE JOURNAL ENTRY
C. WEEKLY QUIZ: FRIDAY WE WILL TAKE AN 'IN CLASS' EXAM ON
BLUE J & KAREL
If you have been attentive to the FOUR LAB activities, this should be EASY!!! BE READY!
MAINTAIN A SOLID FOCUS. ASK QUESTIONS..... THINGS WILL FALL INTO PLACE.
QUARTER II : WEEK V: DECEMBER 3 - 7
This week, a quick review of the KAREL EXAM and then back to the BPJ for more fun with STRINGS!
A. WEEKLY EXERCISE:
ADDITIONAL STRING CONCEPTS: Chapter 17, 23
Chapter 17- Fun with String Class
- .indexOf
- .compareTo
- equals vs = =
- Scanner Parsing Input.
- Project: Add Em Up
- CIA Code Encrypting.
- Exercise Questions.
Chapter 23: THE STRINGTOKENIZER - Parsing up the input.
- BPJ: Chapter 23 - StringTokenizer Class
- Methods: countTokens() , nextToken(), hasMoreTokens()
- Constructor for the StringTokenizer
- The StringTokenizer Class - Java Docs
- Standard Delimiter Types:
“ tnrf” i.e., the space, tab, new line, carriage-return, form-feed characters.
B. JOURNAL SUBMIT:
WEEK END - JOURNAL SUBMISSION - DUE MONDAY 12/10
PROGRAMS TO BE SUBMITTED - TYPED OR HANDWRITTEN - BETTER YET, USE GOOGLE DOCS FOR EASY FEEDBACK!
I. Parse the Students and ALPHABETIZE
- Input a String of Student Names: ex: 'Hank Jackie Abe Ben Zeke Meg'
- Break into separate Strings.
- Print out in Alphabetic order: 'Abe Ben Hank Jackie Meg Zeke'
- Make the Program above work with any inputted, space delimited String.
II. String Word Analyzer:
- Input a Sentence.
- Print out the following:
- Total Number of Words
- Total Length of Sentence
- Average Length of Words
C. WEEKLY QUIZ: Schoology.com
Complete The Following: 2 Quizzes 17, 23 Due Saturday DEC. 9
Schoology Access Code: FXJ9J-6C9H2
Schoology Access Code: FXJ9J-6C9H2
MAINTAIN A SOLID FOCUS. ASK QUESTIONS..... THINGS WILL FALL INTO PLACE.
QUARTER II: WEEK VI: DECEMBER 10 - 14
A. WEEKLY EXERCISE:
REVIEW & WORKOUT : Chapter 17- Fun with String Class
- .indexOf
- .compareTo
- Scanner Parsing Input.
- Project: Add Em Up
- CIA Code Encrypting.
- Exercise Questions.
Chapter 23: THE STRINGTOKENIZER - Parsing up the input.
- BPJ: Chapter 23 - StringTokenizer Class
- Methods: countTokens() , nextToken(), hasMoreTokens()
- Constructor for the StringTokenizer
- The StringTokenizer Class - Java Docs
- Standard Delimiter Types:
“ tnrf” i.e., the space, tab, new line, carriage-return, form-feed characters.
PRACTICE PROGRAMS:
- Employee payroll - Further Alterations.
- Extend to Reading an Input File, parsing information.
- Build METHODS to be SELF-CONTAINED.
- Pass Required data into (parameters) and outof (return) Methods
- LUCKY SEVENS PROJECT
- FIRST REVIEW THE FOLLOWING PROGRAM: Download Lucky Sevens Java Program
- THEN DO THE FOLLOWING ASSIGNMENT: LUCKY SEVENS WORKSHEET
B. JOURNAL SUBMIT:
- EXAM: JAVA CHALLENGE- NESTED LOOPS & ADVANCED STRINGS
C. WEEKLY QUIZ: Schoology.com
Complete 17 & 23 for your PROGRESS REPORT
Access CodeFXJ9J-6C9H2
Q2: WEEK VII: CHRISTMAS BREAK- DEC. 17 - NEXT YEAR!
Here is your very own exciting Christmas & New Years Holiday Gift.
A very provocative, all inclusive week long trip to Java Land fully equipped with all the bells and whistles we have learned so far!!!
Enjoy this 2 WEEK excursion into the exotic land of the Java Code. You'll meet FileI/O, bask in the glow of several of the most luxurious StringMethods and of course, loop and condition your way through the night.
And so... here it is:
THE RUBRIC: LAND OF ACSL RUBRIC
THE PROJECT: THE LAND OF ACSL
Additional Data Text File for Testing Input
ANSWER KEY - YOUR OUTPUT EXPECTATIONS
We will run your solutions when we get back next year ! Earn as many points as you can.
Q2: WEEK VIII: JANUARY 2 - 4
A. WEEKLY EXERCISE:
Review the PROGRAMS:
- LUCKY SEVENS PROJECT: 10 points
- FIRST REVIEW THE FOLLOWING PROGRAM: Download Lucky Sevens Java Program
- THEN DO THE FOLLOWING ASSIGNMENT: LUCKY SEVENS WORKSHEET
- EXAM: 20 points
- The Employee Payroll 'Building Methods and Passing Parameters'
- 'THE LAND OF ACSL': 60 points
- - Setting up the MAIN METHOD
- - Emphasize the ANALYSIS of the PROBLEM
- - Discuss the self-containment of each METHOD (reduce Global Variables)
- APPROACH TO BUILDING METHODS
- Identify 'Self-containment' requirements
- Input: What data type(s) are required?
- Process: What task will be accomplished? (think small)
- Output: What data type will be returned?
- Samples:
- boolean isaVowel(String s)
- double calcHours( double d1,double d2 ...)
- boolean isFound(String sub, String sentence)
- ... create your own...
B. JOURNAL SUBMIT (Last change to earn points in Q2):
Journal Challenge: The Employee Payroll 'Building Methods and Passing Parameters'
(You do not have to do STEP 5, since we have not yet discussed Arrays)
Still time to submit or show...
- Lucky Sevens:
- Download Lucky Sevens Java Program
- Exam Programs: NESTED LOOPS & ADVANCED STRINGS
- ACSL: THE RUBRIC: LAND OF ACSL RUBRIC
- THE PROJECT: THE LAND OF ACSL
- Additional Data Text File for Testing Input
- ANSWER KEY - YOUR OUTPUT EXPECTATIONS
*For an additional explanation on METHODS, PARAMETER PASSING & VARIABLE SCOPE
READ THE 'FUNDAMENTALS OF JAVA - LAMBERT TEXT: CHAPTER 6 PG. 204-212
Q2: WEEK IX: JANUARY 7 - 11 - WEEK X: JANUARY 14 - 18
Still time to submit or show...
- I. Lucky Sevens - 10 pts:
- Download Lucky Sevens Java Program
II. ACSL - 30 pts:- THE RUBRIC: LAND OF ACSL RUBRIC
- THE PROJECT: THE LAND OF ACSL
- Additional Data Text File for Testing Input
- ANSWER KEY - YOUR OUTPUT EXPECTATIONS
- III. EMPLOYEE PAYROLL - 10 pts:
*For an additional explanation on METHODS, PARAMETER PASSING & VARIABLE SCOPE
READ THE 'FUNDAMENTALS OF JAVA - LAMBERT TEXT: CHAPTER 6 PG. 204-212
- IV. GETTING READY FOR THE MID TERM EXAM - 20 pts:
Have each Project Signed-off for one last Grade Boost in preparation for the End of Quarter.
DAY I: Karel The Robot. (2 Pts)
- Build an Abstract called 'CircleMaker'. Prove that it is an ABSTRACT CLASS
- Build 3 subclasses that can create variations on the ABSTRACT CLASS 'CircleMaker'
DAY 2: Basic Syntax: Operations, Primitives, Strings and Conditionals: (3 Pts)
- Create a program that uses Math Class methods. [ USE AT LEAST 10 METHODS]
- Create a program that features the use of Conditionals [USE IF, IF-ELSE, IF -ELSEIF -ELSE]
- Create a program that utilizes the Switch Statement [AT LEAST 4 OPTIONS]
DAY 3: The For Loop: (3 Pts)
- Write a program that prints multiples of 3.
- Write a program Counts down from 100 by 5's.
- Write a program that creates a checkerboard 8 x 8 with alternating 'X' & 'Y'
DAY 4: The STRING CLASS (3 Pts)
- Create a program that turns all input into Uppercase (don't use Uppercase Method): Example- How are You? HOW ARE YOU?
- Create a program that inputs a sentence and prints the input in reverse
- Example- How are you? ?uoy era woH
- Create a program that inputs a word, then breaks it into 3 even substrings and prints it in reverse order: Example- Fantastic -> tictasfan
DAY 5: BUILD A BOT! ( 3 Pts)
- Using the techniques from our first Major Lab, build a Chatbot that can hold a reasonable introductory conversation with you.
- Use a minimum of 5 different conditional statements.
- Use String methods creatively to simulate some interesting responses. [Try to incorporate at least 10 String Methods]
DAY 6: THE MOST EXCITING PROGRAM YOU WILL EVER WRITE: ( 6 Pts)
- YES FRIENDS, IT REALLY IS THAT EXCITING: THE BASKETBALL CHALLENGE!!!!!
- Once completed, you will have to make 2 Free Throws in a Row at the Hoop of Knowledge for full credit!
TERMINOLOGY: Make sure you know what these words mean.
Class Behavior Attributes State Variables Static Void Inheritance SuperClass
SubClass Interface Methods Abstract Instantiate Constructors Object Final Primitives: int shortlong char boolean double
Class Variables: String Integer Double
Method Signature: input parameters - action name - output data types
SEMESTER II
WEEK I: JANUARY 28 - FEB. 1
A.WEEKLY EXERCISE
Chapter 18 -ARRAYS
- Definitions, initializing, loop loading , finding the length
- Parsing with split( )
- Some neat Array Utilities:
- Sum an Array of numbers
- Search an Array for Value
- Sorting an Array
- Creating input and Output to Print File.
- ADDITIONAL READING MATERIAL ON ARRAYS:
- KEY TOPIC: JAVA PASSES BY VALUE NOT REFERENCE
- Compare the PASSING OF VARIABLES & ARRAYS (OBJECTS)
- Fundamentals of Java Book: Pages 341-346
PROJECT WORK DUE:
* Count 'em Right
* Array of Hope
Things to try ('Homemade Projects'):
- Using split ... create/ test a method that sums numbers from an Input String ie ( '5 + 6 + 23 + 13 + 1')
- Take 'Array of Hope' and convert Upper to Lower to Ascii..
(YOU MUST PRACTICE ARRAYS!!!!!!):
Work through the examples in BPJ:
Should include:
- 18 (12 Example Questions.)
- 18 (Array Definitions, Fill Array Routine, Print Array Routine)
- 18 ( 1 project from above)
B. JOURNAL SUBMIT:
HAND IN THE FOLLOWING PROJECT FOR GRADE ON MONDAY FEB 4TH :
- A Class that is called Student that contains:
- Constructor that calls for Name, Grade, Student ID (cannot have duplicates)
- 2 Methods that will Increment Grade, Print Name-Grade-Student ID.
- 3 Methods that will return Name, Grade or Student ID
- A Class that will:
- Instantiate 10 Students (all with Unique Student ID, Use grades 1-12, any Name)
- Place all Names into an Array, Then Sort them Alphabetically and print them out.
- Place all the Grade+StudentId into an Array. Then Sort by Grade/ StudentId and print
- A Class that will:
- Instantiate 10 Students (At least 2 with Grades = 12)
- Add 1 to the Grades of every Student Object.
- If the Student Grade is > 12 then delele from Array.
- Print out the Names , Grades, and StudentId before and after to prove your work.
C. WEEKLY QUIZ: Schoology.com
Lesson 18- Arrays Due Friday FEB. 1
Access Code
N2PGG-G2ZSD
AP STYLE- TIMED EXAM WILL BE GIVEN SOON !
WEEK II: FEBRUARY 4 - 8
HAND IN JOURNAL CHALLENGE - STUDENT ARRAY WORK - DUE FEB. 4
REVIEW OF JAVA CHALLENGE SHEETS (Have something to offer here!)
- JAVA CLASS & STRING WORK (CHAPTERS 15,16,17)
- JAVA ARRAY WORK (CHAPTERS 18, 19)
A.WEEKLY EXERCISE
TOPICS:
Chapter 19- ARRAYS - cont.
- Conversion String to Char
- logical vs. physical
- Arrays Class (IMPORTANT!) import java.util.*
* Arrays.sort( array )
* Arrays.binarySearch( array, value to find )
* Arrays.equals( array 1, array 2 )
* Arrays.fill( array, value )
* Arrays.toString( array )
BE PREPARED FOR:
- FREE RESPONSE A.P. PREP THIS WEEK!
- CONTEST PROBLEMS QUIZ.
B. JOURNAL SUBMIT:
YOU WILL HAND IN ONE OF THE FOLLOWING PROJECT FOR GRADE ON MONDAY, FEB. 11:
- A Class that is called 'SalesTask' that contains:
- A main method that is static. This method will be run to perform all tasks below.
- Create a 5 Element array called 'Slman'. Place the following Elements into it:
- 'Ted', 'Jane', 'Al', 'Mary', 'Constance'
- Create a 5 Element array (parallel to Slman). Place the following Elements into it:
- 450, 230, 150, 650, 750
- Print out the Information in Table Columns as folows:
- Salesman Bonus
- Ted 450 ...etc.
- Now give every Salesman a 5 % bonus. Build an additional method for this, then call it in the main() method.
- (Hint: for loop, increment each element)
- Then sort the arrays from A-Z, alphabetically. Hint: You might need a new array!
- (Think about using our String array concatenation trick)
- (Keep parallel relationship in tact!)
- Print out the Table again as above, with changes in place (sort, 5% increase)
- SUBMIT 'SalesTask.java' TO ME NO LATER THAN MONDAY (2/11): GOOGLEDOCS, HARDCOPY or E-MAIL.
Additional 'Extra Credit' Array Play for stronger muscles...
C. WEEKLY QUIZ: Schoology.com Complete The Following: Quiz 18, 19 Due Fri Feb. 8
Schoology Access Code:
Schoology Access Code:
N2PGG-G2ZSD
WEEK III: FEBRUARY 11 - 15
HAND IN JOURNAL CHALLENGE - SALESPERSON ARRAY or JAVA CHALLENGE - DUE FEB. 11
REVIEW OF JAVA CHALLENGE SHEETS (Have something to offer here!)
- We will review this material fueled by your questions!!
A.WEEKLY EXERCISE
TOPICS:
REVIEW MATERIAL - ARRAYS
Chapter 19- ARRAYS - cont.
- Conversion String to Char
- logical vs. physical
- Arrays Class (IMPORTANT!) import java.util.*
* Arrays.sort( array )
* Arrays.binarySearch( array, value to find )
* Arrays.equals( array 1, array 2 )
* Arrays.fill( array, value )
* Arrays.toString( array )
New Material: 2 Dimensional Arrays
- Chapter 35 - Two D ARRAYS
- Traversing a 2D array
- Accessing Values
- Updating
- Using a For Each Loop or not
BE PREPARED FOR:
- FREE RESPONSE A.P. PREP THIS WEEK! - Working with Strings/ Arrays
- CONTEST PROBLEMS QUIZ.
B. JOURNAL SUBMIT:
Due on Return of Feb Vacation- FEB 25TH - This will be counted as a TEST GRADE
You may work together and help each other, but DO NOT try to find the solution ON-LINE !
2-D Array Challenge Question. Will be handed out in Class.
C. WEEKLY QUIZ: Schoology.com
WEEKLY QUIZ: Schoology.com
Lesson 35- Arrays Due Friday FEB. 15
Access Code
N2PGG-G2ZSD
ADDITIONAL VACATION ACTIVITIES:
When we return, we will begin discussion of the LIST INTERFACE & ARRAYLISTS and begin work in two remaining AP-LABS. So, feel free to look aheadat the ArrayList chapters 42-43 and do some research ON-LINE.
WEEK IV: FEBRUARY 25 - MARCH 1
A.WEEKLY EXERCISE
MONDAY: Review 2D ARRAY ASSIGNMENT - FROM VACATION
READ THE COMPARABLE CLASS LINK AND = = VS EQUALS !
- Reading Supplement:
- Reading Supplement:
Chapter 35 - Two D ARRAYS - Review
Chapter 42- List Interface- Methods of the List Interface (Exercise)
Chapter 43- ARRAYLISTS:
- Advantages ArrayLists over Arrays
- Arrays-Physical size remains constant vs. ArrayLists-Physical size = = Logical size
- Arrays- Reorder required to insert an item vs ArrayLists - the 'add' method easy insertion into list
- Iterator objects are provided in ArrayLists : Click for Details
- Disadvantages: ArrayLists
- Elements in the list are considered OBJECTS not primitive types.
- Must remember & understand manipulation methods: add, set, get, remove ...
* Run examples & experiment with methods of LIST INTERFACE/ ArrayLists - Know how to use them.
* Don't forget to DO THE EXERCISE QUESTIONS in each CHAPTER (35, 42, 43) Check your answers with me! I CAN GIVE YOU THE RIGHT ANSWERSTO CHECK YOUR WORK!
B. JOURNAL SUBMIT:
PROJECT WORK DUE MONDAY (3/4) :
DUE MONDAY: SUBMIT 1 PROJECT (YOUR CHOICE) FROM BELOW:
- CHPTR 35 - MATRIX MULTIPLICATION
- CHPTR 35 - MATRIX MULTIPLICATION WITH INPUT FILE
- CHPTR 43 - BIG BUCKS IN BANK
- WEEKEND CHALLENGE (MARCH 2-3)
- ARRAYLISTS, COMPARABLES, ABSTRACTS AND THINGS
PLEASE TYPE ALL SUBMISSIONS
!! KEEP YOUR JOURNALS!! - PRACTICE, PRACTICE, PRACTICE THE MATERIAL!!
C. WEEKLY QUIZ: Schoology.com
WEEKLY QUIZ: Schoology.com
Complete The Following: Quiz 35, (42,43) Due Fri Mar.1
Schoology Access Code:
Schoology Access Code:
N2PGG-G2ZSD
*PREPARE FOR POTENTIAL FREE RESPONSE TEST ON THURSDAY !!! 3/1
WEEK V: MAR 4 - 8
A.WEEKLY EXERCISE
Monday: Review Assigned Weekend Work, QUESTIONS ANYONE???
IN CLASS PROJECT: ARRAYLISTS, COMPARABLES, ABSTRACTS AND THINGS
Topics of the Week:
- Solidifying our UNDERSTANDING of INTERFACES & POLYMORPHISM
- BPJ BOOK - CHAPTER 38 - INTERFACES
- Read this chapter carefully. Also read Appendix L - Essay on Interfaces
- PolyMorphism- Click Here to Read
- Make sure you understand how the Interface works and how important Polymorphic principals come into play.
Project Work:
- Exercise Questions: 1-7
- Contest Questions (May be used as Quiz Grade)
- Linear Function Project - Due Monday 3/9
- THE PET SHOP PROJECT:
- POLYMORPHISM-INTERFACES-COMPARABLE
- If time: Begin Work on ELEVENS AP LAB - Activity 1 & 2
- Building a Card Class & a Deck Class
- Activity 2 - Questions 1-4.
B. JOURNAL SUBMIT:
WEEKEND CHALLENGE ( DUE MON, MARCH-11)
ARRAYLISTS, COMPARABLES, ABSTRACTS AND THINGS
Take this Assignment from last week and add the following:
- Another Child Class to inherit from the Dog Class
a. Create implementations for speak() and move().
Use the Parent implementations - but add FUNCTIONALITY to them.
- Develop 2 Interfaces. Color and Directions.
- Implement the Interfaces into your Class Structure.
a. Create a new Instance Variable to hold Direction and Color.
b. Add the values to your move() method.
This can be done simply by printing Color and Direction.
- Now add the Comparable Interface into the Mix.
a. Build an ArrayList of 5 Pets
b. Create Instance Variables (like name, age, color) to use for sorting.
c. Create accessor methods to return variables.
c. Print the ArrayList
d. Sort the ArrayList & Print again to show the change.
There is some flexibility in the above Challenge. The Goal here is to immerse you into the world of polymorphism, inheritance and Interfaces. Enjoy.
C. WEEKLY QUIZ: Schoology.com
WEEKLY QUIZ: Schoology.com
DUE FOR PROGRESS REPORT: 18, 19, 35, 38, 42, 43 Due Friday March 8
Access Code: TP82K-N4GD4
REMEMBER THE GREAT WORDS OF ARISTOTLE:
We are what we repeatedly do. Excellence, then, is not an act, but a habit.
You should be practicing AP questions regularly. Either the BePrepared Book by Litvin or the On-Line Georgia tech site. Start get yourself into GAME SHAPE. Only7 weeks remain.
WEEK VI: MARCH 11- 15
A.WEEKLY EXERCISE
Monday: Review Assigned Weekend Work - THE PET HIERARCHY
Hand in for Test Credit - ELECTRONIC & HARDCOPY
REVIEW AP SIMULATION QUIZ: WATCH THIS VIDEO: DEMORGAN'S LAW
' (A && B) 'A || 'B '(A || B) 'A && 'B
Topics of the Week:
ELEVENS LAB - Building and implementing a FUN CARD GAME
The ELEVENS LAB is our 2nd AP/CS Lab. We will work through 9 Activities that will employ all of our current knowledge about Java, Object Relationships, Method Implementations,Arrays & ArrayLists. It is a fun Lab with a great payoff. You get to play Cards!
Spend some time with this. Understanding these concepts will be most rewarding. For grading purposes, we will break the project into 2 parts over the next 2 weeks.
PROJECT WORK:
- Activity One - Designing a Card Class (1 hr)
- Activity Two - Intial Design of Deck Class (2 hr)
- Activity Three - Shuffling Cards in a Deck (2 hr)
- Activity Four - Adding a Shuffle Method Implementation (1 hr)
- Activity Six - Playing the Game - ELEVENS (1 hr)
B. JOURNAL SUBMIT:
- 20 points for completing each Activity.
- Deliverables:
- 1- Program - Card Class , Design Class & Test
- 2- Program - Deck Class & Questions 1-4
- 3- Program - Shuffler Class & Questions 1-3
- 4- Program - Add Shuffle Method to Deck Class
- 6- Questions and Rules of Play: Questions 1-3
C. WEEKLY QUIZ: Schoology.com (No new quizzes. Make sure you're up to date for P.R)
WEEKLY QUIZ: Schoology.com
DUE FOR PROGRESS REPORT: 18, 19, 35, 38, 42, 43 Due Friday March 10
Access Code: TP82K-N4GD4
REMEMBER THE GREAT WORDS OF ARISTOTLE:
We are what we repeatedly do. Excellence, then, is not an act, but a habit.
You should be practicing AP questions regularly. Either the BePrepared Book by Litvin or the On-Line Georgia tech site. Start get yourself into GAME SHAPE. Only7 weeks remain.
IMPORTANT: BE PREPARED FOR A 20 QUESTION M.C. EXAM (THURS OR FRI)
You should be practicing AP questions regularly. Either the BePrepared Book by Litvin or the On-Line Georgia tech site. Start get yourself into GAME SHAPE. About7 weeks remain!
WEEK VII: MARCH 19 - 23
A.WEEKLY EXERCISE
Topics of the Week:
ELEVENS LAB - Building and implementing a FUN CARD GAME (Continued...)
The ELEVENS LAB is our 2nd AP/CS Lab. This week we will continue to build on our understanding of Arrays, ArrayLists, Method Implementation and Object relationships. We will workto complete Activities 1-9. Make sure to spend time on 7 & 8 even though there is no coding to do there. All that knowledge will be key when you tackle Number 9.
Of course, if you finish early, you can further your skill and understanding by reading up on Activities 10 & 11, too.
This is a fun Lab and our first experience with a GUI interface. Feel free to experiment and come up with your own game ideas. The more effort you put in, the higher thepayoff.
PROJECT WORK:
- Activity One - Designing a Card Class (1 hr)
- Activity Two - Intial Design of Deck Class (2 hr)
- Activity Three - Shuffling Cards in a Deck (2 hr)
- Activity Four - Adding a Shuffle Method Implementation (1 hr)
- Activity Six - Playing the Game - ELEVENS (1 hr)
- 20 points for completing each Activity.
- Activity Seven - Elevens Board Class Design (1 hr)
- Activity Eight - Using an Abstract Board Class (1 hr)
- Activity Nine - Implementing the Elevens Board (2 hr)
- Activity Ten&Eleven - ThirteensBoard - Or You own Game Design (?? hrs)
B. JOURNAL SUBMIT:
GRADING RUBRIC:
- START WITH A SCORE OF: 60% FOR PLAYING.
- 5 points for completing each Activity.
- Deliverables:
- 1- Program - Card Class , Design Class & Test
- 2-Program - Deck Class & Questions 1-4
- 3-Program - Shuffler Class & Questions 1-3
- 4-Program - Add Shuffle Method to Deck Class
- 6- Questions and Rules of Play: Questions 1-3
- 7- Questions & Analysis: Questions 1 - 4
- 8- Questions & Analysis: Questions 1 - 3
- 9- Program - ElevensBoard Class and Testing: Implement 4 Methods, Q 1-3
- Game can be played to Win
- Game can be played to Lose
- Prove J-Q-K logic
- Prove x + y = 11 logic
- 10-11 or Development of your own game idea. (Extra Credit)
PROJECT MUST BE COMPLETE BY END OF DAY - MONDAY 3/26 FOR FULL CREDIT.
BE PREPARED FOR A SAMPLE FREE RESPONSE QUESTION EXAM NEXT WEEK
You should be practicing AP questions regularly. Either the Be Prepared Book by Litvin or the On-Line Georgia tech site. Start get yourself into GAME SHAPE. About 5 weeks remain.
You should be practicing AP questions regularly. Either the Be Prepared Book by Litvin or the On-Line Georgia tech site. Start get yourself into GAME SHAPE. About 5 weeks remain.
Georgia Tech AP Practice Web Site
WEEK VIII: MARCH 25 - 29
A.WEEKLY EXERCISE
END OF DAY-MONDAY: HAND-IN ELEVENS LAB WORK
- GRADING RUBRIC:
- START WITH A SCORE OF: 60% FOR PLAYING.
- 5 points for completing each Activity.
- Deliverables:
- 1- Program - Card Class , Design Class & Test
- 2-Program - Deck Class & Questions 1-4
- 3-Program - Shuffler Class & Questions 1-3
- 4-Program - Add Shuffle Method to Deck Class
- 6- Questions and Rules of Play: Questions 1-3
- 7- Questions & Analysis: Questions 1 - 4
- 8- Questions & Analysis: Questions 1 - 3
- 9- Program - ElevensBoard Class and Testing: Implement 4 Methods, Q 1-3
- Game can be played to Win
- Game can be played to Lose
- Prove J-Q-K logic
- Prove x + y = 11 logic
- 10-11 or Development of your own game idea. (Extra Credit)
REVIEW THE ARRAYLIST CHAPTERS ( 42 - 43 )
- Be comfortable with get(), set(), remove() size()
CHAPTER 41 - INTRO TO SORTING: Bubble - Selection - Insertion
THIS WEEK WE WILL FOCUS ON - BUBBLE , SELECTION, INSERTION
- Create examples of each. Run and Compare
- Read 12.2 Cengage Learning Supplement: Selection, Insertion, Bubble Sorts
- Get to know and recognize the SALIENT FEATURES:
- VIDEOS ON SORT:
B. JOURNAL SUBMIT:
PROJECTS TO SUBMIT FOR GRADE - DUE APRIL 2 (MONDAY)
The Student Quiz Sorting Project!
CLICK HERE FOR DIRECTIONS
We will schedule another FREE RESPONSE EXAM for THURS (29TH)!
Don't forget to 'Exercise' - Answers will be provided upon request.
BRING UP CONFUSING ISSUES IN CLASS!
Georgia Tech AP Practice Web Site
Q4: WEEK I: APRIL 1 - 5
Last week too short, we continued to discuss 3 sorts
JOURNAL CHALLENGE FOR WEEKEND APRIL 6-8
CLICK HERE FOR THE SORT CHALLENGE
Q4: WEEK II: APRIL 8 - 12
A.WEEKLY EXERCISE
CHAPTER 40. RECURSION
- Exercise Examples..
CHAPTER 39. BIG O 'order of' THEORY....
- Standard Notation of Processing TIME ANALYSIS.
CHAPTER 41 - Review : Bubble Sort - Selection - Insertion
Focus: QuickSort - MergeSort
THIS WEEK WE WILL FOCUS ON - QuickSort & MergeSort
- Create examples of each. Run and Compare
- Read (CLS) 13.4 & 13.5 - QuickSort & Merge Sort
- Get to know and recognize the SALIENT FEATURES
- VIDEOS ON SORT:
PREPARE FOR FREE RESPONSE EXAM CHALLENGE - WEDNESDAY (4-10)
B. JOURNAL SUBMIT:
PROJECT FROM CHAPTER 40 , BPJ - FIBONACCI SEQUENCE PROGRAM - DUE TUESDAY AFTER VACATION!
C.WEEKLY QUIZ: Schoology.com
Java Quiz 39, 40 & 41: 18, 19, 35, 38, 39, 40, 41, 42, 43, Due Friday April 26
VACATION BREAK.
Q4: WEEK III: APRIL 23 - 26
THE PICTURE LAB - CONCLUSION
Over the next week. we will work on the last of the AP Labs. The Picture Lab is a neat set of assignments that will provide you with a solidunderstanding of 2D Array Processing while at the same time, enable you to manipulate Images with various shades of Color and Mirroring techniques.
Picture Lab Activities:
- A1: Intro to Digital Pictures and Color (3 Questions)
- A2: Picking a Color - Question 1 - 5
- A3: Exploring the Picture - Questions 1-7, Exercise 1 & 2
- A4: Working with 2D Arrays - Exercises 1,2,3
- A5: Modifying a Picture - Questions 1-7, Exercises 1-6
- A6: Mirroring Pictures - Exercises 1,2,3,4
- A7: Mirroring Part of Picture - Questions 1,2, Exercises 1,2,3
- A8: Making a Collage - Exercises 1,2
- A9: Simple Edge Detection - Exercises 1,2
You may work together to master this material. Upon completion of the Lab, we will have an EXAM based upon the concepts from this Lab.
Here are your PICTURE LAB EXAM ASSIGNMENT SHEETS:
Page 1Page 2Page 3Page 4
The final Due Date on this will be Tuesday April 30th ,
Q4: WEEK IV: APRIL 29 - MAY 2
THE PICTURE LAB
Over the next week. we will work on the last of the AP Labs. The Picture Lab is a neat set of assignments that will provide you with a solidunderstanding of 2D Array Processing while at the same time, enable you to manipulate Images with various shades of Color and Mirroring techniques.
WE WILL COMPLETE THE LAB ON TUESDAY. WEDNESDAY WE WILL HAVE A PICTURE LAB EXAM.
Picture Lab Activities:
- A1: Intro to Digital Pictures and Color (3 Questions)
- A2: Picking a Color - Question 1 - 5
- A3: Exploring the Picture - Questions 1-7, Exercise 1 & 2
- A4: Working with 2D Arrays - Exercises 1,2,3
- A5: Modifying a Picture - Questions 1-7, Exercises 1-6
- A6: Mirroring Pictures - Exercises 1,2,3,4
- A7: Mirroring Part of Picture - Questions 1,2, Exercises 1,2,3
- A8: Making a Collage - Exercises 1,2
- A9: Simple Edge Detection - Exercises 1,2
You may work together to master this material. Upon completion of the Lab, we will have an EXAM based upon the concepts from this Lab.
Here are your PICTURE LAB EXAM ASSIGNMENT SHEETS:
Page 1Page 2Page 3Page 4
THURSDAY & FRIDAY - WE WILL BEGIN A REVIEW PROCESS. START TO GET YOUR QUESTIONS READY!
Q4. WEEK 5 - MAY 6 - 10
For the next 2 weeks we will have a great opportunity to review and practice the topics and techniques that we have learned this year. In order toget as much value out of this time as possible, make sure that you prepare questions to lead us through this journey. There are many topics for us to explore from data types, operators to heirarchy and class structures, fromStrings, Arrays and ArrayLists, yada yada...
A. REVIEW
C.WEEKLY QUIZ: Schoology.com
Java Quizzes for Q4: 39, 40 & 41: Semester II: 18, 19, 35, 38, 39, 40, 41, 42, 43,
Make sure you are UP TO DATE WITH QUIZZES!!!.
FINISHING OUT THE SEASON
NOW THAT THE AP CURRICULUM IS COMPLETED, WE WILL HAVE SOME TIME TO PLAY WITH A FEW MORE
FUN PROJECTS. THESE PROJECTS WILL PROVIDE YOU AN OPPORTUNITY TO ENHANCE YOUR GRADE BEFORE THE EOY.
THE MINESWEEPER CHALLENGE - DUE ON FRIDAY - JUNE 1,
This is a fun project. You will be able to use your JAVA KNOWLEDGE and combine it with the JAVAX.SWING PACKAGE to
create the popular desktop game.
ADDITIONAL JAVA PROGRAMS FOR PLAY AND MODIFICATION
Matthew walker
1.Write code that will create an array of 300 BankAccountobjects. You are only to
instantiatetwo of them. The object with index 47 should have a beginning balance of
$92,and index 102 should have $1007. The name of your array will be ba.
BankAccount ba[]= new BankAccount[300];
ba[102] = new BankAccount ($1002);
2.Write an if statement that will decide if k[3] isequal to jm[5] where it is assumed that k
If ( k[3] = = jm[5] )
3.Write an if statement that will decide if s[2] isequal to ss[19] where it is assumed that s
If (s[2].equals(ss[19]))
4.Write an if statement that will decide if cir[2] isequal to cirr[10] (with regard to content)
whereit is assumed that cir and cirr are object arrays of type Circle.
charmonths[];
months has not been initialized yet
6.String suv[] = new String[20];
while(j< 17 )
suv[j] = “Hello”;
}
Whatis the physical size of the suv array? 17
7.Write code using toCharArray to convert Stringd = “The quick brown fox jumped over
char qbf[];
String d = 'The quick brown foxjumped over the lazy dog.';
8.double rub[] = {23.0, -102.1, 88.23, 111, 12.02, 189.119, 299.88};
Writea single line of code (using arraycopy) that will result in dublooking like this:
- {1, 2, 3, 4, 111, 12.02, 189.119, 8, 9}]
9.double[] zz, top = {12.1, 13.1, 14.1, 15.1, 18};
zz[2]= 99;
Showwhat “both” arrays would look like at the completion of the above code.
10.char[] a, b;
b= “I like this”.toCharArray( );
Whatdo the two arrays look like at the completion of this code?
11.What must be true of any array before we can use Arrays.binarySearch( )?
12.Write code that will establish an array called myArray havingthe following elements,
{189.01,2000, -32, 56, 182, 2}. Then sort the array.
13.Assume the array myArray in #12 has been correctly sorted. What would be printed with
System.out.println(Arrays.binarySearch(myArray, 56) );
System.out.println(Arrays.binarySearch(myArray, 102) );
14.What does the following print?
intpk[] = {123, 79, -102, 17};
System.out.println(Arrays.equals(xc, pk) + “n” + Arrays.equals(xc, gs));
True
15.What does the following print?
Arrays.fill(pickle,-1);
-1
16.If a command line reads, javaBigClass Munster Herman dude,what will the following
System.out.println(“Name=”+ args[2] +args[1] );
17.What’s printed by the following?
System.out.println(px[ px[1] + 1 ]);
18.Write code using the “for-each” style of a forloop that will accumulate and print the
productof the state variables int jj within each object of object array objArray.Assume