Introduction to Computers (Acc) Class Website
       Introduction to Computers (Acc) Class Website         








"In the one and only true way. The object-oriented version of 'Spaghetti code' is, of course, 'Lasagna code'. (Too many layers)."
- Roberto Waltman.

Welcome to the 2010-2011 School Year!!


How to flowchart.
flowChart copy.jpg



                                                                       computer_surfing0.gif        





Current Assignments



Day
Date
Class Activity
Homework
94
2/6

Chapter 7
Designing Classes
Choosing Classes
Cohesion and Coupling
Accessor and Mutator classes
Side effects
.

Read pages 282 to 287
Do problems R7.1 through R7.3
97
2/7

Chapter 7
Designing Classes
Choosing Classes
Work on programming exercise P7.1 and P7.2
.

Read pages 288 through 292

Modify the Purse class to keep a tally of how many coins of each it contains. (You can do this on paper and in class you can implement it in your project)
.
98
2/8

Chapter 7
Designing Classes
Pre and Post conditions
Static methods and fields
Work on programming exercises P7.3 and P7.4
.

Read up to page 295

99
2/9

Chapter 7
Designing Classes
Designing Classes
Alternative forms of field initializations
.

Read pages 297 through the top of 302
Do problems R7.4 through R7.6
100
2/10

Chapter 7
Designing Classes
Scope
Calling one constructor from another
Work on programming exercises P7.5 and P7.6
.

Do problems R7.7 through R7.9

101
2/13

Chapter 7
Designing Classes
Work on programming exercises P7.7 and P7.8
.

Do problems R7.10 through R7.12
102
2/14

Chapter 7
Designing Classes
Create a file, YI_ValRef.java.
It should have a main method with the following specifications:
1. Create two objects of Rectangle,
     box1 = [10,20,100,100]
     box2 = [30,40,100,100]
2. Print their contents
3. Make the following assignment:  box1 = box2
4. Print their contents again
5. Make a conclusion about what you think is happening.
Note: the legend should ilnclude a mention to "updating types by value and by reference"

Read up to page 307 and prepare for quiz on Tuesday
Do problems R7.18 and 19
103
2/15
Chapter 7
Designing Classes
Quiz on reading material from pages 282 thorugh 290 (Not including Call by Value...)
Do problems R7.20 through R7.26, skip R7.25
104
2/16
Chapter 7
Designing Classes
Work on programming exercises P7.11
105
2/21
Chapter 7
Designing Classes
Work on programming exercises
106
2/22

Chapter 7 Test
.



Day
Date
Class Activity
Homework
93
2/2

Chapter 6
Work on the Midterm programming assignment according to specifications. Keep in mind the following
1. Allow the user to enter the quantity for the service selected.
2. Create only one object.
3. Use good OOD.
4. Include the extra credit as part of the assignment.

Due by Friday the 3rd.

When finished with Midterm, work on the following programming project:

Write an application that prints a table of the binary,octal and hexadecimal equivalents of the decimal numbers in the range 1 through 256.
Watch these videos on Binary Numbers
                               Octal Numbers
                               Hexadecimal Numbers
                               Hexadecimal Numbers Conversion
                              

.

Read pages 282 to 287

94
2/3

Chapter 6

Work on posted assignments for 2/2

Note for those who still struggling to complete the assignment:

The implementation of the midterm programming assignment should resemble DataSet and InputTest programs from chapter 6 starting on  page 247.



A group of Princeton University Computer Science students led by Max Rabinovich will be holding a java programming workshop on Mondays and Wednesdays starting at 3 in room 242. The workshop will start from basic concepts to advanced and sophisticated implementations. Projects will include N-body simulations, Graphical Representations using the StdDraw library, Data Types I and II, and Guitar Hero simulator.

Students from my classes who join the workshop will grade extra credit for the remaining marking periods.

.

Read pages 288 through 292

.






Day
Date
Class Activity
Homework
67






12/19







Chapter 6
Iterations - the while loop

Read pages 228 to 232
68

