Comp 110 – Intro to Programming

University of North Carolina at Chapel Hill

Program One

Hello Out There

  • Assigned: Wed, 1 / 9
  • Due: Wed, 1 / 16, at the start of class. If you run into difficulties or add the course late, late assignments will be accepted.

Description

First you must install Java and Eclipse. See the links on the course home page.

Run Eclipse, create a new Java Project, and type in the Sample Java Program from Listing 1.1 in our textbook. The program starts with "import java.util.Scanner;" and continues through the last brace, }, before the highlighted section titled 'Sample Screen Output.' Type in just the text itself and not the comments in the shaded boxes. If you don't yet have the textbook, here is a screen shot showing Listing 1.1 in Eclipse.

Requirements

Use Eclipse to print out the Sample Java Program. Print out the Java code (do not print program output from the console window). Print your name, course and lab section (or meeting time) on it and turn it in.

Objectives

Get started leaning to use Eclipse. Find out how and where to print.

Note that late assignments will be accepted if you add this course late or if you encounter difficulties with your laptop or the installation of the software tools, Java and Eclipse, or with printing.