This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Random; | |
import java.util.Scanner; | |
/*정다운 | |
주민등록번호 생성 프로그램*/ | |
public class MiniTest_4 { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
/*정다운 | |
놀이동산 입장권 계산 프로그램*/ | |
public class MiniTest_3 { | |
public static void main(String[] args) { | |
System.out.println("[입장권 계산]"); | |
Scanner sc = new Scanner(System.in); | |
int price; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class miniTest2 { | |
/*정다운*/ | |
//과제 2 결제 금액 캐시백 계산 프로그램 | |
public static void main (String[] args) { | |
Scanner sc = new Scanner(System.in); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Scanner; | |
public class miniTest2 { | |
/* | |
정다운 | |
과제 2 결제 금액 캐시백 계산 프로그램 | |
*/ | |
public static void main (String[] args) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class miniTest1 { | |
/* | |
정다운 | |
과제 1 구구단 출력 | |
*/ | |
public static void main (String[] args) { | |
System.out.println("[구구단 출력]"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
정다운 | |
깜짝과제 2번 | |
너무 어려웠습니다. 다른 분꺼 참고하면서 작성해봤는데, 자료상 첫 출에서 'public class FileUtils'를 쓰면 에러가 뜨네요. | |
'public'을 지우니까 괜찮았는데, 왜 문제가 생기는지 잘 모르겠습니다. | |
또, "String.charAt(index)"함수를 이용하라고 했는데, 문자열이 상당히 긴데, 이 함수를 어디에 어떻게 써야 할 지 모르겠습니다. | |
'toUpper'사용해서 for문 이용했는데, 정확한 답과 해설이 궁금합니다. | |
*/ | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
정다운 | |
깜짝과제 1번 | |
*/ | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
정다운 | |
깜짝과제 1번 | |
*/ | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { |