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; | |
| /* | |
| * 작성자: 함지희 | |
| * 백엔드 스쿨 1주차 미니과제 8번 | |
| * */ | |
| public class Q8_Tax { | |
| public static void main(String[] args) { | |
| System.out.println("[과세금액 계산 프로그램]"); | |
| Scanner in = 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.Arrays; | |
| import java.util.Random; | |
| import java.util.Scanner; | |
| /* | |
| * 작성자: 함지희 | |
| * 백엔드 스쿨 1주차 미니과제 7번 | |
| * */ | |
| public class Q7_Lotto { | |
| 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; | |
| /* | |
| * 작성자: 함지희 | |
| * 백엔드 스쿨 1주차 미니과제 6번 | |
| * */ | |
| public class Q6_ElectionSimulator { | |
| public static void main(String[] args) { | |
| Scanner in = 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.time.LocalDate; | |
| import java.util.Scanner; | |
| /* | |
| * 작성자: 함지희 | |
| * 백엔드 스쿨 1주차 미니과제 5번 | |
| * */ | |
| public class Q5_Calendar { | |
| 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; | |
| /* | |
| * 작성자: 함지희 | |
| * 백엔드 스쿨 1주차 미니과제 4번 | |
| * */ | |
| public class Q4_RRN { | |
| static final int MALE_NUM = 3; | |
| static final int FEMALE_NUM = 4; |
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; | |
| /* | |
| * 작성자: 함지희 | |
| * 백엔드 스쿨 1주차 미니과제 3번 | |
| * */ | |
| public class Q3_Ticket { | |
| static final int BASIC_PRICE = 10000; | |
| static final int NORMAL_DISCOUNT_PRICE = 8000; | |
| static final int SPECIAL_DISCOUNT_PRICE = 4000; |
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; | |
| /* | |
| * 작성자: 함지희 | |
| * 백엔드 스쿨 1주차 미니과제 2번 | |
| * */ | |
| public class Q2_Cashback { | |
| static final int MAX_CASHBACK = 300; | |
| static final double POINT_RATE = 0.1; | |
| 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주차 미니과제 1번 | |
| * */ | |
| public class Q1_gugudan { | |
| public static void main(String[] args) { | |
| System.out.println("[구구단 출력]"); | |
| for(int i = 1; i <= 9; i++) { | |
| for(int j = 1; j <= 9; j++) { | |
| System.out.print(String.format("%02d x %02d = %02d\t", j, i, j * i)); |
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.StringJoiner; | |
| /* | |
| * 작성자: 함지희 | |
| * 백엔드 스쿨 Mission1 깜짝과제 3번 | |
| * */ | |
| public class Pager { | |
| long totalPost; | |
| long postNumPerPage; | |
| long blockNum; |
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.ArrayList; | |
| import java.util.Scanner; | |
| /* | |
| * 작성자: 함지희 | |
| * 백엔드 스쿨 Mission1 깜짝과제 2번 | |
| * */ | |
| public class NearCoordinate { | |
| public static void main(String[] args) { | |
| Scanner in = new Scanner(System.in); |
NewerOlder