12/20

Chapter 6
Iterations - the for loop

Write a program to calculate the factorial of a number n. Using a while loop and second counter-controlled for loop (both in the same program). Prompt for input and display both results in the console screen. Draw a flowchart.
Factorial is defined as follows:
     n! = n(n-1)(n-2)...(2)(1)

Common errors: infinite loops, off-by-one and a semicolon too many
.

Read pages 233 to 240
69
12/21

Chapter 6
Iterations - Nested loop and Advanced topics
               do loops
               scope
               loop-and-a-half
               break-and-continue
Class Work:
Programming exercises P6.1
.

Read pages 241 to 245
Exercise R6.1->R6.3
70
12/23

Chapter 6
Iterations - Random Number and Simulations
Quality tips: intended purpose, do not use !=, asymmetric bounds, count iterations
How to implement loops
Class Work:
Programming exercises P6.2
.

Read pages 246 to 254
Exercise R6.4->R6.5
71

Enjoy the winter break!!!


christmas-animated-gifs-06.gif
happy-new-year-animated-gif-2.gif


.
72
1/3/
2012

Chapter 6

Class Work:
Review of "How to" concepts
..

Read pages 246 to 254
Exercise R6.6 and R6.7


Exercise R6.9 and R6.10
73
1/4

Chapter 6
Class Work:
Programming exercises P6.2 discussion
...

Exercise R6.11 and R6.12


74
1/5

Chapter 6

Class Work:
Programming exercises P6.2 and P6.3

.
75
1/6

Chapter 6
StringTokenizer and Scanner classes
Class Work:
Programming exercises P6.4
.
76
1/9
Chapter 6
Iterations - the while and for loops

Class Work:

Write a program to calculate the Fibonacci sequence up to n number of terms. Using a while loop or a counter-controlled for loop. Prompt the user for input and display the result in the console screen. Draw a flowchart before you start writing the program and hand it to the teacher.

.

77
1/10

Chapter 6

Class Work:
Programming exercises P6.5 and P6.6
.
78
1/11

Chapter 6

Class Work:
Programming exercises P6.8
.

Exercise R6.13
Write on paper or type in WordPad program P6.7. Note: do not use any IDE
79
1/12

Chapter 6

Class Work:
Programming exercises P6.9 Discussions
.

Exercise R6.14
Wrtie on paper or type in WordPad program P6.10. Note: do not use any IDE
.
80
1/17

Chapter 6

Class Work:
Programming exercises P6.14
.

Exercise R6.15
Wrtie on paper or type in WordPad program P6.11. Note: do not use any IDE
81
1/18

Chapter 6

Class Work:
Programming exercises P6.15
.

Exercise R6.16
Wrtie on paper or type in WordPad program P6.12. Note: do not use any IDE
82
1/19

Chapter 6

Class Work:
One of the following programming exercises P6.16 through P6.19
..
Exercise R6.17
Wrtie on paper or type in WordPad program P6.13. Note: do not use any IDE
83
1/20

Chapter 6
Test Review
.
84
1/23

Chapter 6 Test
.

Midterm review:MC 1-10 from Chapter 1 and Chapter 2


.
85
1/24

Midterm Exam Review

..

Midterm review:MC 11-20 from Chapter 1 and Chapter 2
86
1/25

Midterm Exam Review
.
87
1/26

Midterm Exams start

88
1/30

Intro to Java Midterm:

65 multiple choice questions from chapters 2, 3 and 5. Also, there will be a programming assignment.

Last year's assignment:
Midterm programming assignment consists of an application implemented with two files: A class and a test or driver program. The application is designed to automate a price and quantity invoice system of several products for a shop. Your program has to offer a menu with the products and prices for each product. Each product is selected by a number and followed by a prompt to the user to find out the quantity for that product. Then it calculates the total amount and displays it. Syntax you should know: plain loops and sentinel driven loop, input statements and display statements of your choice.
..
89
1/31

Midterm Exams



Day
Date
Class Activity
Homework
51
11/28

