ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 27 May 2017 My Price 8.00

Chapter 5: "Looping (Part 1)"

Chapter 5: "Looping (Part 1)"

Design the logic by drawing a flowchart and writing pseudocode for a program that outputs every number from 1 through 20.

Chapter 5: "Looping (Part 2)"

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

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

year = START_YEAR

while year <= END_YEAR

output year

endwhile

stop

2. Debugging

This program displays every combination of three-digits.

_____________________________________________________________________________________

start

Declarations

num digit1 = 0

num digit2 = 0

num digit3 = 0

while digit1 <= 9

while digit2 <= 9

while digit3 <= 9

output digit1, digit2, digit3

digit1 = digit1 + 1

endwhile

digit2 = digit2 + 1

endwhile

digit3 = digit3 + 1

endwhile

stop

Answers

(11)
Status NEW Posted 27 May 2017 06:05 AM My Price 8.00

-----------

Not Rated(0)