[1] 授業単元: ファイル入出力
[2] 問題文(含コード&リンク):
ファイルを読み込んで,ファイル中の英小文字を英大文字に,英大文字を英小文字に変換してファイルに書き出すプログラムを作成せよ.
$ cat sample.txt
1. Software Engineering

Based on the tenets of software engineering and computing science,
the Department of Software Engineering provides students with
a comprehensive grounding in software development and information
processing. As society becomes increasingly dependent on various
... 略 ...

$ 実行例
入力ファイル名 > sample.txt
出力ファイル名 > sample-out.txt
$ cat sample-out.txt
1. sOFTWARE eNGINEERING

bASED ON THE TENETS OF SOFTWARE ENGINEERING AND COMPUTING SCIENCE,
THE dEPARTMENT OF sOFTWARE eNGINEERING PROVIDES STUDENTS WITH
A COMPREHENSIVE GROUNDING IN SOFTWARE DEVELOPMENT AND INFORMATION
PROCESSING. aS SOCIETY BECOMES INCREASINGLY DEPENDENT ON VARIOUS
... 略 ...
[3] 環境
 [3.1] OS: Linux
 [3.2] コンパイラ名とバージョン: gcc
 [3.3] 言語: C
[4] 期限: 明日まで