lab1(spring09)

lab1(spring09) - Name Lab Section(circle one M T W Th F CS...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Name________________________________ Lab Section (circle one): M T W Th F CS 240 Laboratory Exercise 1 The purpose of this laboratory is to familiarize you with some of the basic syntax of Java. Due date/time: 12:00 noon on Friday, April 10. Turn them in to your lab TA in person; if that is not possible, leave them with the receptionist in the CS department office (303 Russ). What to turn in: This paper and printouts from exercises 2 and 3. Please staple together with this paper on top. Exercise 1. Circle all of the legal Java identifier names given below: totalWeight miles_per_hour 2ndPlace sum All TRUE $_real int perimeter o.k. _12_inches It’s number3 MAIN false PI_3.14156 class Exercise 2. Write a Java program that does the following: 1) declares three integer variables; (2) gets values for each variable from the user; (3) displays the sum and average of the numbers. Use comments for each section of your code (input, processing, output). Your program run should look similar to that shown below:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/03/2010 for the course CS 240 taught by Professor Staff during the Spring '08 term at Wright State.

Page1 / 3

lab1(spring09) - Name Lab Section(circle one M T W Th F CS...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online