The exception is if a ROTC course is cross-listed with some other regular academic course at Cornell. The courses used in this category cannot be used fulfill any other requirement for the CS major. Psych 101 could be used to fulfill 3 credits of Arts Electives, while Psych 347 could be used in a Psych Specialization. They should not be thought of as wasted credit hours. Your education is made up of many elements.
Some elements are graded and help to indicate progress in specific subject areas.
Other elements are not graded and do not show up on your transcript. Each element plays a role in the overall process, however. So too it is with extra courses. While they represent graded work on the transcript, their importance lies in the fact that they ARE a part of your overall education, and not whether they fulfill a specific requirement.