<h3> Source Code</h3> >import java.util.*; public class MinMaxDAC { public static void main(String args[]) { Scanner sc=new Scanner(System.in); System.out.println("Enter number of elements"); int n=sc.nextInt(); int a[]=new int[n]; System.out.println("Enter elements"); for(int i=0;i < n;i++) a[i]=sc.nextInt(); int c=0,part=0, d, s; while(part < n) { part=part+3; c++; } part=0; int l=0,h=2; while(part < c) { System.out.println("The part of array is"); for(int i= l; i <= h; i++) System.out.println(a[i] + " "); System.out.println(); System.out.println("Maximum of this part of array is"); int v=a[l]; for(int i=l;i <= h;i++) if(a[i] > v) v=a[i]; System.out.println(v); System.out.println(); System.out.println("Minimum of this part of array is"); int v1=a[l]; for(int i=l;i <= h;i++) if(a[i] < v1) v1=a[i]; System.out.println(v1); System.out.println(); part++; l=l+3; if((h+3) < n) h=h+3; else h=n-1; } d=s=a[0]; for(int i=0;i < n;i++) { if(a[i] > d) d=a[i]; if(a[i] < s) s=a[i]; } System.out.println("Maximum element is:"+d); System.out.println(); System.out.println("Minimum element is:"+s); } } <center><h3>Output Aplication</h3> <center>https://steemitimages.com/DQmaZNpfRbkanc9Z9ww6huLX5wpWVn85HisaPLGmZXyQQ9h/Median%20Aplication.png</center> *** <center><h3>FOLLOW ME: @ryal</h3></center> ***
author | ryal | ||||||
---|---|---|---|---|---|---|---|
permlink | java-application-or-calculates-the-median-value-20171210t224529627z | ||||||
category | education | ||||||
json_metadata | {"links":[],"image":["https://steemitimages.com/DQmaZNpfRbkanc9Z9ww6huLX5wpWVn85HisaPLGmZXyQQ9h/Median%20Aplication.png"],"users":["ryal"],"tags":["education","science","programming","java","aplication"],"app":"esteem/1.4.6","format":"markdown+html","community":"esteem"} | ||||||
created | 2017-12-10 15:45:36 | ||||||
last_update | 2017-12-10 15:45:36 | ||||||
depth | 0 | ||||||
children | 8 | ||||||
last_payout | 2017-12-17 15:45:36 | ||||||
cashout_time | 1969-12-31 23:59:59 | ||||||
total_payout_value | 0.450 HBD | ||||||
curator_payout_value | 0.012 HBD | ||||||
pending_payout_value | 0.000 HBD | ||||||
promoted | 0.000 HBD | ||||||
body_length | 1,454 | ||||||
author_reputation | 138,533,904,283 | ||||||
root_title | "Java Application | Calculates the median value" | ||||||
beneficiaries |
| ||||||
max_accepted_payout | 1,000,000.000 HBD | ||||||
percent_hbd | 10,000 | ||||||
post_id | 23,008,520 | ||||||
net_rshares | 116,719,759,354 | ||||||
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
isteemit | 0 | 1,235,601,374 | 0.05% | ||
good-karma | 0 | 95,974,869,828 | 0.5% | ||
mysteem | 0 | 168,223,014 | 1% | ||
d3nv3r | 0 | 122,111,838 | 0.05% | ||
bidnat | 0 | 78,547,874 | 0.05% | ||
oliverstoney | 0 | 58,748,887 | 0.05% | ||
darkflame | 0 | 494,566,580 | 0.05% | ||
feruz | 0 | 1,523,196,057 | 1% | ||
esteemapp | 0 | 3,863,834,156 | 1% | ||
taskmanager | 0 | 7,108,018,534 | 0.05% | ||
meysam | 0 | 419,597,408 | 0.25% | ||
steemitboard | 0 | 246,180,399 | 1% | ||
prizeportal | 0 | 59,870,388 | 0.05% | ||
wishmaiden | 0 | 85,106,803 | 0.5% | ||
muchsin | 0 | 375,028,227 | 100% | ||
syechdrawing | 0 | 612,947,409 | 100% | ||
modemser | 0 | 2,275,457,267 | 3% | ||
ryal | 0 | 633,047,693 | 100% | ||
sajda | 0 | 105,940,846 | 100% | ||
tmholdings | 0 | 1,278,864,772 | 0.05% |
tomorrow is my java book exmaz
author | sajda |
---|---|
permlink | re-ryal-java-application-or-calculates-the-median-value-20171210t154718160z |
category | education |
json_metadata | {"tags":["education"],"app":"steemit/0.1"} |
created | 2017-12-10 15:46:54 |
last_update | 2017-12-10 15:46:54 |
depth | 1 |
children | 6 |
last_payout | 2017-12-17 15:46:54 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 30 |
author_reputation | -287,824,802,148 |
root_title | "Java Application | Calculates the median value" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 23,008,645 |
net_rshares | 0 |
author_curate_reward | "" |
voter | weight | wgt% | rshares | pct | time |
---|---|---|---|---|---|
ryal | 0 | 0 | 0% |
Ok, I will wait @sajda
author | ryal |
---|---|
permlink | re-sajda-re-ryal-java-application-or-calculates-the-median-value-20171210t154842279z |
category | education |
json_metadata | {"tags":["education"],"users":["sajda"],"app":"steemit/0.1"} |
created | 2017-12-10 15:48:48 |
last_update | 2017-12-10 15:48:48 |
depth | 2 |
children | 5 |
last_payout | 2017-12-17 15:48:48 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 22 |
author_reputation | 138,533,904,283 |
root_title | "Java Application | Calculates the median value" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 23,008,867 |
net_rshares | 0 |
wait for what?
author | sajda |
---|---|
permlink | re-ryal-re-sajda-re-ryal-java-application-or-calculates-the-median-value-20171210t154954030z |
category | education |
json_metadata | {"tags":["education"],"app":"steemit/0.1"} |
created | 2017-12-10 15:49:30 |
last_update | 2017-12-10 15:49:30 |
depth | 3 |
children | 0 |
last_payout | 2017-12-17 15:49:30 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 14 |
author_reputation | -287,824,802,148 |
root_title | "Java Application | Calculates the median value" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 23,008,963 |
net_rshares | 0 |
are u a programmer ?
author | sajda |
---|---|
permlink | re-ryal-re-sajda-re-ryal-java-application-or-calculates-the-median-value-20171210t155232513z |
category | education |
json_metadata | {"tags":["education"],"app":"steemit/0.1"} |
created | 2017-12-10 15:52:09 |
last_update | 2017-12-10 15:52:09 |
depth | 3 |
children | 2 |
last_payout | 2017-12-17 15:52:09 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 20 |
author_reputation | -287,824,802,148 |
root_title | "Java Application | Calculates the median value" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 23,009,277 |
net_rshares | 0 |
i made a website in c#
author | sajda |
---|---|
permlink | re-ryal-re-sajda-re-ryal-java-application-or-calculates-the-median-value-20171210t155256463z |
category | education |
json_metadata | {"tags":["education"],"app":"steemit/0.1"} |
created | 2017-12-10 15:52:33 |
last_update | 2017-12-10 15:52:33 |
depth | 3 |
children | 0 |
last_payout | 2017-12-17 15:52:33 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 22 |
author_reputation | -287,824,802,148 |
root_title | "Java Application | Calculates the median value" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 23,009,327 |
net_rshares | 0 |
Congratulations @ryal! You have completed some achievement on Steemit and have been rewarded with new badge(s) : [](http://steemitboard.com/@ryal) You got a First Reply [](http://steemitboard.com/@ryal) Award for the number of posts published Click on any badge to view your own Board of Honor on SteemitBoard. For more information about SteemitBoard, click [here](https://steemit.com/@steemitboard) If you no longer want to receive notifications, reply to this comment with the word `STOP` > By upvoting this notification, you can help all Steemit users. Learn how [here](https://steemit.com/steemitboard/@steemitboard/http-i-cubeupload-com-7ciqeo-png)!
author | steemitboard |
---|---|
permlink | steemitboard-notify-ryal-20171210t192302000z |
category | education |
json_metadata | {"image":["https://steemitboard.com/img/notifications.png"]} |
created | 2017-12-10 19:22:42 |
last_update | 2017-12-10 19:22:42 |
depth | 1 |
children | 0 |
last_payout | 2017-12-17 19:22:42 |
cashout_time | 1969-12-31 23:59:59 |
total_payout_value | 0.000 HBD |
curator_payout_value | 0.000 HBD |
pending_payout_value | 0.000 HBD |
promoted | 0.000 HBD |
body_length | 835 |
author_reputation | 38,975,615,169,260 |
root_title | "Java Application | Calculates the median value" |
beneficiaries | [] |
max_accepted_payout | 1,000,000.000 HBD |
percent_hbd | 10,000 |
post_id | 23,029,774 |
net_rshares | 0 |