{"id":33547,"date":"2018-02-20T23:50:30","date_gmt":"2018-02-20T23:50:30","guid":{"rendered":"https:\/\/writemyessayfree.com\/java-project"},"modified":"2017-08-16T06:19:50","modified_gmt":"2017-08-16T06:19:50","slug":"java-project","status":"publish","type":"post","link":"https:\/\/www.benedictsol.com\/blogs\/java-project\/","title":{"rendered":"Java Project"},"content":{"rendered":"<div class=\"the_content_wrapper\">\n<p>create a class that will implement the CreateGame interface.&nbsp; This class will simulate a game played between two teams.&nbsp; The simulation will run in a class called PlayBall.<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>Implement the CreatePlayer Interface<\/li>\n<li>Extend the Team Abstract Class<\/li>\n<li>Implement the CreateGame Interface<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li>Run the game<\/li>\n<li>Show the current score while game is played after each inning.<\/li>\n<li>Show the final score when the game ends.<\/li>\n<li>Determine the winner and print the winner\u2019s name and final score<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>Given files:<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>public abstract class Team {<\/p>\n<p>&nbsp;<\/p>\n<p>public final int rosterCount = 9;<\/p>\n<p>&nbsp;<\/p>\n<p>public abstract void setTeamName(String name);<\/p>\n<p>&nbsp;<\/p>\n<p>public abstract String getTeamName();<\/p>\n<p>&nbsp;<\/p>\n<p>public abstract void setTeamCity(String city);<\/p>\n<p>&nbsp;<\/p>\n<p>public abstract String getTeamCity();<\/p>\n<p>&nbsp;<\/p>\n<p>public int getRoster(){<\/p>\n<p>return rosterCount;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>public interface CreateGame {<\/p>\n<p>&nbsp;<\/p>\n<p>public abstract void runGame();<\/p>\n<p>\/\/should run the game as a simulation that automatically plays the whole game until end of 9 innings.<\/p>\n<p>&nbsp;<\/p>\n<p>public abstract String printAfterInning();<\/p>\n<p>\/\/should print score for each team after each inning<\/p>\n<p>&nbsp;<\/p>\n<p>public abstract String printWinnerAfterGame();<\/p>\n<p>\/\/should print the winner and final score after game completed<\/p>\n<p>&nbsp;<\/p>\n<p>}<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>public interface CreatePlayer {<\/p>\n<p>&nbsp;<\/p>\n<p>public abstract void setPlayerName(String name);<\/p>\n<p>&nbsp;<\/p>\n<p>public abstract String getPlayerName();<\/p>\n<p>&nbsp;<\/p>\n<p>public abstract void setPlayerPosition(String position);<\/p>\n<p>&nbsp;<\/p>\n<p>public abstract String getPlayerPosition();<\/p>\n<p>&nbsp;<\/p>\n<p>public abstract void setPlayerAge(int age);<\/p>\n<p>&nbsp;<\/p>\n<p>public abstract int getPlayerAge();<\/p>\n<p>&nbsp;<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>create a class that will implement the CreateGame interface.&nbsp; This class will simulate a game played between two teams.&nbsp; The simulation will run in a class called PlayBall. &nbsp; Implement the CreatePlayer Interface Extend the Team Abstract Class Implement the <a href=\"https:\/\/www.benedictsol.com\/blogs\/java-project\/\" 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-33547","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/33547","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=33547"}],"version-history":[{"count":0,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/posts\/33547\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/media?parent=33547"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/categories?post=33547"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.benedictsol.com\/blogs\/wp-json\/wp\/v2\/tags?post=33547"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}