f11csc210-hw1-v2.1

f11csc210-hw1-v2.1 - CSC 210.03/210.04 Fall 2011...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: CSC 210.03/210.04 Fall 2011 Instructor: Marc Sosnick Homework 1 (10 points) Due: Before midnight, Friday, September 2, 2011. Description: In this assignment, you will be: A. Installing the NetBeans IDE B. Writing your first Java program C. Cutting ­and ­pasting your program Source Code D. Cutting ­and ­pasting your program Output Submission: Submit a PDF of your source code and “Hello World!” program output. For credit, be sure the following appears at the top of the document: • Your Name • Your SFSU email address • Date • Class and Section • Assignment Make sure that your program output is in a fixed ­width font, such as Courier. Submit your PDF on iLearn. Assignment Details A. Install NetBeans 1) Open a browser and browse to netbeans.org 2) Click the (see Figure 1). button. This will take you to a new page 3) The correct platform should automatically be selected (see Figure 1), but check to make sure it is correct. 4) If you are using Mac, skip to step 10 (page 2). 1 Windows and Linux Users 5) For Windows and Linux users, click on the “JDK with NetBeans IDE Java SE bundle” (see Figure 1) link a little more than half way down the left ­ hand side of the page. 6) On the screen that follows, first, click on Accept License Agreement (see Figure 2). 7) Click on the jdk ­6u27 ­nb ­7_0_1 ­windows ­ml.exe link (see Figure 2), which will begin downloading NetBeans. 8) Once you have downloaded the file, follow the instructions particular to your operating system to complete installation. It is recommended that you use the default settings. 9) Windows and Linux users continue at step 12 (page 4) Mac Users 10)Click on the Download button at the bottom of the “Java SE” column (see Figure 1). 11) Follow the instructions to complete installation of the program. It is recommended that you use the default settings. Continue at step 12 (page 4). 2 Figure 1. Be sure to choose the correct platform. Windows and Linux users should download the JDK & NetBeans bundle. Figure 2. Windows users only: first click Accept License Agreement, and then click on the indicated link. Linux users click Accept License Agreement, and then click the link next to Linux. 3 B. Writing your first Java Program 12. Browse to http://netbeans.org/kb/docs/java/quickstart.html, and follow the tutorial, up to but not including the “Building and Deploying your Application” section. 13. In the header comment section replace the “To change this template…” with your name, class, and assignment number. C. Cut ­and ­paste your program source code 14. To create your PDF file, you will have to cut ­and ­paste your program source code and output to a text editor (e.g. Word, Google Docs). Start by opening a new document in your text editor, and typing in your name, SFSU email address, the date, your class and section, and the assignment. To cut ­and ­paste your source code, place your cursor in the NetBeans editor window (remember to left ­click in the window), select all of the output (⌘+a on a Mac, ctrl+a on a PC), and copy it to the clipboard (⌘+c on a Mac, ctrl+c on a PC). Place your cursor in your text editor below the information you just entered, and paste the contents of the clipboard (⌘-v on a Mac, ctrl-v on a PC). D. Cut ­and ­paste your program output 15. Following the directions from the above tutorial, run your program. Then place your cursor in the output window, select all of the output (⌘+a on a Mac, ctrl+a on a PC), and copy it to the clipboard (⌘+c on a Mac, ctrl+c on a PC). Place your cursor in your text editor below the source code from the previous step, and paste the contents of the clipboard (⌘-v on a Mac, ctrl-v on a PC). At this point, you may need to change the font to a fixed ­width font in your text editor. In the text editor document, select all (⌘+a on a Mac, ctrl+a on a PC), then set the correct font (e.g. Courier). 16. Save your document, then save the contents of the file to your computer as a PDF file (see HW0). Be sure to name your file using the following convention: first_name-last_name-csc210-hw1.pdf So, for example, if I was saving my program, the filename would be: marc-sosnick-csc210-hw1.pdf 17. Upload the file to iLearn. V2.1 082911 4 ...
View Full Document

This note was uploaded on 10/16/2011 for the course CSC 210 taught by Professor Staff during the Spring '11 term at S.F. State.

Ask a homework question - tutors are online