1. Prompts the user for a startingNumber and reads the startingNumber into an integer. 2. Checks (1) for input failure, if input failure occurs an error should be output and the program should exit. 3. Prompts the user for an endingNumber and reads the endingNumber into an integer. 4. Checks (3) for input failure, if input failure occurs an error should be output and the program should exit. 5. Verifies that startingNumber ≤ endingNumber. If not an error should be output. 6. Prompts the user for an increment and reads the increment into an integer. 7. Checks (6) for input failure, if input failure occurs an error should be output and the program should exit. 8. Prints out numbers in the following manner: a. Print startingNumber. b. Increment startingNumber by increment. C. Continue from (a) until startingNumber > endingNumber. while loop must be used to print out the numbers. See the example output for examples and formatting.

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 28PE
icon
Related questions
Question

C++

 

Enter a starting number
**11
Enter an ending number
**22
Enter a value to increment by
**3
11 14 17 20
Transcribed Image Text:Enter a starting number **11 Enter an ending number **22 Enter a value to increment by **3 11 14 17 20
1. Prompts the user for a startingNumber and reads the startingNumber into an integer.
2. Checks (1) for input failure, if input failure occurs an error should be output and the program should exit.
3. Prompts the user for an endingNumber and reads the endingNumber into an integer.
4. Checks (3) for input failure, if input failure occurs an error should be output and the program should exit.
5. Verifies that startingNumber ≤ endingNumber. If not an error should be output.
6. Prompts the user for an increment and reads the increment into an integer.
7. Checks (6) for input failure, if input failure occurs an error should be output and the program should exit.
8. Prints out numbers in the following manner:
a. Print startingNumber.
b. Increment startingNumber by increment.
C. Continue from (a) until startingNumber > endingNumber.
while loop must be used to print out the numbers. See the example output for examples and formatting.
Transcribed Image Text:1. Prompts the user for a startingNumber and reads the startingNumber into an integer. 2. Checks (1) for input failure, if input failure occurs an error should be output and the program should exit. 3. Prompts the user for an endingNumber and reads the endingNumber into an integer. 4. Checks (3) for input failure, if input failure occurs an error should be output and the program should exit. 5. Verifies that startingNumber ≤ endingNumber. If not an error should be output. 6. Prompts the user for an increment and reads the increment into an integer. 7. Checks (6) for input failure, if input failure occurs an error should be output and the program should exit. 8. Prints out numbers in the following manner: a. Print startingNumber. b. Increment startingNumber by increment. C. Continue from (a) until startingNumber > endingNumber. while loop must be used to print out the numbers. See the example output for examples and formatting.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Knowledge Booster
Mathematical functions
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,