Name Final Exam CSC 175 (Intermediate Computer Programming) Dr. David Chays May 14, 2019 You may use your own class notes, the textbook or any standard Java language reference book for this exam....
Name Final Exam CSC 175 (Intermediate Computer Programming) Dr. David Chays May 14, 2019 You may use your own class notes, the textbook or any standard Java language reference book for this exam. Total points for this exam are 100. Problem 1 (15 pts) For a game, you are designing a World that has a collection of players. There are two kinds of players: Superhero and Jedi (i.e. a Superhero is a Player, and a Jedi is a Player) Each player has a name and location C different other information: a Superhero has a number of powers (an integer); a Jedi has a weapon (which could be a lightsaber or detonator). Each player moves but in a different way. Design the system with proper attributes, methods, and relationships (inheritance and containment), i.e. draw an appropriate UML class diagram according to the "is a and "has a" relationships. x, y coordinate). Different kinds of players have
Name Final Exam CSC 175 (Intermediate Computer Programming) Dr. David Chays May 14, 2019 You may use your own class notes, the textbook or any standard Java language reference book for this exam. Total points for this exam are 100. Problem 1 (15 pts) For a game, you are designing a World that has a collection of players. There are two kinds of players: Superhero and Jedi (i.e. a Superhero is a Player, and a Jedi is a Player) Each player has a name and location C different other information: a Superhero has a number of powers (an integer); a Jedi has a weapon (which could be a lightsaber or detonator). Each player moves but in a different way. Design the system with proper attributes, methods, and relationships (inheritance and containment), i.e. draw an appropriate UML class diagram according to the "is a and "has a" relationships. x, y coordinate). Different kinds of players have