Question: Can someone please provide the code for me for part A and B. Part A is the first task 1-5 and task B is the
Can someone please provide the code for me for part A and B. Part A is the first task 1-5 and task B is the next set from task 1-5
Part A




Part B






159 Part A 160 161 162 163 Due date: 11:59pm on Sunday October 21,2018 (i.e. 21/10/2018, 11:59pm) Value: 9% Topics: Data flow, OO programming basics, Control flow Objectives: This assignment supports objectives 1-4 164 Introduction 165 166 167 Students who expect to follow this subject by doing Applications Programming (48024) are STRONGLY ENCOURAGED to do at least Part A of the assignment to prepare for Applications Programming. 168 Domination is a board game with 2 or more players where each player tries to dominate the 169 world by placing armies on territories and battling other territories to claim land. The player 170 who successfully takes over the world is the winner. In this assignment you will build a simple 7 variation on the game with only 2 players and 4 territories. In Part A of the assignment, you 172 will create the basic class structure, create 4 territories, 2 players and allow each player to place 173 their initial armies. 174 Your program should produce input/output in exactly the following format, with user input 175 shown in underlined and in bold ter player 1's name: Joe ter player 2's name: Sam oe, please place your armies 0,0] null (0) [,0]null (0) [0,1null (0) [1,1]null (0) ow many armies would you like to place on [O,0]nul1 (0)2 2 0,0 Joe (2) [, 0]null (0) [0,1]null (0) [,1] null (0) ow many armies would you like to place on [1,0]null (0) 1 0,0 Joe (2) [, 0]Joe (1) [0,1null (0) [, 1]null (0) Sam, please place your armies 0,0 Joe (2) [1, 0Joe(1) [0,1]null (0) [1,1]null (0) ow many armies would you like to place on [0,1]null (0)? 1 0,0 Joe (2) [, 0Joe (1) [0,1Sam (1) [1,1nu 11 (0) ow many armies would you like to place on [1,1]nul1 (0)2 2 176 159 Part A 160 161 162 163 Due date: 11:59pm on Sunday October 21,2018 (i.e. 21/10/2018, 11:59pm) Value: 9% Topics: Data flow, OO programming basics, Control flow Objectives: This assignment supports objectives 1-4 164 Introduction 165 166 167 Students who expect to follow this subject by doing Applications Programming (48024) are STRONGLY ENCOURAGED to do at least Part A of the assignment to prepare for Applications Programming. 168 Domination is a board game with 2 or more players where each player tries to dominate the 169 world by placing armies on territories and battling other territories to claim land. The player 170 who successfully takes over the world is the winner. In this assignment you will build a simple 7 variation on the game with only 2 players and 4 territories. In Part A of the assignment, you 172 will create the basic class structure, create 4 territories, 2 players and allow each player to place 173 their initial armies. 174 Your program should produce input/output in exactly the following format, with user input 175 shown in underlined and in bold ter player 1's name: Joe ter player 2's name: Sam oe, please place your armies 0,0] null (0) [,0]null (0) [0,1null (0) [1,1]null (0) ow many armies would you like to place on [O,0]nul1 (0)2 2 0,0 Joe (2) [, 0]null (0) [0,1]null (0) [,1] null (0) ow many armies would you like to place on [1,0]null (0) 1 0,0 Joe (2) [, 0]Joe (1) [0,1null (0) [, 1]null (0) Sam, please place your armies 0,0 Joe (2) [1, 0Joe(1) [0,1]null (0) [1,1]null (0) ow many armies would you like to place on [0,1]null (0)? 1 0,0 Joe (2) [, 0Joe (1) [0,1Sam (1) [1,1nu 11 (0) ow many armies would you like to place on [1,1]nul1 (0)2 2 176
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
