CC-102 WorkText in Programming 2 - Loops, C++ Programs, PDF
Document Details
![EnviableAquamarine1459](https://quizgecko.com/images/avatars/avatar-5.webp)
Uploaded by EnviableAquamarine1459
Nueva Ecija University of Science and Technology
Rodibelle F. Leona
Tags
Summary
This document is a WorkText for Programming 2, focusing on fundamental concepts such as loops, arrays, and functions within the C++ programming language. It provides learning objectives, detailed explanations, sample programs, practice problems, and exercises to enhance understanding and application of these essential programming principles.
Full Transcript
0 UNIT 1. LOOPS Learning Objectives At the end of the unit, the students are able to: 1. identify the loop or repetition structure; 2. identify the different elements of the loop; 3. differentiate the increment and decrement operators; and 4. cre...
0 UNIT 1. LOOPS Learning Objectives At the end of the unit, the students are able to: 1. identify the loop or repetition structure; 2. identify the different elements of the loop; 3. differentiate the increment and decrement operators; and 4. create simple and complicated programs using loops. When writing C++ codes, there are times that you need to do a statement or a block of statements more than once, twice, 5 times, 10 times or even hundred of times. For example, you are asked to display your name and age on the screen 5 times, the following code will be part of your C++ program. cout