{"id":132723,"date":"2018-02-20T23:50:30","date_gmt":"2018-02-20T23:50:30","guid":{"rendered":"https:\/\/writemyessayfree.com\/java-program-2"},"modified":"2017-08-16T07:03:24","modified_gmt":"2017-08-16T07:03:24","slug":"java-program-2","status":"publish","type":"post","link":"https:\/\/www.benedictsol.com\/blogs\/java-program-2\/","title":{"rendered":"Java Program"},"content":{"rendered":"<div class=\"the_content_wrapper\">\n<p>Java Program<\/p>\n<p>Write a program that satisfies the following for 2D arrays:<\/p>\n<p>1) Prompts users with this menu:<\/p>\n<p>a. Create: returns an uninitialized 2D array of the size nRows, nCols<\/p>\n<p>b. Fill Rand: populates the array with random ints within a range [min, max]<\/p>\n<p>c. Print: displays the array on the screen<\/p>\n<p>d. Set at: given row and col, overwrite the value at the given location<\/p>\n<p>e. Print at: given row and col, returns and displays the value at the given location<\/p>\n<p>f. Get Row: given a row#, returns and displays all elements in the row<\/p>\n<p>g. Get Col: given a col#, returns and displays all elements in the col<\/p>\n<p>h. Set Row: given a row#, set the row with the given user row<\/p>\n<p>i. Set Col: given a col#, set the col with the given user col<\/p>\n<p>j. Mean of Row: COMPUTES, returns and displays average of a given row<\/p>\n<p>k. Mean of Col: computes, returns and displays average of a given col<\/p>\n<p>l. Sum of All: computes, returns and displays average of the array<\/p>\n<p>m. Mean of All: computes returns, and displays total of the array<\/p>\n<p>n. End: Quits the program<\/p>\n<p>2) Every task in (1) must be implemented as a method<\/p>\n<p>3) Write a while loop to keep prompting the user for next option<\/p>\n<p>4) Write a switch structure<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Java Program Write a program that satisfies the following for 2D arrays: 1) Prompts users with this menu: a. Create: returns an uninitialized 2D array of the size nRows, nCols b. Fill Rand: populates the array with random ints within <a href=\"https:\/\/www.benedictsol.com\/blogs\/java-program-2\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-132723","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/132723","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/comments?post=132723"}],"version-history":[{"count":0,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/132723\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/media?parent=132723"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/categories?post=132723"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/tags?post=132723"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}