Question: Can someone please do the code for tasks 1,2, 3, 4 and 5 for me and receive the output shown in the first image in
PartA 160 161 162 163 Due date: 11:59pm on Sunday October 21, 2018 (i.e. 21/10/2018, 11:59pm). Value: 9% Topics: Data f Objectives: This assignment supports objectives 1-4 low, O0 programming basics, Control flow 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 Pro gramming 168 Domination is a board 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 game with 2 or more players where each player tries to dominate the 174 175 Your program should produce input/output in exactly the following format, with user input shown in underlined and in bold nter player 's name: Joe nter player 2's name: Sam oe, please place your armies [0, 0 null (0) [1,0]nul1 (0) [0,1]null (0) 1,1]null (0) ow many armies would you like to place on 0,0] null (O)? 2 0,01 Joe (2) [1,0]null (0) [0,1]null(0) [1,1]null (0) ow many armies would you like to place on ,0]null (0) 1 0,0] Joe (2) [1,0] Joe (1) [0,1]null (0) ,1null (0) am, please place your armies 0,0] Joe (2) [1,01 Joe (1) [0,1]null (0) 1,1null (0) ow many armies would you like to place on [0,1]null (0) 1 [0, 0] Joe (2) 1, 0 Joe (1) [0,1Sam(1) [1,1null(0) ow many armies would you like to place on ,1]null (0) 2 [0,0] Joe (2) [1,0] Joe(1) [0,1] Sam(1) [1,1] Sam (2) 176
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
