Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create a new Java class called: InputReverse Write a program that will get 10 integers from the user, and display them in the reverse of

Create a new Java class called: InputReverse

Write a program that will get 10 integers from the user, and display them in the reverse of the order in which they were read.

The following is an example of what your MIGHT see on the screen when your program runs. The exact output depends on what values that the user types in while the program runs. Please be sure that you test ALL of the examples shown below with your program. The user's inputted values are shown below in italics:

Enter 10 integers: 10 20 30 40 50 60 70 80 90 100 The numbers you entered, in reverse order are: 100 90 80 70 60 50 40 30 20 10

Technical Notes & Hints:

You MUST use an array to solve this problem. You will not receive credit for this problem if you do not use an array in your solution

Declare and use a class-scoped constant named MAXSIZE. Use this constant in your program rather than putting the number 10 throughout your code.

Make sure that the number 10 does NOT appear in your program more than once (used only to initialize the MAXSIZE constant). This includes in the directions to the user, when setting up your array, and in the loops used to process the array. In order to pass the requirements test, don't even use the number 10 in your comments.

You do not need to use methods in this program, but you are free to do so if you wish.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Flash XML Applications Use AS2 And AS3 To Create Photo Galleries Menus And Databases

Authors: Joachim Schnier

1st Edition

0240809173, 978-0240809175

More Books

Students also viewed these Databases questions

Question

Define separation.

Answered: 1 week ago

Question

1. Where will you recommend that she hold the focus group?

Answered: 1 week ago

Question

3. What might you have done differently

Answered: 1 week ago