oop – oop program

oop program

oop – 这道题目是利用oop进行的编程代写任务, 涵盖了oop等方面

OOP代写 代写oop

Page 1 of 1

COMP500 / ENSE501: Week 5 Exercise:

EXERCISE NAME: Start, End, Step

Write a program that asks the user for three number inputs, count down start, count down stop, and step size.

The program must then use a l oop to print out from the count down start number, to the count down stop number, decreasing by the step size each iteration.

The list of numbers printed must be separated by a comma and a single space.

An example of the programs output is as follows:

Another example of the programs output is as follows:

Follow good programming standards for whitespace, naming and commenting. Ensure your source

code can successfully compile.

Test your program with a variety of input to ensure the implementation is robust.

Count down start? 6
Count down end? 1
Step size? 1
6, 5, 4, 3, 2, 1
Count down start? 100
Count down end? 10
Step size? 20
100, 80, 60, 40, 20