Archive for February, 2006

Chapter 5: Assignments

Monday, February 27th, 2006

Page 413, Problem #6

Page 413, Problem #7

ITSE 2317 Source Code

Tuesday, February 21st, 2006

I’ve created an area for you to download the in class examples.

http://crmacd.biz/classes_code/itse2317/ 

Chapter 5.1: Assignment

Monday, February 13th, 2006

Page 412, Problem #1

Test 1: Review Code

Monday, February 6th, 2006

public boolean isValidPhone(String sAreaCode, String sPrefix, String sSuffix)
{
return this.isValidPhonePart(sAreaCode,3) && this.isValidPhonePart(sSuffix,4);
}

public boolean isValidPhonePart(String sValue, int iLength)
{
for(int iCounter = 0; iCounter < sValue.length(); iCounter++)
{
switch(sValue.charAt(iCounter))
{
case ‘0′:
case ‘1′:
case ‘2′:

break;
default:
return false;
}
}
return (sValue.length() == iLength);
}


Bad Behavior has blocked 25 access attempts in the last 7 days.