CSE Seminar

Problem-Solving with a Nested Loop in an Introductory Programming Course

William CrumContinuing LecturerPurdue University

My presentation will be part of a sample lecture given in my large-lecture introductory C programming course. I will begin with announcements that are typically found at the start of each lecture, continue with a few sample lecture quiz questions, and then proceed with the subject matter. This particular lecture is one at the end of the chapter on repetition and demonstrates my solution to the following problem: Given an integer, rearrange the digits to make the largest possible value. At this point in the term the students would not have yet been exposed to the concept of arrays. My solution to this problem does include a structure chart, flow charts for several of the tasks, and the final code.

Sponsored by