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
package org.devming.forth; | |
import java.util.ArrayList; | |
import java.util.Arrays; | |
import java.util.Random; | |
import java.util.Scanner; | |
import java.util.regex.Pattern; | |
public class 당선시뮬레이션프로그램 { | |
/* |
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
package org.devming.forth; | |
import java.time.LocalDate; | |
import java.util.ArrayList; | |
import java.util.Scanner; | |
public class 달력출력프로그램 { | |
/** | |
* BE_이민경 | |
*/ |
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 주민등록번호생성 { | |
// BE_이민경 | |
public static void main(String[] args) { | |
System.out.println("[주민등록번호 계산]"); | |
Scanner sc = new Scanner(System.in); | |
System.out.print("출생년도를 입력해 주세요.(yyyy):"); |
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 놀이동산입장권계산 { | |
public static void main(String[] args) { | |
System.out.println("[입장권 계산]"); | |
Scanner sc = new Scanner(System.in); | |
System.out.print("나이를 입력해 주세요.(숫자):"); | |
int age = sc.nextInt(); | |
System.out.print("입장시간을 입력해 주세요.(숫자입력):"); |
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 캐시백계산 { | |
public static void main(String[] args) { | |
System.out.println("[캐시백 계산]"); | |
Scanner sc = new Scanner(System.in); | |
System.out.print("결제 금액을 입력해 주세요.(금액):"); | |
int amt = sc.nextInt(); | |
int calcPoint = (int)Math.round(amt * 0.1); |
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 구구단출력하기 { | |
public static void main(String[] args) { | |
System.out.println("[구구단 출력]"); | |
for(int i = 1; i < 10; i++) { | |
for(int j = 1; j < 10; j++) { | |
String gugudan = String.format("%02d X %02d = %02d \t", j, i, i * j); | |
System.out.print(gugudan); | |
} | |
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
/* | |
BE_이민경 | |
깜짝과제2 : 알파벳 출현 빈도 개수 구하기 | |
*/ | |
package org.devming.first; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Path; |
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
/* | |
BE_이민경 | |
1. 깜짝과제1 : 수강 관리 프로그램 | |
*/ | |
package org.devming.first; | |
import java.util.Scanner; | |
public class 수강관리프로그램 { |