Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

please I need help with the attached questions thank u

please I need help with the attached questions thank u

Store your data in an ArrayWk5DDiscussion Topic1.Provide Java code to create and initialize an array of integers (Java primitive int), floats or any other Javaprimitive type of your choice.You pick the array name and length.Demonstrate how you would determine the length of your array. Show this through a code example youcreate where you use the length member.Respond to other student postings by compiling and testing and providing feedback on their code.2.Write a Java application that allows a user to enter numbers into an array and then processthem.Enter the number of elements and the value of each element;Your application will process the data entered and will display the results:1.Display the elements of the array, max 10 per line2.Find and display the min value and the index of this min;3.Display the odd elements;4.Sorts and displays the numbers from highest to lowest usingArrays.sort() method fromjava.uTl.Arrays class and some extracode.It is recommended to design and implement the methods:getMin– ±nd the minimum element of the array;getIndexOfMin– ±nd the index of the maximum element (±rst if the aremany);displayOdd– ±nd the and display the odd elements;displayArray– display the elements of the array;Example:How many values you want to input:15Enter number 0 :21Enter number 1 :22Enter number 2 :23Enter number 3 :24Enter number 4 :25Enter number 5 :26Enter number 6 :27Enter number 7 :1Enter number 8 :2Enter number 9 :3Enter number 10 :4Enter number 11 :5Enter number 12 :6Enter number 13 :7Enter number 14 :8Thanks! Here is your array:21, 22, 23, 24, 25, 26, 27, 1, 2, 3,4, 5, 6, 7, 8Min value entered was 1 and has the index: 7Odd values entered:21,23, 25,27,1,3,5,7Descendig Sorted Array is:27, 26, 25, 24, 23, 22, 21, 8, 7, 6
Background image of page 1
5, 4, 3, 2, 1
Background image of page 2
 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"