목차
[1번]
1.문제정의
2.분석
3.설계
4)소스코드
5.수행결과
[2번]
1.문제정의
2.분석
3.설계
4.소스코드
5.수행결과
1.문제정의
2.분석
3.설계
4)소스코드
5.수행결과
[2번]
1.문제정의
2.분석
3.설계
4.소스코드
5.수행결과
본문내용
rintf(\"Enter a 24-hour time: \");
scanf(\"%d %c %d\", &hour,&op,&minute);
time=(hour*60)+minute;
a=480-time;
b=583-time;
c=679-time;
d=767-time;
e=840-time;
f=945-time;
g=1140-time;
h=1305-time;
if(hour<10)
{
if (a<0)
printf(\"Closet departure time is 9:43 a.m.arriving at 11:52 a.m.\") ;
else
(a>b) ? printf(\"Closet departure time is 9:43 a.m.arriving at 11:52 a.m.\") :printf(\"Closet departure time is 8:00 a.m.arriving at 10:16 a.m.\");
}
if(hour>=10&&hour<13)
{
if(c<0)
printf(\"Closet departure time is 12:47 p.m.arriving at 3:00 p.m.\");
else
(c>d) ? printf(\"Closet departure time is 12:47 p.m.arriving at 3:00 p.m.\") :printf(\"Closet departure time is 11:19 a.m.arriving at 1:31 p.m.\");
}
if(hour>=13&&hour<16)
{
if(e<0)
printf(\"Closet departure time is 3:45 p.m.arriving at 5:55 p.m.\") ;
else
(e>f) ? printf(\"Closet departure time is 3:45 p.m.arriving at 5:55 p.m.\") :printf(\"Closet departure time is 2:00 p.m. arriving at 4:08 p.m.\");
}
if(hour>=16)
{
if(g<0)
printf(\"Closet departure time is 9:45 p.m.arriving at 11:58 p.m.\");
else
(g>h) ? printf(\"Closet departure time is 9:45 p.m.arriving at 11:58 p.m.\") :printf(\"Closet departure time is 7:00 p.m. arriving at 9:20 p.m.\");
}
return 0;
}
5.수행결과
scanf(\"%d %c %d\", &hour,&op,&minute);
time=(hour*60)+minute;
a=480-time;
b=583-time;
c=679-time;
d=767-time;
e=840-time;
f=945-time;
g=1140-time;
h=1305-time;
if(hour<10)
{
if (a<0)
printf(\"Closet departure time is 9:43 a.m.arriving at 11:52 a.m.\") ;
else
(a>b) ? printf(\"Closet departure time is 9:43 a.m.arriving at 11:52 a.m.\") :printf(\"Closet departure time is 8:00 a.m.arriving at 10:16 a.m.\");
}
if(hour>=10&&hour<13)
{
if(c<0)
printf(\"Closet departure time is 12:47 p.m.arriving at 3:00 p.m.\");
else
(c>d) ? printf(\"Closet departure time is 12:47 p.m.arriving at 3:00 p.m.\") :printf(\"Closet departure time is 11:19 a.m.arriving at 1:31 p.m.\");
}
if(hour>=13&&hour<16)
{
if(e<0)
printf(\"Closet departure time is 3:45 p.m.arriving at 5:55 p.m.\") ;
else
(e>f) ? printf(\"Closet departure time is 3:45 p.m.arriving at 5:55 p.m.\") :printf(\"Closet departure time is 2:00 p.m. arriving at 4:08 p.m.\");
}
if(hour>=16)
{
if(g<0)
printf(\"Closet departure time is 9:45 p.m.arriving at 11:58 p.m.\");
else
(g>h) ? printf(\"Closet departure time is 9:45 p.m.arriving at 11:58 p.m.\") :printf(\"Closet departure time is 7:00 p.m. arriving at 9:20 p.m.\");
}
return 0;
}
5.수행결과
추천자료
- [공학기술]물질분석실험 설계 (Synthesis and characterization of Tertronic-PCL copolymer)
- 단일사례설계 분석의 의의
- 사회복지조사방법론 단일사례조사설계 - 유래와 특성, 과정, 유형, 결과분석, 장단점
- [건축][건축 정의][건축 현실][건축 시공][건축 구조설계][건축 허가][건축 자재][건축 변화...
- 로열티 설계 원칙에 따라 경쟁사 로열티 비교 [온라인 쇼핑몰 옥션과 11번가 분석]
- 디지털신호처리 설계프로젝트 #1 - 신호처리 프로젝트 matlab을 이용한 음성신호 분석
- [음악][음악적발달특징][음악 설계형식][음악과 수학][음악과 인간][음악의 영향]음악의 정의...
- BCD - 7세그먼트를 이해&분석 한다. - 논리회로 설계
- [기계, 농업기계화, 건설기계, 기계제도, 기계설계, 기계공학, 기계시스템]기계와 농업기계화...
- [지식생산][지식][생산][지식생산 설계이슈][지식생산 식민성][지식생산 역사분야]지식생산의...
- [기계][기계과학공작][기계요소][기계가치][기계설계]기계와 기계과학공작, 기계와 기계요소,...
- [설계보고서] 03 필터회로 설계 (예비레포트) : Op-amp를 이용한 필터회로의 동작원리를 이해...
- (직윤) 직업과 윤리 - 커리어 로드맵 (자신에 대한 이해, 자기 진단 결과 분석, 직업정보탐색...
- 매스컴 연구방법론과학적 연구 과정연구의 목표연구가설설정연구설계측정방법 결정자료수집수...
소개글