problem to create java program using array in the following 1. Accept 5 input nos. & compute for its average and sum. 2. Accept 5 input nos. & display the highest and lowest number.
problem to create java program using array
Page 1 of 12 Replies - 107 Views - Last Post: 27 January 2013 - 11:24 PM
Replies To: problem to create java program using array
#2
Re: problem to create java program using array
Posted 27 January 2013 - 11:33 AM
Dup
#3
Re: problem to create java program using array
Posted 27 January 2013 - 11:24 PM
Well, here is something to give you a start.
regards,
Raghav
1. Accept 5 input nos. //use a for loop...take the contents into an array...remember index is 0 to 4 for 5 elements sum // in the same for loop...add all the contents of array compute for its average//divide sum value by 5 2. Accept 5 input nos.//same as above display the highest //sort the array and a[4] will be highest lowest number. // a[0] will be lowest
regards,
Raghav
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|