Lesson_5_Debugging_Exercise_AAR2148516 - Lesson 5 Debugging...

This preview shows page 1 - 2 out of 2 pages.

Lesson 5 Debugging Exercise Chapter 5: “Looping (Part 1)” Examine the pseudocode that follows the introductory comments, then find and correct all the bugs. Correct all bugs in the file and be sure to clearly highlight the corrections. 1. Debugging - 2. This program should display every fifth year starting with 2015, e.g., 2015, 2020, 2025, and so on for 30 years. _____________________________________________________________________________________ start Declarations num year num START_YEAR = 2015 num FACTOR = 5 num END_YEAR = 30 2045 year = START_YEAR output year while year < = END_YEAR // REMOVED = output year year = year + FACTOR endwhile stop _____________________________________________________________________________________

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture