Question: Write a complete program that: 1 . Prompts the user for a startingNumber and reads the startingNumber into an integer . 2 . Checks (

Write a complete program that: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.A while loop must be used to print out the numbers. See the example output for examples and formatting.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!