목록Programming Language (136)
091
01. SPI(Serial Peripheral Interface) & RFID(Radio Frequency Identification) - SPI란 마이크로컨트롤러와 센서, 디스플레이, RFID 사이에서 빠르고 간단하게 데이터를 주고 받기 위한 통신 규격(프로토콜)으로, 선이 많이 필요한 특징을 가지고 있습니다. 클럭 기반 동기식이며, 마스터가 모든 것을 주도합니다.• 마스터-슬레이브 : 마스터란 통신을 제어하는 주인 장치를 의미하며, ESP32나 아두이노가 이 역할을 합니다. 클럭을 생성하고 어떤 슬레이브와 통신할지 선택합니다. 슬레이브란 명령을 기다리고 응답하는 장치로 센서, 디스플레이, RFID 등이 이 역할을 합니다.• SPI의 기본 핀은 MOSI(Master Out Slave In, 마스터가 보..
01. 상단 네비게이션 바 - index.php Home FAQ 한국어 English Guest Reservation Search Login Mypage"; } else { echo "" . htmlspecialchars($_SESSION['username']) ."님 "; echo "Logout Mypage"; } ?>//------------------------------------------------------------------- ... 를 이용하여 코드를 작성해줍니다. 로그인 여부에 따라 상단에 보여질 네비게이션이 다릅니다.1️..
01. CSV 파일을 브라우저에 올리고 서버에 파일 업로드하기 Display a CSV file on the screen The file has been successfully uploaded to " . htmlspecialchars($target_file) . ""; } else { echo "Failed to upload the file."; } } else { echo "An error occurred during the file upload."; } // CSV 파일 내용 출력 if (isset($target_file) && (str_contains($file_type, ..
🔍C#: CS_206 . 입력된 문자열이 주어진 문자열 리터럴 dreams에 몇 번 포함되어 있는지 출력하시오. 1. 문제 정답using System;namespace CS_206{ class CS_206{ const string dreams = "There are moments in life when you miss someone so much that " + "you just want to pick them from your dreams and hug them for real! Dream what " + "you want to dream;go where you want to go;be what you want to be,because you have " ..
🔍C#: CS_205 . 입력 두 값의 최대공약수를 구하시오. 두 값이 0 미만 100 초과인 경우 error를 출력하시오. 1. 문제 정답using System;namespace CS_205 { class CS_205 { static void Main(string[] args){ int input1 = int.TryParse(Console.ReadLine(), out int num) && num > -1 && num -1 && num 0; n--){ if(max % n == 0){ if(min % n == 0){ value = n; ..
🔍C#: CS_204 . 입력된 두 값 사이 값들 중 소수(1와 자기자신만을 인수로 갖는 수)만을 출력하시오. 입력된 두 값이 1미만 100 초과일 경우에는 error를 출력하시오. 1. 문제 정답using System;namespace CS_204 { class CS_204 { static void Main(string[] args){ int start = int.TryParse(Console.ReadLine(), out int num1) && num1 > 0 && num1 0 && num2 2) break; } if(count == 2) Console.WriteLine(n); ..
01. CSV 파일을 브라우저에 올리고 새로운 파일 만들기 : 통과를 실패한 학생들을 모아둔 파일 다운받기 Display a CSV file on the screen and write rows that meet a condition to a separate file. Upload CSV File Content : "; echo ""; if(($handle = fopen($tmp_name, "r")) !== false && ($new_handle = fopen($new_file, "w")) !== false) { while(($data = fgetcsv($handle)) !== false) ..
01. CSV 파일을 브라우저에 올리고 삭제하기 -> 파일을 브라우저에 저장하는 건 아님 Display a CSV file on the screen and delete it Upload Delete CSV 파일 내용 : "; echo ""; if(($handle = fopen($tmp_name, "r")) !== false) { while(($data = fgetcsv($handle)) !== false) { echo ""; foreach($data as $cell) { ..