전체 글3 2023-08-31 #include #include #include void main(0 { int has[6] = {0,}; int n, i = 0; srand(time(NULL)); do{ i++; n = rand()%6 + 1; hist[___1___] +=1; }while(i 2023. 8. 31. 정보처리기사 프로그래밍 언어 문제__2017 2017__1회 Q1. 다음 JAVA 언어로 구현된 프로그램을 분석하여 그 실행 결과를 쓰시오. public class Test01 { public static void main(String[] args) { int [] a = {3, 4, 10, 2, 5}; int temp; for(int i =0; i max) { max = a[i]; } if (( ) < min) { min = a[i]; } } System.out.printf("%d\n", max); System.out.printf("%d\n", min); } } 더보기 a[i] Q3. 다음 C 언어로 구현된 프로그램을 분석하여 그 실행 결과를 쓰시오. #include int power(int data, int exp) { int i, result.. 2023. 4. 11. Bottom Navigation Bar 만들기 ---- 최종 결과 ---- 1. file > new > empty activity > name : Bottom Navigator 2. res > new > android Resource Directory 3. menu > new > menu Resource file 4. @drawable/ic ~~ 추가하는 방법 : drawable > new > Vector Asset > clip art 선택 후 원하는 icon 선택 가능 > name, color, size 등 선택 가능 >>>> next > finish > android:icon="@drawable/(지정 name)" 5. MainActivity.java package com.example.bottomnavigatoin; import androidx.. 2023. 4. 5. 이전 1 다음