1. 아래코드를 보고 39 페이지 문제 처럼 각행의 의미가 어떻게 되는지 적어보기.
//********************************************************************
// Addition.java Author: Lewis/Loftus
// Demonstrates the difference between the addition and string
// concatenation operators.
//********************************************************************
public class Addition
{
//-----------------------------------------------------------------
// Concatenates and adds two numbers and prints the results.
//-----------------------------------------------------------------
public static void main (String[] args)
{
int a=10, b=3,c;
(double) c=a/b;
System.out.print(c);
}
}
//********************************************************************
// Age.java Author: Lewis/Loftus
// Demonstrates the use of an if statement.
//********************************************************************
import java.util.Scanner;
public class Age
{
//-----------------------------------------------------------------
// Reads the user's age and prints comments accordingly.
//-----------------------------------------------------------------
public static void main (String[] args)
{
final int MINOR = 21;
Scanner scan = new Scanner (System.in);
System.out.print ("Enter your age: ");
int age = scan.nextInt();
System.out.println ("You entered: " + age);
if (age < MINOR)
System.out.println ("Youth is a wonderful thing. Enjoy.");
System.out.println ("Age is a state of mind.");
}
}
2. 48page 돌려보고 , 문제가 있는지 확인하고 그문제를 고칠수있는 방법으로 코딩 해오기
(수정된코드표시+결과화면)
3.54,55,58 page 책이 지시하는데로 풀어오기! (완성된 코드를 정리해주세요)
4.76,77,78,79 page 책이 지시하는데로 풀어오기.
위 1,2,3,4 번은 손으로 적어서 풀어도 좋구요 ^^ ㅋㅋㅋ
한글이나 MS같은데다가 풀어논 것을 정리해도 좋구요 <-- 이것을 더 선호함 ㅋㅋ
어쩃든 금요일 만나기 전까지 메일을 보내던 직접가져오던 해오면 되는 겁니다.
금요일 1시에 봐용 ㅋ