lab3.docx - FAKULTI TEKNOLOGI KEJURUTERAAN ELEKTRIK DAN...

This preview shows page 1 - 4 out of 11 pages.

COMPUTER PROGRAMMING BEEA1343 SEMESTER 2 SESI 2018/2019 LAB 3: PRACTICE USING LOOPS NO . STUDENTS' NAME MATRIC. NO. 1. LEE SHI YING B091810090 2. 3. PROGRAMME BMMD SECTION / GROUP 1/1 DATE 22/03/2019 NAME OF INSTRUCTOR(S) 1. DAYANASARI BINTI ABDUL HADI 2. EXAMINER’S COMMENT(S) TOTAL MARKS FAKULTI TEKNOLOGI KEJURUTERAAN ELEKTRIK DAN ELEKTRONIK UNIVERSITI TEKNIKAL MALAYSIA MELAKA
Image of page 1

Subscribe to view the full document.

3
Image of page 2
1.0 LEARNING OUTCOMES 1. To familiarize students with while, do-while and for loop control technique; 2. To identify error and troubleshoot a C++ program 2.0 EQUIPMENTS 1. Personal Computer 2. 'DEV C++' or 'Microsoft Visual C++ 2010 Express Edition' installed. 3.0 SYNOPSIS & THEORY A loop is any program construction that repeats a statement or sequence of statements a number of times. The simple while loops and do-while loops that we have already seen are examples of loops. The statement (or group of statements) to be repeated in a loop is called the body of the loop, and each repetition of the loop body is called an iteration of the loop. Given below the syntax for the while statement and do-while statement; A while statement with a multistatement body While (Boolean_Expresion) { Statement_1 Statement_2 .
Image of page 3

Subscribe to view the full document.

Image of page 4
  • Fall '18
  • Do while loop

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern