Starting from:
$30

$24

Lab #2 Getting to know Everything Solution




This lab is meant to get you comfortable with everything we will be utilizing this semester. This lab is obviously undoable on your own outside of lab time so be sure to attend this week.




Overview




The &DW&RXUVHV system and Eclipse are two environments you need to get comfortable this semester. The people in the class are as important as any computer system you are going to be learning.




(Brainstorm) Brainstorming




What are the five questions you would ask someone in an interview?




Would it be different questions if they were your instructor or the TA?




What about in a casual conversation with a classmate?




(Discussion) In-class Discussion




We will go around the class and everyone say their name. Then you get to contribute one question to ask that is not already on the list as suggested by others in the class. If you do not have any original questions to contribute then you may answer any question on the list.




All about Another!




Now it is time to pair up and interview each other. If there is an odd number for the class then we can create a 3 people group and interview in a rotation.

Getting familiar with Eclipse




Starting Eclipse




Try to start Eclipse by memory so you don’t have to rely on instructions every week or when you’re working on your assignments at home. If you completely forgot then refer to lab1 or ask your neighbor. However, it would really behoove you to understand the basic steps and remember them/




Create another class




This time print out the information about the person you interviewed using a new class. Recall how to create one from first lab and create it in the same directory. You can name it however you think makes sense. Sample output looks like this:




Hi, I interviewed Daniel.




He likes to talk about everything.




This lab is easy.




I love Eclipse.




Minimum requirement is 2 print(s) and 2 println(s) in creating your output. Run this for TA before you leave class to show you got the new program working.




Importing a file




Download the file ImportTest.java from the lab2 assignment page into lab1 directory. (hint: under workspace) In Eclipse, right-click on the project name and select Refresh. This will update the project to include all the Java file you just place in the project directory. Now run it so you can see the output “I imported this file successfully”. Show the TA you got this working by putting the file in an appropriate place and running it.




You will be getting more files for future labs so this part is important for you to figure out and remember. Note: if you are using your own laptop then the place to put your file is slightly different (/src).

(Brainstorm) Level of Understanding




If I have the following line, what output would it produce? // System.out.println(“This is lab2”);



Is there a discernible output difference between the following two lines by themselves:



System.out.print(“This is output”);



System.out.println(“This is output”);



Is there a discernible output difference between the following two sets of lines:



System.out.print(“This is output”); System.out.println(“Is it really?”);



System.out.println(“This is output”); System.out.println(“Is it really?”);



You are free to run these in Eclipse and figure out the difference.




However, understanding WHY is more important than getting the right answer.




What to hand in




When you are done with this lab assignment, you are ready to submit your work.




Make sure you have done the following before you press Submit:




Include the information about your interviewee in D text ILOH.




Include answers from the Level of Understanding section in the VDPHtext ILOH Attach your new program file. (*.java)

More products