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 Main{ | |
static final int[] TAX_BRACKETS = {12000000, 46000000, 88000000, 150000000, 300000000, 500000000, 1000000000}; //과세 구간별 기준 | |
static final double[] TAX_RATES = {0.06, 0.15, 0.24, 0.35, 0.38, 0.40, 0.42, 0.45}; //구간별 세율 | |
static final int[] DEDUCTIONS = {0, 1080000, 5220000, 14900000, 19400000, 25400000, 35400000, 65400000}; //공제액 | |
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
//노재경 | |
import java.util.Random; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner sc = new Scanner(System.in); | |
// 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
import java.util.*; | |
import java.io.*; | |
public class Main { | |
public static void main(String[] args) throws IOException { | |
Scanner scanner = new Scanner(System.in); | |
Random random = new Random(); | |
int numVote = getPositiveInt(scanner, "총 진행할 투표수를 입력해 주세요: "); |
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.time.LocalDate; | |
import java.util.InputMismatchException; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
int year = getInput("달력의 년도를 입력해 주세요.(yyyy): ", 0, Integer.MAX_VALUE); |
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; | |
import java.util.Random; | |
public class Main { | |
public static void main(String[] args) { | |
Scanner scanner = new Scanner(System.in); | |
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
노재경 | |
import java.text.NumberFormat; | |
import java.util.Scanner; | |
public class Main { | |
public static void main(String[] args) { | |
final int FREE = 0; | |
final int CHILD_DISCOUNT = 4000; | |
final int SPECIAL_DISCOUNT = 8000; | |
final int FULL_PRICE = 10000; |
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 pandas as pd | |
import re | |
import os | |
import xml.etree.ElementTree as ET | |
from urllib.request import urlopen | |
from tqdm import trange | |
# 디렉토리 생성(없으면) | |
output_dir = '법령별 csv 저장' | |
if not os.path.exists(output_dir): |
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 Main { | |
public static void main(String[] args) { | |
boolean flag = true; | |
Scanner scanner = new Scanner(System.in); | |
while (flag) { | |
System.out.println("[캐시백 계산]"); | |
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
//노재경 | |
public class Main { | |
private static final int START = 1; // 구구단 시작 단 | |
private static final int END = 9; // 구구단 끝 단 | |
public static void main(String[] args) { | |
System.out.println("[구구단 출력]"); | |
printGugudan(START, END); | |
} |
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.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
import java.util.HashMap; | |
import java.util.List; | |
public class Main { |
NewerOlder