{"id":188171,"date":"2018-02-20T23:50:30","date_gmt":"2018-02-20T23:50:30","guid":{"rendered":"https:\/\/writemyessayfree.com\/java-5"},"modified":"2018-10-24T09:20:31","modified_gmt":"2018-10-24T09:20:31","slug":"java-5","status":"publish","type":"post","link":"https:\/\/www.benedictsol.com\/blogs\/java-5\/","title":{"rendered":"java"},"content":{"rendered":"<p>java1<br \/> Homework<br \/> 2<br \/> a<br \/> Before attempting this project, be sure you have completed all of the reading assignments, hands<br \/> \u2013<br \/> on<br \/> labs, discussions, and assignments to date.<br \/> (25 points) Write a Java program<br \/> to simulate<br \/> a<br \/> p<br \/> ick 3, 4 or 5<br \/> lottery drawing.<br \/> A<br \/> lottery game of this type<br \/> will<br \/> d<br \/> raw<br \/> values between 0 and 9<br \/> .<br \/> You should use the Math.Random() or the java.util.Random() class to<br \/> generate the values<br \/> i<br \/> n the<br \/> lotter<br \/> y<br \/> drawing<br \/> . The program should prompt the user<br \/> for<br \/> w<br \/> hich lottery game<br \/> they w<br \/> a<br \/> nt<br \/> to play.<br \/> The program should also ask how many times they want to play t<br \/> he game.<br \/> The output<br \/> should<br \/> show the<br \/> numbers picked<br \/> for<br \/> each<br \/> g<br \/> ame<br \/> and<br \/> the<br \/> sum<br \/> of<br \/> the<br \/> numbers<br \/> of all<br \/> g<br \/> ame<br \/> s<br \/> .<br \/> Here is a<br \/> sample run:<br \/> W<br \/> hich lottery game do you<br \/> want to play (<br \/> Enter 3 for pick<br \/> \u2013<br \/> 3, 4 for pick<br \/> \u2013<br \/> 4 or 5 for pick<br \/> \u2013<br \/> 5<br \/> ?<br \/> 3<br \/> How many games would you like to play? 10<br \/> Thank you! The<br \/> n<br \/> umbers sele<br \/> cted<br \/> were:<br \/> 3<br \/> 4 9<br \/> 2 4 7<br \/> 3 3 1<br \/> 0 3 2<br \/> 9 3 1<br \/> 9 2 4<br \/> 4 5 2<br \/> 1 1 0<br \/> 0 1 7<br \/> 8 6 3<br \/> The sum for all numbers picked<br \/> was:<br \/> 107<br \/> Grading Rubric:<br \/> T<br \/> he following grading rubric will be used to determine your grade:<br \/> Attribute<br \/> Exceeds<br \/> Meets<br \/> Does not meet<br \/> Design<br \/> (5 points)<br \/> (5 points)<br \/> Exhibits proper use of<br \/> parameters, and<br \/> selection of data types<br \/> all of the<br \/> time.<br \/> Employs correct and<br \/> appropriate use of<br \/> programming<br \/> structures (loops,<br \/> (3<br \/> \u2013<br \/> 4 points)<br \/> Exhibits proper use of<br \/> parameters, and<br \/> selection of data types<br \/> most of the time<br \/> .<br \/> Employs correct and<br \/> appropriate use of<br \/> programming<br \/> structures (loops,<br \/> (0<br \/> \u2013<br \/> 2 points)<br \/> Rarely exhibits proper<br \/> use of parameters, and<br \/> selection of data types.<br \/> Rarely emp<br \/> loys correct<br \/> and appropriate use of<br \/> programming<br \/> structures (loops,<br \/> 2<br \/> conditionals, classes<br \/> etc.) all of the time.<br \/> Efficient algorithms<br \/> used all of the time.<br \/> conditionals, classes<br \/> etc.) most of the time.<br \/> Efficient algorithms<br \/> used most of the time.<br \/> conditionals, classes<br \/> etc.)<br \/> Poorly structured and<br \/> inefficient algorithms.<br \/> Functionality<br \/> (10<br \/> points)<br \/> (9<br \/> \u2013<br \/> 10 points)<br \/> Extra effort was<br \/> apparent through the<br \/> addition of significant<br \/> and<br \/> additional<br \/> functionality beyond<br \/> the scope of the<br \/> assignment<br \/> .<br \/> (7<br \/> \u2013<br \/> 8 points)<br \/> Program fulfills most<br \/> functionality<br \/> .<br \/> Most requirements<br \/> were fulfilled<br \/> .<br \/> Screen captures<br \/> provided<br \/> demonstrating the<br \/> successful compiling<br \/> and running of the<br \/> program.<br \/> (0<br \/> \u2013<br \/> 6 points)<br \/> Program does not fulfill<br \/> functionality.<br \/> Few requirements<br \/> were fulfilled.<br \/> Test cases<br \/> (5 points)<br \/> (5 points)<br \/> Test cases provide<br \/> comprehensive<br \/> coverage of all code<br \/> paths.<br \/> Discussion of run<br \/> \u2013<br \/> time<br \/> errors included.<br \/> (3<br \/> \u2013<br \/> 4 points)<br \/> Test cases provide<br \/> coverage of most<br \/> code<br \/> paths.<br \/> Test cases results well<br \/> documented providing<br \/> pass\/fail results for<br \/> each test case.<br \/> (0<br \/> \u2013<br \/> 2 points)<br \/> No or insufficient test<br \/> cases<br \/> Minimal supporting<br \/> evidence provided to<br \/> verify testing actually<br \/> took place.<br \/> Java Style Guide<br \/> (5<br \/> points)<br \/> (5 points)<br \/> Code impeccably neat<br \/> and well<br \/> \u2013<br \/> organized.<br \/> Extensive In<br \/> \u2013<br \/> line<br \/> comments providing<br \/> additional insight into<br \/> code design and<br \/> functionality<br \/> (3<br \/> \u2013<br \/> 4 points)<br \/> Header comments<br \/> include filename,<br \/> author, date and brief<br \/> purpose of the<br \/> program.<br \/> In<br \/> \u2013<br \/> line comments used<br \/> to<br \/> describe major<br \/> functionality of the<br \/> code.<br \/> Meaningful variable<br \/> names and prompts<br \/> applied<br \/> .<br \/> (0<br \/> \u2013<br \/> 2<br \/> points)<br \/> Code rarely follows<br \/> recommended Java<br \/> style guide<\/p>\n","protected":false},"excerpt":{"rendered":"<p>java1 Homework 2 a Before attempting this project, be sure you have completed all of the reading assignments, hands \u2013 on labs, discussions, and assignments to date. (25 points) Write a Java program to simulate a p ick 3, 4 <a href=\"https:\/\/www.benedictsol.com\/blogs\/java-5\/\" 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-188171","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/188171","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=188171"}],"version-history":[{"count":0,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/188171\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/media?parent=188171"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/categories?post=188171"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/tags?post=188171"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}