Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

10 Points Write a Java program (One class with a main method to do the following 1. Ask the user to enter an integer (n)

image text in transcribed
10 Points Write a Java program (One class with a main method to do the following 1. Ask the user to enter an integer (n) 2. Decare an array of size with double data type 3. Ask the user to enter the values of the array 4. Create another array with of size n with integer data type 5. Make a copy of the first array to the second array but in reverse order is the last element in the first array should be store in the first element in the second array and so on) 6. Output values stored in the two arrays 7. Find and output how many odd values in both arrays are equal based on the index number, court matching vahes of two arrays based on same index value AND the element value of the array, Sample Input/output Enter not Enter array values 1234 First Array1234 Second Array4321 # of Equal values 0 Enter res Enter array values 12345 First Array:12345 Second Array:5 4321 # of Equal values - 1

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

Database Processing

Authors: David J. Auer David M. Kroenke

13th Edition

B01366W6DS, 978-0133058352

More Books

Students also viewed these Databases questions