This file contains 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
/* | |
* 제로베이스 백엔드 스쿨 15기 | |
* 한새롬 | |
* Mission 1 깜짝과제 3. 페이징 처리 | |
* | |
* 페이지네비게이션의 html 코드를 출력하는 페이지네비게이션을 구현해보세요. | |
* - 초기에 결정되는 값들은 | |
* - 전체 게시글 수 | |
* - 한 페이지당 보여지는 글의 수 | |
* - 페이지네비게이션에서 보여주는 블럭수 |
This file contains 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
/* | |
* 제로베이스 백엔드 스쿨 15기 | |
* 한새롬 | |
* Mission 1 깜짝과제 2. 가까운 좌표값 찾기 | |
* | |
* 다음 조건에 맞는 프로그램을 작성해 보세요. | |
* - 나의 좌표 값을 입력 받습니다. (입력은 순서대로 x값, y값을 받습니다.) | |
* - 이후, 임의의 좌표 값을 입력 받습니다.(역시, x값, y값을 입력 받습니다.) | |
* - 임의로 입력된 좌표 값 중 동일한 좌표 값을 입력하는 경우는 저장하지 않고 다시 입력하도록 합니다. | |
* - 입력 받은 값이 10개가 되는 경우, |
This file contains 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
/* | |
* 제로베이스 백엔드 스쿨 15기 | |
* 한새롬 | |
* Mission 1 깜짝과제 1. 자바 환경 정보 html 테이블구조로 출력하기 | |
* | |
* 자바의 시스템 속성과 파일 저장 코드는 샘플 코드를 참조해 주세요. | |
* 출력결과의 파일은 웹브라우저로 확인해서 정상적으로 표시되어야 합니다. | |
* html파일을 작성할 때 테이블에 라인이 표시되도록 head 태그에 style태그 추가(샘플 코드 참조) | |
*/ | |
import java.io.BufferedWriter; |
This file contains 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
/* | |
* 제로베이스 백엔드 스쿨 15기 | |
* 한새롬 | |
* 미니과제 8. 연소득 과세금액 계산 프로그램 | |
* | |
* Scanner의 입력함수와 조건문 및 반복문 과 배열, 함수를 통한 과세 로직 작성 | |
* 1. 연소득 금액 입력 | |
* 2. 주어진 종합소득세율표를 통한 조건 생성 | |
*/ |
This file contains 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
/* | |
* 제로베이스 백엔드 스쿨 15기 | |
* 한새롬 | |
* 미니과제 7. 로또당첨 프로그램 | |
* | |
* Scanner의 입력함수와 조건문 및 반복문과 배열을 통한 로또 당첨 로직 작성 | |
* 1. 로또 구매 수량 입력 | |
* 2. 입력한 개수만큼의 로또 개수 생성 | |
* 3. 로또 당첨 번호 생성(숫자값은 중복 배제 및 정렬해서 표시) | |
* 4. 당첨 번호와 구매 로또 비교하여 숫자 일치 여부 판단 |
This file contains 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
/* | |
* 제로베이스 백엔드 스쿨 15기 | |
* 한새롬 | |
* 미니과제 6. 가상 선거 및 당선 시뮬레이션 프로그램 | |
* | |
* 조건문 및 반복문과 배열(or 컬렉션)을 통한 당선 시뮬레이션 로직 작성 | |
* 전체 투표수와 후보자를 입력받아서 그 결과를 미리 확인 | |
* 1. 총 투표를 진행할 투표수를 입력 받음 | |
* 2. 선거를 진행할 후보자 수를 입력 받고, 이에 대한 이름을 입력 받음 | |
* 3. 각 입력받은 후보자는 순서대로 기호1, 기호2, 기호3… 형식으로 기호번호 부여함 |
This file contains 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
/* | |
* 제로베이스 백엔드 스쿨 15기 | |
* 한새롬 | |
* 미니과제 5. 달력 출력 프로그램 | |
* | |
* Scanner의 입력함수와 조건문 및 반복문을 통한 달력 계산 로직 작성 | |
* 1. 입력받은 년도와 월을 통한 달력 생성 | |
* 2. 입력값은 년도, 월을 입력 | |
* 3. 날짜는 LocalDate클래스를 이용(Calendar와 Date클래스도 이용 가능) | |
*/ |
This file contains 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
/* | |
* 제로베이스 백엔드 스쿨 15기 | |
* 한새롬 | |
* 미니과제 4. 주민등록번호 생성 프로그램 | |
* | |
* Scanner의 입력함수와 조건문 및 Random클래스를 통한 주민번호 생성 로직 작성 | |
* 1. 주민등록번호 생성 로직에 맞게 주민등록번호 생성 | |
* 2. 입력값은 생년, 월, 일, 성별과 임의의 번호를 통해서 생성 | |
* 3. 임의번호는 Random함수의 nextInt()함수를 통해서 생성 | |
* (임의 번호 범위는 1 ~ 999999사이의 값으로 설정) |
This file contains 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
/* | |
* 제로베이스 백엔드 스쿨 15기 | |
* 한새롬 | |
* 미니과제 3. 놀이동산 입장권 계산 프로그램 | |
* | |
* Scanner의 입력함수와 다중 조건문을 통한 입장권 계산 로직 작성 | |
* 1. 놀이공원 입장료를 구하는 조건에 맞게 로직 작성 | |
* 2. 입력내용은 나이, 입장시간, 국가유공자 여부, 복지카드 여부 순으로 입력 | |
* 놀이공원 입장료 할인은 일반 할인과 특별 할인이 있습니다. | |
조건은 아래와 같습니다. |
This file contains 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
/* | |
* 제로베이스 백엔드 스쿨 15기 | |
* 한새롬 | |
* 미니과제 2. 결제 금액 캐시백 계산 프로그램 | |
* | |
* Scanner의 입력함수와 조건문을 통한 캐시백 계산 로직 작성 | |
* 1. 주어진 캐시백 적립 조건에 맞게 캐시백 계산 | |
* 2. 결제 금액을 입력하면, 이에 대한 캐시백 계산 후 결과 출력 | |
* [캐시백 계산 조건] | |
- 결재 금액의 10%를 적립한다. |
NewerOlder