ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 08 May 2017 My Price 8.00

Store your data in an ArrayWk5DDiscussion

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

Attachments:

Answers

(11)
Status NEW Posted 08 May 2017 05:05 AM My Price 8.00

-----------

Attachments

file 1494219976-Solutions file 2.docx preview (51 words )
H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly -----------onl-----------ine----------- an-----------d g-----------ive----------- yo-----------u e-----------xac-----------t f-----------ile----------- an-----------d t-----------he -----------sam-----------e f-----------ile----------- is----------- al-----------so -----------sen-----------t t-----------o y-----------our----------- em-----------ail----------- th-----------at -----------is -----------reg-----------ist-----------ere-----------d o-----------n -----------THI-----------S W-----------EBS-----------ITE-----------. ----------- Th-----------ank----------- yo-----------u -----------
Not Rated(0)