Activity_06 - COMP 1210 Activity 6: Conditionals and Loops...

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

View Full Document Right Arrow Icon
COMP 1210 Activity 6: Conditionals and Loops II Page 1 of 3 COMP 1210 | Spring 2012 1 of 3 Due: Activity (in-lab): Monday, February 27, 2012 by the end of lab Goals: By the end of this activity you should be able to do the following: Understand the basics of the ternery conditional operator Understand the basics of the for loop and the do-while loop Description: In this activity you will create two classes. Temperatures will hold a set of integer values representing daily temperatures. TemperatureInfo will allow users to interact with the Temperatures class. Directions: Part 1: Temperatures: Method Stubs Create a class called Temperatures, which will hold a set of integer values representing daily temperatures. Add method stubs for the following methods . o The constructor takes an ArrayList of integer values o getLowTemp: takes no parameters; returns an integer value o getHighTemp: takes no parameters; returns an integer value o lowerMinimum: takes an int parameter; returns an integer value
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 03/02/2012 for the course COMP 1210 taught by Professor Cross during the Winter '07 term at Auburn University.

Page1 / 3

Activity_06 - COMP 1210 Activity 6: Conditionals and Loops...

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