The program uses a repetition control structure to display


In this assignment, you will utilize repetition control structures in writing pseudocode for a program that prints the next five odd or even integers. This is a programming assignment, and it requires you to write the pseudocode for a program that solves the following problem:

The user is prompted to enter an integer from 1 to 1000. When the user enters the integer, the program uses a repetition control structure to validate the integer is within the proper range; otherwise, the prompt is continuously redisplayed to the user until an integer in the proper range is entered.

If the integer is odd, the program uses a repetition control structure to display the next five consecutive odd integers to the user. If the integer is even, the program uses a repetition control structure to display the next five consecutive even integers to the user. Here is an example of how the program should run (program execution will vary based on the user's input):

Please enter an integer from 1 to 1000:
-1
Input not in range.
Please enter an integer from 1 to 1000:
88
Here are the next five odd integers if your number is odd or the next five even integers if your number is even:
90
92
94
96
98

Please read the problem description above carefully so that you know exactly what the program is supposed to do. Understanding the problem is part of the programming process. 

Request for Solution File

Ask an Expert for Answer!!
JAVA Programming: The program uses a repetition control structure to display
Reference No:- TGS096159

Expected delivery within 24 Hours