{"id":5767,"date":"2018-02-20T23:50:30","date_gmt":"2018-02-20T23:50:30","guid":{"rendered":"http:\/\/essaysparlor.com\/java-program\/"},"modified":"2017-02-20T19:27:36","modified_gmt":"2017-02-20T19:27:36","slug":"java-program","status":"publish","type":"post","link":"https:\/\/www.benedictsol.com\/blogs\/java-program\/","title":{"rendered":"Java Program"},"content":{"rendered":"<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","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\/\" class=\"read-more\">Read More &#8230;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-5767","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/5767","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=5767"}],"version-history":[{"count":0,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/5767\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/media?parent=5767"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/categories?post=5767"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/tags?post=5767"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}