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: Prompts the user for a startingNumber and reads the startingNumber into an integer Checks for input failure, if input failure occurs an error should be output and the program should exit Prompts the user for an endingNumber and reads the endingNumber into an integer Checks for input failure, if input failure occurs an error should be output and the program should exit Verifies that startingNumber endingNumber. If not an error should be output Prompts the user for an increment and reads the increment into an integer Checks for input failure, if input failure occurs an error should be output and the program should exit 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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