Multiple Alternatives
P5.1 and P5.2
.

Read page 192 through 201
Do problem R5.1
.

52
11/29

Comparing Floating-Point Numbers, Strings and objects
Programming Assignment P5.3

.

Read up to page 196
Do problem R5.2 through 5.4
Complete Programming Assignment P5.3
Draw a flowchart for Programming Assignment 5.4
.

53
11/30

Quiz on comparing floating point number
Multiple Aterbatives and the Dangling Else
Programming Assignment P5.4
.

Do problems R5.5
Draw a flowchart for Programming Assignment 5.7
.

54
12/1

Truth Table and Boolean Expressions
Programming Assignment P5.5
..


Do problem R5.6
Draw a flowchart for Programming Assignment 5.8
55



12/2




Create a Power Point Presentation with the following topics:

How technology has an impact on a field of your choice.

Use images and short paragraphs.
The ppp should have at least 5 slides.
Include the URL's for each source.
.

Do problem R5.7 and R5.8
Draw a flowchart for Programming Assignment 5.9
.

56
12/5

Programming Assignment P5.6
.

Do problem R5.9 and R5.10
Draw a flowchart for Programming Assignment 5.10

57
12/6

Create a Test Suite for your P5.4 flowchart. Show all the work. Also, print your program for P5.4, the output and turn everything in.
Stapled all the papers together. Please

Programming Assignment P5.7
.

Do problem R5.11, R5.12 and R5.13

.

58
12/7



Programming Assignment P5.8 and P5.9

Do problem R5.14 and R5.15

For homework draw a flowchart for the following application:
A mouse is trapped in a maze. It gets to an intersection where there are three possible paths. It can go, left, right and up ahead. It can also go back. Use a random digit to check to see which way it will go. Be short but creative to design the outcome of going in any of those paths to just one more level of intersections at each of the paths.
.

59
12/8

Programming Assignment P5.10 or P5.16
.

Do problem R5.16
.

60
12/9

Programming Assignment P5.11 or P5.17
.

Do problem R5.19

61
12/12

Programming Assignment P5.12 or P5.18
.

Do problem R5.20
.

62
12/13

Programming Assignment P5.12 or P5.18
.

63
12/14

Chapter 5 Test Review

.
64
12/15

Chapter 5 Test review

.
65
12/16

Chapter 5 Test

.
.
66
12/19

Binary and Octal Number Systems

On a separate piece of paper show how to convert a three digit decimal number to octal and to binary numbers. Write the pseudocode you would use to implement a conversion application.

On a separate piece of paper show how to convert an octal number and a binary number to a decimal number. Write the pseudocode you would use to implement a conversion application.
.
.
12/20

Binary and Octal Number Systems:

1. Write a program that will display the binary and octal numbers of 1 through 30. Display the three number systems. Take a look at the first example on Chapter 6 pdf on page 2.

2. Write a program that will prompt the user for two choices:
  a) convert octal to decimal
 b) convert binary to decimal

Do the conversion and display the result together with the original number.

Include a flowchart for both programs and any modifications you need to do to your pseudocode for it to make sense.
.
.


Read pages 228 through 231
12/21
12/22
12/23










Day
Date
Class Work
Homework
43
11/7

Chapter 4
A Simple Applet: Rectangle Applet
Graphical Applications
.

Read pages 133 through 141
44
11/8

Chapter 4
Colors and Fonts
FontApplet - CarApplet - Drawing Graohical Shapes
Ex P4.1 through P4.5
.

Read pages 142 through 155
44
11/9

Chapter 4
ColorApplet - IntersectionApplet
Ex P4.6 and P4.7
.

Read pages 148 through 155
45
11/14

Chapter 4
The Flag Applet - ChartApplet
.

Read pages 156 through 161
.
46
11/15

Chapter 4
ColorApplet

.


Read pages 162 through 179
47
11/16

Chapter 4
Intersection Applet - Chart Applet
Ex P4.8 and P4.9


.

Complete assignments to keep up with the schedule

