{"id":238185,"date":"2018-02-20T23:50:30","date_gmt":"2018-02-20T23:50:30","guid":{"rendered":"https:\/\/writemyessayfree.com\/java"},"modified":"2018-10-24T09:12:19","modified_gmt":"2018-10-24T09:12:19","slug":"java","status":"publish","type":"post","link":"https:\/\/www.benedictsol.com\/blogs\/java\/","title":{"rendered":"java"},"content":{"rendered":"<p>java<br \/>\n1<br \/>\nHomework<br \/>\n2<br \/>\na<br \/>\nBefore attempting this project, be sure you have completed all of the reading assignments, hands<br \/>\n&#8211;<br \/>\non<br \/>\nlabs, discussions, and assignments to date.<br \/>\n(25 points) Write a Java program<br \/>\nto simulate<br \/>\na<br \/>\np<br \/>\nick 3, 4 or 5<br \/>\nlottery drawing.<br \/>\nA<br \/>\nlottery game of this type<br \/>\nwill<br \/>\nd<br \/>\nraw<br \/>\nvalues between 0 and 9<br \/>\n.<br \/>\nYou should use the Math.Random() or the java.util.Random() class to<br \/>\ngenerate the values<br \/>\ni<br \/>\nn the<br \/>\nlotter<br \/>\ny<br \/>\ndrawing<br \/>\n. The program should prompt the user<br \/>\nfor<br \/>\nw<br \/>\nhich lottery game<br \/>\nthey w<br \/>\na<br \/>\nnt<br \/>\nto play.<br \/>\nThe program should also ask how many times they want to play t<br \/>\nhe game.<br \/>\nThe output<br \/>\nshould<br \/>\nshow the<br \/>\nnumbers picked<br \/>\nfor<br \/>\neach<br \/>\ng<br \/>\name<br \/>\nand<br \/>\nthe<br \/>\nsum<br \/>\nof<br \/>\nthe<br \/>\nnumbers<br \/>\nof all<br \/>\ng<br \/>\name<br \/>\ns<br \/>\n.<br \/>\nHere is a<br \/>\nsample run:<br \/>\nW<br \/>\nhich lottery game do you<br \/>\nwant to play (<br \/>\nEnter 3 for pick<br \/>\n&#8211;<br \/>\n3, 4 for pick<br \/>\n&#8211;<br \/>\n4 or 5 for pick<br \/>\n&#8211;<br \/>\n5<br \/>\n?<br \/>\n3<br \/>\nHow many games would you like to play? 10<br \/>\nThank you! The<br \/>\nn<br \/>\numbers sele<br \/>\ncted<br \/>\nwere:<br \/>\n3<br \/>\n4 9<br \/>\n2 4 7<br \/>\n3 3 1<br \/>\n0 3 2<br \/>\n9 3 1<br \/>\n9 2 4<br \/>\n4 5 2<br \/>\n1 1 0<br \/>\n0 1 7<br \/>\n8 6 3<br \/>\nThe sum for all numbers picked<br \/>\nwas:<br \/>\n107<br \/>\nGrading Rubric:<br \/>\nT<br \/>\nhe following grading rubric will be used to determine your grade:<br \/>\nAttribute<br \/>\nExceeds<br \/>\nMeets<br \/>\nDoes not meet<br \/>\nDesign<br \/>\n(5 points)<br \/>\n(5 points)<br \/>\nExhibits proper use of<br \/>\nparameters, and<br \/>\nselection of data types<br \/>\nall of the<br \/>\ntime.<br \/>\nEmploys correct and<br \/>\nappropriate use of<br \/>\nprogramming<br \/>\nstructures (loops,<br \/>\n(3<br \/>\n&#8211;<br \/>\n4 points)<br \/>\nExhibits proper use of<br \/>\nparameters, and<br \/>\nselection of data types<br \/>\nmost of the time<br \/>\n.<br \/>\nEmploys correct and<br \/>\nappropriate use of<br \/>\nprogramming<br \/>\nstructures (loops,<br \/>\n(0<br \/>\n&#8211;<br \/>\n2 points)<br \/>\nRarely exhibits proper<br \/>\nuse of parameters, and<br \/>\nselection of data types.<br \/>\nRarely emp<br \/>\nloys correct<br \/>\nand appropriate use of<br \/>\nprogramming<br \/>\nstructures (loops,<br \/>\n2<br \/>\nconditionals, classes<br \/>\netc.) all of the time.<br \/>\nEfficient algorithms<br \/>\nused all of the time.<br \/>\nconditionals, classes<br \/>\netc.) most of the time.<br \/>\nEfficient algorithms<br \/>\nused most of the time.<br \/>\nconditionals, classes<br \/>\netc.)<br \/>\nPoorly structured and<br \/>\ninefficient algorithms.<br \/>\nFunctionality<br \/>\n(10<br \/>\npoints)<br \/>\n(9<br \/>\n&#8211;<br \/>\n10 points)<br \/>\nExtra effort was<br \/>\napparent through the<br \/>\naddition of significant<br \/>\nand<br \/>\nadditional<br \/>\nfunctionality beyond<br \/>\nthe scope of the<br \/>\nassignment<br \/>\n.<br \/>\n(7<br \/>\n&#8211;<br \/>\n8 points)<br \/>\nProgram fulfills most<br \/>\nfunctionality<br \/>\n.<br \/>\nMost requirements<br \/>\nwere fulfilled<br \/>\n.<br \/>\nScreen captures<br \/>\nprovided<br \/>\ndemonstrating the<br \/>\nsuccessful compiling<br \/>\nand running of the<br \/>\nprogram.<br \/>\n(0<br \/>\n&#8211;<br \/>\n6 points)<br \/>\nProgram does not fulfill<br \/>\nfunctionality.<br \/>\nFew requirements<br \/>\nwere fulfilled.<br \/>\nTest cases<br \/>\n(5 points)<br \/>\n(5 points)<br \/>\nTest cases provide<br \/>\ncomprehensive<br \/>\ncoverage of all code<br \/>\npaths.<br \/>\nDiscussion of run<br \/>\n&#8211;<br \/>\ntime<br \/>\nerrors included.<br \/>\n(3<br \/>\n&#8211;<br \/>\n4 points)<br \/>\nTest cases provide<br \/>\ncoverage of most<br \/>\ncode<br \/>\npaths.<br \/>\nTest cases results well<br \/>\ndocumented providing<br \/>\npass\/fail results for<br \/>\neach test case.<br \/>\n(0<br \/>\n&#8211;<br \/>\n2 points)<br \/>\nNo or insufficient test<br \/>\ncases<br \/>\nMinimal supporting<br \/>\nevidence provided to<br \/>\nverify testing actually<br \/>\ntook place.<br \/>\nJava Style Guide<br \/>\n(5<br \/>\npoints)<br \/>\n(5 points)<br \/>\nCode impeccably neat<br \/>\nand well<br \/>\n&#8211;<br \/>\norganized.<br \/>\nExtensive In<br \/>\n&#8211;<br \/>\nline<br \/>\ncomments providing<br \/>\nadditional insight into<br \/>\ncode design and<br \/>\nfunctionality<br \/>\n(3<br \/>\n&#8211;<br \/>\n4 points)<br \/>\nHeader comments<br \/>\ninclude filename,<br \/>\nauthor, date and brief<br \/>\npurpose of the<br \/>\nprogram.<br \/>\nIn<br \/>\n&#8211;<br \/>\nline comments used<br \/>\nto<br \/>\ndescribe major<br \/>\nfunctionality of the<br \/>\ncode.<br \/>\nMeaningful variable<br \/>\nnames and prompts<br \/>\napplied<br \/>\n.<br \/>\n(0<br \/>\n&#8211;<br \/>\n2<br \/>\npoints)<br \/>\nCode rarely follows<br \/>\nrecommended Java<br \/>\nstyle guide<\/p>\n","protected":false},"excerpt":{"rendered":"<p>java 1 Homework 2 a Before attempting this project, be sure you have completed all of the reading assignments, hands &#8211; on labs, discussions, and assignments to date. (25 points) Write a Java program to simulate a p ick 3, <a href=\"https:\/\/www.benedictsol.com\/blogs\/java\/\" 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-238185","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/238185","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=238185"}],"version-history":[{"count":0,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/238185\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/media?parent=238185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/categories?post=238185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/tags?post=238185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}