Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Ex: If the input is 7 9 , 6 1 , 4 8 , 1 0 5 , 8 8 , 5 1 , 1

Ex: If the input is 79,61,48,105,88,51,115,30,62,84, then the output is:
84,62,30,115,51,88,105,48,61,79
public static void main(String[] args){
Scanner scnr= new Scanner(
System.in);
final int ARR_LENGTH =10;
int [] yearlySalaries = new int[ARR_LENGTH];
int i;
for yearlySalaries.length; ++i){
}
yearlySalaries [i]=scnr.nextInt();
for (i=y yearlySalaries. length -1;i|0;-i|
}
System.out.print(yearlySalaries [i]+",");
System.out.println();
}
image text in transcribed

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

Students also viewed these Databases questions

Question

U11 Informing Industry: Publicizing Contract Actions 317

Answered: 1 week ago

Question

The company has fair promotion/advancement policies.

Answered: 1 week ago