Plans for the Week and Assignments: 1. Tuesday(08/17): Introduction to AP Computer Science A and Class Expectations. HW: Get your materials for class (3-ring binder, notebook paper, calculator, flash-drive, pens, and pencils). 2. Wednesday(08/18): Chapter 1 - History of Computers and the Internet. HW: Study website notes and related links. Complete Handout Assignment #1, and get materials for class. 3. Thursday(08/19): Algorithms and Programming Languages. Euclid's GCD and Number-Base Conversion. HW: Complete Handout Assignment #2, and get materials for class. 4. Friday(08/20): Java Programming Structure. HW: Modify, compile, and run the program Addition.java so that it allows the user to find the sum of 3 integers. The output should be similar to "The sum of 45, 73, and 28 is 146." Then send it to me as an email attachment, by Sunday 08/22/10, 8:00 PM. 5. Monday(08/23): Computer Labwork - Entering your first Java program into the computer. HW: Complete Handout Assignment #4. 6. Tuesday(08/24): REVIEW I for Test on Ch.1. HW: Finish all handout assignments and study for Test. 7. Wednesday(08/25): REVIEW II for Test on Ch.1. HW: Finish all handout assignments and study for Test. Also modify this PROGRAM and surround "Hello World" with a design using characters of your choice. I used a showbox. Save on your flashdrive and bring to class to get credit. 8. Thursday(08/26): REVIEW III for Test on Ch.1. HW: Finish all handout assignments and study for Test. 9. Friday(08/27): TEST on Ch.1 - Introduction to Computer Science. HW: Go to web site for notes on Ch.2 - Overview of Java Programming. Very Important: If you have any questions or were absent from class, see me before school (8:00 - 8:30 AM), during Lunch, 7th period, or after school. Best to send an email to rpersin@fau.edu.
Website Notes for Ch.1 : Introduction to Computer Science. 1. Computer Science is one of the most dynamic job markets in America. It now rivals engineering both in number of jobs and pay. The scope of Computer Science goes beyond merely learning applications like word processing, spread sheets and presentation software. It focuses on the systems and programs behind the applications. 2. Computer science can be divided into roughly three areas: (a) Computer programming - How applications like word processors are written (b) Operating systems - How systems are set up to control computers, such as the Windows™ or Linux™ operating systems. (c) Networking - Issues concerning how computers are linked together including the Internet. 3. This course focuses mainly on Java computer programming at the Advanced Placement Computer Science level. Students will be required to take the AP Computer Science A test. If they pass they may receive college credit for one semester of computer science. 4. AP scores can also be a significant factor in scholarships and college entrance. For more information contact the American College Board. 5. Who Should Take this Class: Students with an interest in careers related to: the computer professions, engineering, math, science, or business. 6. As we start our study of developing algorithms, we consider one of the most fundamental problems facing any student of mathematics is finding a common divisor of two numbers or determining if two numbers are relatively prime. 7. Euclid's Algorithm provides us with the Greatest Common Divisor or GCD. This method is foolproof for any mechanical application of reducing a fraction. Here is an Example:Assume you wish to find the GCD of 2047 and 391. (a) Divide the larger by the smaller and note the remainder: 2047/391 = (391 X 5) + 92 (b) Divide the remainder (92) into the previous divisor (391): 391/92 = (92 X 4) + 23 (c) Repeat steps 1 and 2 until the remainder is 1 or zero. then Divide the remainder (23) into the previous divisor (92): 92/23 = (23 X 4) + 0 (d) When the remainder is zero the last divisor is the GCD! 23 X 89 =2047 and 23 X 17 = 391. Therefore 89/17 = 2047/391 (e) When the remainder is 1 the two numbers have NO common divisor and are relatively prime. Here is another one: Assume you wish to find the GCD of 8191 and 1023. 8191/1023 = (1023 X 8) + 7 1023/7 = (7 X 146) + 1 The remainder is 1 therefore these two numbers have NO common divisor! Another way to do this is to continue one more step until the remainder is zero: 7/1 = (1 X 7) + 0 then check the last divisor for 1. Either way the result is the same. 8. Base changing: To calculate a base change from base n to base 10:
e.g.:
9. To calculate a base change from base 10 to base n:
power greater than the (base 10) number
possible, incrementing that power's digit place each time you subtract
step until you're exhausted the remaining powers.
e.g.:
9. Java was created by Sun Computers and fortunately they have a number of free tutorials available. Go here to visit the Sun Java tutorial site. Be sure to read the sections called Getting Started and Learning the Java Language. 10. When you're ready to write a program go to the section which is called How to get Java up and running on your system.
Here is a sample:
public class test
Send an email to rpersin@fau.edu if you have questions.
|
|
|