48
11/17

Chapter 4
Ex P4.10 and P4.11
.

Complete assignments to keep up with the schedule

49
11/18

Chapter 4
Ex P4.12 and P4.13
.

Complete assignments to keep up with the schedule

50
11/21

Chapter 4
Ex P4.14
Bonus: P4.15
.

Complete assignments to keep up with the schedule
51
11/22

Chapter 4
Ex P4.16 and P4.17

.

Complete assignments to keep up with the schedule
52
11/23

Chapter 4
Ex P4.18

.

Complete assignments to keep up with the schedule



Day
Date
Class Work
Homework
25
10/12

Chapter 3
Fundamental Data Types
Number Types
Assigment
Constants
Magic Numbers

.

Read up to page 99
26
10/13

Chapter 3
Fundamental Data Types
Purse class and driver class
Arithmetic and Math Functions
Calling Static Methods
Type Conversion
Do problems P3.1 and P3.2

.

Read up to page 101
Do problems R3.1 through R3.7
27
10/14

Chapter 3
Fundamental Data Types
Type Purse class and PurseTest driver.
Do problems P3.1 and P3.2
.


28
10/17

Chapter 3
Fundamental Data Types
Do problems P3.3 and P3.4
.
29
10/18

Chapter 3
Fundamental Data Types
Do problems P3.5 and P3.6
.

Read pages 102 through 104 and 107 through 109
30
10/19

Chapter 3
Fundamental Data Types
Do problems P3.7 and P3.8
.

Do problems R3.8 through R3.12

31
10/20

Chapter 3
Fundamental Data Types
Do problems P3.7 and P3.8
.
32
10/21

Chapter 3
Fundamental Data Types
Do problems P3.9 and P3.10
.

Do problem R3.13
33
10/24

Chapter 3
Fundamental Data Types
Do problems P3.11 and P3.12
.

Do problem R3.14
Pay special attention to Advanced Topic 3.5 on page 109
34
10/25

Chapter 3
Fundamental Data Types
Do problems P3.13 and P3.14
.

Do problems R3.15 and R3.16
35
10/26

Chapter 3
Fundamental Data Types
Do problems P3.15 and P3.16
.

Do problems R3.17 and R3.18
36
10/27

Chapter 3
Fundamental Data Types
Do problem P3.17
.

Do problem R3.19
37
10/28

Chapter 3
Fundamental Data Types
Put together a text file with all your programming assignments.
Make sure you have documentation in every class and test class you wrote.
Make a note of any program you skipped or does not work.
.
38
10/31

Chapter 3
Fundamental Data Types
SpookyHalloween.bmp

Enjoy Halloween!
Sorry I could not be there.
.
39
11/1

POP QUIZ
.
40
11/2

Chapter 3 Test Review
.
41
11/3

Chapter 3 Test
.




Day

Date

Class Work

Homework

 6
 9/15


Chapter 2
Objects, properties and actionsC
Work on examples on Chapter 2
.

Read up to page 43

 7

 9/16


Chapter 2
Objects, properties and actions
Create classes:
      Rectangle, RectangleTest and MoveTest
.

Read up to page 49
Answer on paper questions R2.1 through R2.9, skip R2.4

 8
 9/19


Chapter 2
Objects and classes
Properties and attributes
Behaviors and methods
Constructors
OOD: ENCAPSULATION
Create classes:
      Greeter, GreeterTest
Creating objects: INSTANCIATION

.

Answer on paper questions R2.5, R1.10 through R2.13
Read up to page 53


.


9

 9/20

 
Chapter 2 
Classes and Objects


 
Answer on paper questions R2.4

 10

 9/21

 
Chapter 2 
 Elevator Simulation Discussions
Use the three objects you chose for homework to write a short program in pseudocode to simulate activity in the Elevator System.


.
 
Find three objects on the Elevator System and create a table with attributes and behaviors.

Add two more objects to your table and activity-simulation

 11

 
9/22
 
Chapter 2 

