We have put into practice the flipped classroom as a way of utilizing e-learning contents in our computer-programming course since 2013. The main feature of this practice is to use most of the time usually dedicated to lecture for practicing by assigning the students the e-learning materials as preparation before the class. We gave the students homework to learn vocabularies and grammar of the C programming language. This decreased the time a teacher spent lecturing and the students were assigned applied-problems to make practical software in addition to conventional basic problems in training. Our goal is to maintain the students' motivation to learn the computer programming through the sense of accomplishment that each student obtains by finishing practical assignments in the training. We confirmed the effectiveness of this approach by comparing examination scores between last year and this year, and putting questionnaires to the students. Additionally, we analyzed the learning situation of the students who were week in programming. The results are shown in this paper.