monroe township high school township high school ap computer science a summer packet welcome to ap...

14
Monroe Township High School AP Computer Science A Summer Packet Welcome to AP Computer Science A for the 2017-2018 School Year! This course emphasizes object-oriented programming methodology with a concentration on problem solving and algorithm development, and is meant to be the equivalent of a first-semester college- level course in computer science. In AP Computer Science A we use the Java programming language. The course material will be presented at an accelerated pace with a rigorous workload. In order to be prepared for the course, you will need to complete a few summer assignments. Upon entering class on the first day, it will be expected that you have these assignments completed so that we may begin the course immediately. This packet will guide you through the summer assignments below and provide you with some additional resources as well. If you encounter any issues with the process, please e-mail me at [email protected]. If possible/necessary, attach any relevant screenshots that illustrate your error message(s). Summer Assignments 1. Install the Java SDK and IDE 2. Run and Test the Eclipse IDE 3. Create Quia Account and Enroll in Course Recommended Supplies for AP Computer Science A 1. Flash Drive – For file storage and transfer between home and school. 2. Barron’s AP Computer Science A, 7 th Edition – For concept reinforcement, practice exams, etc. Sample AP Computer Science A Questions For sample AP Computer Science A Questions, refer to the following pages of the College Board AP Computer Science A Course Description at: https://secure-media.collegeboard.org/digitalServices/pdf/ap/ap-computer-science-a-course-description-2014.pdf 1. Multiple Choice – pp. 19 - 43 2. Open Ended – pp. 44 - 60 Java (Beginner) Programming Tutorials https://www.youtube.com/playlist?list=PLFE2CE09D83EE3E28

Upload: hanga

Post on 05-Jul-2018

223 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Monroe Township High School Township High School AP Computer Science A Summer Packet Welcome to AP Computer Science A for the 2017-2018 School Year! This course emphasizes object-oriented

Monroe Township High School AP Computer Science A

Summer Packet Welcome to AP Computer Science A for the 2017-2018 School Year! This course emphasizes object-oriented programming methodology with a concentration on problem solving and algorithm development, and is meant to be the equivalent of a first-semester college-level course in computer science. In AP Computer Science A we use the Java programming language. The course material will be presented at an accelerated pace with a rigorous workload. In order to be prepared for the course, you will need to complete a few summer assignments. Upon entering class on the first day, it will be expected that you have these assignments completed so that we may begin the course immediately. This packet will guide you through the summer assignments below and provide you with some additional resources as well. If you encounter any issues with the process, please e-mail me at [email protected]. If possible/necessary, attach any relevant screenshots that illustrate your error message(s). Summer Assignments

1. Install the Java SDK and IDE 2. Run and Test the Eclipse IDE 3. Create Quia Account and Enroll in Course

Recommended Supplies for AP Computer Science A

1. Flash Drive – For file storage and transfer between home and school. 2. Barron’s AP Computer Science A, 7th Edition – For concept reinforcement, practice exams, etc.

Sample AP Computer Science A Questions For sample AP Computer Science A Questions, refer to the following pages of the College Board AP Computer Science A Course Description at: https://secure-media.collegeboard.org/digitalServices/pdf/ap/ap-computer-science-a-course-description-2014.pdf

1. Multiple Choice – pp. 19 - 43 2. Open Ended – pp. 44 - 60

Java (Beginner) Programming Tutorials https://www.youtube.com/playlist?list=PLFE2CE09D83EE3E28

Page 2: Monroe Township High School Township High School AP Computer Science A Summer Packet Welcome to AP Computer Science A for the 2017-2018 School Year! This course emphasizes object-oriented

Part I: Installing the Java SDK and IDE

1. Download and install the latest Java SE Development Kit from Oracle. a. Go to: http://www.oracle.com/technetwork/java/javase/downloads/index.html. Click on

the JDK DOWNLOAD button as shown below.

Page 3: Monroe Township High School Township High School AP Computer Science A Summer Packet Welcome to AP Computer Science A for the 2017-2018 School Year! This course emphasizes object-oriented

b. Select “Accept License Agreement” and Download the appropriate Java SE Development Kit for your operating system as shown below.

c. Run and install the downloaded Java SE Development Kit using all of the default installation options.

Page 4: Monroe Township High School Township High School AP Computer Science A Summer Packet Welcome to AP Computer Science A for the 2017-2018 School Year! This course emphasizes object-oriented

2. Download and install the Eclipse IDE. a. Go to: http://www.eclipse.org. Click on the DOWNLOAD button as shown below.

b. Download the appropriate Eclipse IDE for Java Developers for your operating system as shown below.