Work on exercises P2.1 through P2.4
.

 
Read pages 54 thru 66
Answer on paper questions
R2.14 through R2.16
12

 9/23

 Chapter 2 
Discussions on the BankAccount class

.
 
R2.17 and R2.18
 13

9/26
 
Exercise P2.5 through P2.6
Discussions on the BankAccount class

.
 

 14

9/27

 Exercise P2.7
  
.
 
Complete all review exercises by Monday 10/3



 15

 9/28


 Exercise P2.8
  

.

.
 

16

 9/30

 
Exercise P2.9


.
 


 17

 10/3

 
Exercises P2.10 and P2.11
.
 


 18

 10/4

 
Exercises P2.12 or P2.13 and
Exercises P2.14 or P2.15
.
 


 

 

 .
 


19
10/5

Quiz on concepts discussed in class on
Thinking about Class Classes and Objects.

Exercises P2.16 or P2.17
.




Write the pseudocode for current program
20
10/6

Exercises P2.8 and P2.9
Exercises P2.16 or P2.17
.
21
10/7

Discussions and classwork on "this"
Work on programming assignments
.
22
10/10

Chapter 2 Test Review
.
23
10/11

Chapter 2 Test
.
.

Read pages 78 through 86


Day
Date
Class Work
Homework
1
9/8

Introductions

.
Read Chapter 1
Sections 1.1 through 1.6
2
9/9

Flowcharts and pseudocode
Knowing the IDE: JCreator
.

Finish the birthday problem flowchart
3
9/12

The Chaos Game
.

Flowchart for the Chaos Game
4
9/13

Work on examples on Chapter 1 and exercises at the end of the chapter
.

Read pages17 through 24
5
9/14

Chapter 1
Work on problems 1.1 through 1.6
.

Chapter 2:
Read pages 34 - 39

















                





Mrs. Elia’s Company Policy*
Introduction to Computers (Accelerated)
School Year 2010-2011

Grade composition:                                                      20% Homework, pop quizzes
                                                                                        20% Assignments, projects and folders
                                                                                        60% Quizzes and Tests
Homework
The student is responsible for completion and correction of homework assigned.
Homework will be checked every day. Neatness and completeness are a must. All material should be kept in a folder. Programs must be saved on your storage device.

Java Programming folder (Company rules must be included)
Your folder should contain homework, class notes, class activities, projects, pop quizzes, quizzes and tests as well as your programs. I will collect it at random without notice every marking period for grading.
Note: After the final, you can leave all the material home and start with a clean folder on the second semester.
Tardiness… ~~Class starts immediately!

Absence
Student is responsible for making up work missed. Check Mrs. Elia’s classes in the PHS website for lessons and assignments.. Hours after school can also be scheduled by appointment.

Absent for a test or quiz
If you are absent the day of an announced quiz or test, you are expected to take the quiz/test on the day you return. In any other circumstance the make up test and quiz must be taken within the first two days after returning to school. If the make up is not taken, it is a zero.

  Cheating policy “Absolute zero”. Plus parents will be contacted. Programs should be your own creation.
  Getting solutions to assignments  from the publisher’s site is considered cheating.

Textbook: As soon as you get your book, write your name on the back of front cover. It must be covered at all times and well cared for. The cost of your book is $78. Book must be returned in good conditions (or pay a fine) 10 days before end of school. Otherwise report cards will be withheld.

What to bring to the classroom Pencil or pen, Notebook or binder
What not to bring to the classroom Food, sunglasses, ipod, cell phone (keep it in your book bag)
Any of these items I find, I will turn them over to main office.

How to contact Mrs. Elia
My office is in room 234 but you can find me in room 242 most of the day. I am available during 2nd, 4th periods, break and after school.
My telephone number is (609) 806-4280 extension 3631.
If you cannot get me at any of these locations, look for me in the photocopy room.
My email address is graciela_elia@monet.prs.k12.nj.us. I encourage you to communicate with me as much as possible.
*All terms and conditions are subject to change with written notification by Mrs. Elia