본문 바로가기
반응형

전체 글254

2020년 정보처리기사 실기 3회 프로그래밍 문제 모음 // 2020년 3회 2번 문제 C언어 #include void main() { int c=0; int i=0; while(i 자바 public class Main { public static void main(String[] args) { int c = 0; int i = 0; while (i 파이썬 c = 0 i = 0 while i name) + 1); strcpy(result, "vehicle name: "); strcat(result, self->name); return result;} void set_name(Vehicle *self, char *val) { self->name = val;} typedef struct { Vehicle base;} Car; char *get_car_name(c.. 2023. 7. 4.
2020년 정보처리기사 실기 2회 프로그래밍 문제 모음 # 2020년 2회 2번 문제 파이썬 >>> asia={"한국", "중국", "일본"} >>> asia.add("베트남") >>> asia.add("중국") >>> asia.remove("일본") >>> asia.update(["홍콩", "한국", "태국"]) >>> print(asia) cs // 2020년 2회 5번 문제 자바 class Parent { void show() { System.out.println("Parent"); } } class Child extends Parent { void show() { System.out.println("Child"); } } public class Exam { public static void main(String[] args) { Parent pa = .. 2023. 7. 4.
2020년 정보처리기사 실기 1회 프로그래밍 문제 모음 // 2020년 1회 17번 문제 C언어 #include void align(int a[ ]) { int temp; for (int i = 0; i 자바 public class Main { public static void main(String[] args) { int c = 1; int caseNum = 3; switch (caseNum) { case 1: c += 3; case 2: c++; case 3: c = 0; case 4: c += 3; case 5: c -= 10; default: c--; } System.out.println(c); } } // 2020년 1회 18번 문제 C언어 -> 파이썬 c = 1 case = 3 if case == 1: c += 3 if case in [1, 2]:.. 2023. 7. 4.
HTML5 - 박스 클릭 시 색상 및 A,B,C 순으로 변경 - jquery A 박스 색상 및 문자 변경 .box { width: 50px; height: 50px; background-color: red; display: flex; justify-content: center; align-items: center; font-weight: bold; cursor: pointer; } A /* 클릭 이벤트를 처리하는 함수 */ function toggleBox() { // 현재 박스의 문자 값을 가져옵니다. const currentLetter = $('#letter').text(); // 박스의 스타일을 변경하기 위해 박스 요소의 참조를 가져옵니다. const box = $('#box'); if (currentLetter === 'A') { $('#letter').text('B');.. 2023. 7. 4.
HTML5 - 박스 클릭 시 색상 및 A,B,C 순으로 변경 - javascript A 박스 색상 및 문자 변경 .box { width: 50px; height: 50px; background-color: red; display: flex; justify-content: center; align-items: center; font-weight: bold; cursor: pointer; } A /* 클릭 이벤트를 처리하는 함수 */ function toggleBox() { // 마우스 클릭시 if, else if, else 순으로 작동 // 현재 박스의 문자 값을 가져옵니다. const currentLetter = document.getElementById('letter').textContent; // 박스의 스타일을 변경하기 위해 박스 요소의 참조를 가져옵니다. const box = d.. 2023. 7. 4.
HTML5 - 두개의 값을 받아 jquery로 사칙 연산 더하기 빼기 곱하기 나누기 계산 jQuery 사칙연산 더하기 빼기 곱하기 나누기 계산 $('#calculate-button').click(function() { var num1 = parseInt($('#num1').val()); var num2 = parseInt($('#num2').val()); var operation = $('#operation').val(); var answer; switch (operation) { case 'add': answer = num1 + num2; break; case 'subtract': answer = num1 - num2; break; case 'multiply': answer = num1 * num2; break; case 'divide': answer = n.. 2023. 7. 4.
HTML5 - 두개의 값을 받아 javascript로 사칙 연산 더하기 빼기 곱하기 나누기 계산 자바스크립트 사칙연산 더하기 빼기 곱하기 나누기 계산 function javascriptCalculation() { var num1 = parseInt(document.getElementById('num1').value); var num2 = parseInt(document.getElementById('num2').value); var operation = document.getElementById('operation').value; var answer; switch (operation) { case 'add': answer = num1 + num2; break; case 'subtract': answer = num1 - num2; break; case 'multiply'.. 2023. 7. 4.
HTML5 - CSS, JAVASCRIPT, JQUERY 에서 Hello World 출력 방법 모음 /* CSS */ #text2 { /*Hello world!_2*/ color: black; } #text3 { /*Hello world!_3*/ /*JAVASCRIPT*/ color: red; } #text4 { /*Hello world!_4*/ /*JQUERY*/ color: blue; } Hello World!_1 Hello World!_2 Hello World_5 document.getElementById('text3').innerHTML = 'Hello World!_3'; // Hello World!_3 $(document).ready(function () { // Hello World!_4 // JQUERY $('#text4').text('Hello World!_4'); }); $(docume.. 2023. 7. 3.
인공지능(AI)은 어느 정도 발전 되었을 때 가장 위험할까? 현재까지는 위협적이지 않다라는 생각이다. 예술적으로 보더라도 기존 데이터셋을 이용해서 생산에 가까운 이미지를 생산 한다고 한다면 향후 나중에 그게 얼마나 걸릴지 모르지만 만약 뒤샹 같이 내가 질문한것에 답을 하는게 아니라 되려 질문을 하거나 질문을 하게끔 유도 한다면 꽤 무서워질것 같다. 2023 Generative AI Asia 요약 영상에 의하면 10-15년 주기로 찾아오는 기술 혁신 주기라고 하는 1984년 매킨토시 1993 www 웹 2007 아이폰1 2023 ChatGTP 라고 하는데 그런데 인공지능은 또다른 사피엔스를 찾은게 아닐까? 이말은 인간에 가까운 지능을 가진 AI가 향후 인간에게 어떤 질문을 할지 궁금해 진다. 2023. 7. 3.
반응형