Page 5: Monroe Township High School Township High School AP Computer Science A Summer Packet Welcome to AP Computer Science A for the 2017-2018 School Year! This course emphasizes object-oriented

c. When your download is complete, locate and extract the ZIP file on your hard drive. For Windows users, right click on the file and select Extract All…. For Mac users, simply double-click on the file to extract.

d. From the extracted ZIP folder, move the eclipse folder to a convenient location. For

Windows users, I suggest moving the folder to C:\eclipse. For Mac users, I suggest moving the folder to Applications.

Page 6: Monroe Township High School Township High School AP Computer Science A Summer Packet Welcome to AP Computer Science A for the 2017-2018 School Year! This course emphasizes object-oriented

Part II: Running and Testing the Eclipse IDE

1. Run eclipse by double-clicking on the eclipse executable file in the eclipse folder.

2. If eclipse is able to successfully load, you will be prompted with the Workspace Launcher as shown below. Your Workspace is where eclipse will save your projects, files, etc. Unless you have a solid understanding of your computer’s file structure, I would leave this at its default path. If you don’t want to be prompted for your workspace in the future, you may select the “Use this as the default and do not ask again” option at the bottom left of the Workspace Launcher. If you select this option, you are still able to change the Workspace in the future from the eclipse menu. Finish the Workspace Launcher by clicking the OK button.

Page 7: Monroe Township High School Township High School AP Computer Science A Summer Packet Welcome to AP Computer Science A for the 2017-2018 School Year! This course emphasizes object-oriented

3. You will now be brought to the Eclipse IDE for Java Developers Welcome screen. Click on the Workbench icon at the top right as shown below.

4. In the Eclipse Workspace, create a new project by selecting File New Java Project from the menu as shown below.

Page 8: Monroe Township High School Township High School AP Computer Science A Summer Packet Welcome to AP Computer Science A for the 2017-2018 School Year! This course emphasizes object-oriented

5. You are now prompted with the New Java Project window as shown below. For the Project name, enter the text Test as shown below. Then click the Finish button as shown below to create a New Java Project named Test.

6. You will now see your Java Project, Test, in the Package Explorer located on the left side of the Eclipse IDE as shown below. You can expand the project to see the src and JRE System Library.

Page 9: Monroe Township High School Township High School AP Computer Science A Summer Packet Welcome to AP Computer Science A for the 2017-2018 School Year! This course emphasizes object-oriented

7. Right-click on the src folder of your Test Java Project in the package explorer as shown below. Select New Class as shown below.

8. You are now prompted with the New Java Class window as shown below. For the Name, enter the text Test as shown below. Then click the Finish button as shown below to create a New Java Class file named Test.

Page 10: Monroe Township High School Township High School AP Computer Science A Summer Packet Welcome to AP Computer Science A for the 2017-2018 School Year! This course emphasizes object-oriented

9. You will now see your Java Class file, Test, in the src folder of your Test project in the Package Explorer as shown below. You will additionally see the Test.java tab in the Code Editor portion of Eclipse with the header pre-coded as shown below. All Java files we create and use in the course are called Class files and have the extension .java.

10. Complete the Test.java file by typing in the code exactly as shown below. Press Save.

Page 11: Monroe Township High School Township High School AP Computer Science A Summer Packet Welcome to AP Computer Science A for the 2017-2018 School Year! This course emphasizes object-oriented

11. Run your Java application by clicking the green play button as shown below. If necessary, select run as Java Application. You should see the appropriate output in the console window of Eclipse as shown below.

12. You have successfully installed and tested your Java SDK and Eclipse IDE!

Page 12: Monroe Township High School Township High School AP Computer Science A Summer Packet Welcome to AP Computer Science A for the 2017-2018 School Year! This course emphasizes object-oriented

Part III: Creating a Quia Account and Enrolling in the Course

1. Go to the Quia website at http://www.quia.com/web.

2. Click the area labeled Students as shown below.

Page 13: Monroe Township High School Township High School AP Computer Science A Summer Packet Welcome to AP Computer Science A for the 2017-2018 School Year! This course emphasizes object-oriented

3. Click the link Create my free account as shown below. If you already have an account, login on the left side.

4. Select Student as the account type and complete the form. When you are done, press the Create my account button.

Page 14: Monroe Township High School Township High School AP Computer Science A Summer Packet Welcome to AP Computer Science A for the 2017-2018 School Year! This course emphasizes object-oriented

5. Upon creating your account you should now be in the Student Zone. Type in the class code XTAJN467 in the text field and press the Add class button as shown below.

6. You’re Done! You should be on the page below. Please remember your e-mail address, username and password for Quia!