01. Python(Tip-calculator)
[toc] Tip-calculator Split the bill includuing tips!! # Tip_calculator Total_bill = float(input("What was the total bill? $")) Tip_per = int(input("What percentage tip would you like to give...
[toc] Tip-calculator Split the bill includuing tips!! # Tip_calculator Total_bill = float(input("What was the total bill? $")) Tip_per = int(input("What percentage tip would you like to give...
[toc] 메타 문자 정리 텍스트를 잘 다루기 위해서는 우선적으로 메타 문자에 대해 알아야한다. 헷갈리는 것이 많겠지만 실습을 통해 반복적으로 사용법을 익혀야함을 느낀다. 식 기능 설명 ^ 시작 ^Apple => 문장의 첫...
[toc] 구조체 실습 1. 구조체를 이용해 사람의 나이, 몸무게, 키를 입력받은 뒤 출력하시오. #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> struct Person{ int age1; int age2; double weight1; double weight2; doub...
[toc] C Programming 실습9 구조체 기본 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> struct Car{ int num; double gas; }; int main(void) { struct Car car1; car1.num = 10; car1.gas ...
[toc] 회로이론 실습 파이썬으로 OP Amp 가중치 덧셈 프로그램 코드 # 가중치 덧셈 프로그램 Rf = 1000 def Register(): Regs_num = int(input("how many Input Registers In a circuit ")) Regs_val = list(map(int, input("Type ...
[toc] 통계학 실습 석회황이 벌에게 미치는 효과 분산분석 보고서 R의 OrchardSprays는 8가지 농도(A > B > … > H)의 석회황유화액(lime surphur emulsion)을 자당 용액(sucrose solution)에 섞은 후, 농도별로 8개의 벌 방에 발랐다. 여기에 100마리 벌을 넣은 후 2시간 뒤, ...
[toc] C Programming 실습7 배열과 포인터 #define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> int main(void) { int test[5] = {80, 60, 55, 22, 75}; printf("test[0]의 값은 ...
[toc] C Programming 실습8 1번 문제 문자열의 길이를 검사하는 함수 int length(char str[])을 작성하시오. #define _CRT_SECURE_NO_WARINGS #include <stdio.h> int length(char str[]); int main(void) { char str[100]...
[toc] C Programming 실습6 Pointer 포인터 기초 #define _CRT_SECURE_NO_WARINGS #include <stdio.h> int main(void) { int a; a = 5; printf("변수 a의 값은 %d입니다.\n", a); printf("변수 a의 어드레스는 %...
[toc] C Programming 실습5 헤더파일 생성 후 불러와서 사용하기 헤더파일을 만들어서 제곱함수를 저장하고 호출하여 사용하기 myfunc C 파일 #include "myfunc.h" int power(int x, int y) { int pow = 1; for (int i = 1; i ...