Question: How can this be written in Java ? For this assignment, we are going to explore how we can use objects to build more expressive


How can this be written in Java?
For this assignment, we are going to explore how we can use objects to build more expressive and cleaner programs. In honor of football season we are going to be creating Players for our IUPUI football team (Undefeated since 1969). We will need to create and store these Players in memory and allow the user to view an entire "roster" of Players. We will make the following assumptions . . . No two Players will have the same name (e.g., #1 Test Testerson, #2 Test Testerson) No two Players can have the same number (eg., #1 Jane Testerson, #2 Jane Testerson) Each Player MUST have at-least a first name, last name, and jersey number In the basic submission there will only be, at maximum, eleven (11) Players on our team. Your goal is to create a program that will allow for creation and viewing of Players from our "team." You are required to implement the following items as part of this assignment Your C++ program must contain three files (2 cpp and 1 h file). These files should be named as such: Driver.cpp, Player.cpp, Player.h Your Java program must contain the following two files: Driver.java and Player.java Your Driver class must store any and all created Players in an Array on the Heap . This Array must make use of dynamic memory allocation. . In the C++ version we will need to manage our memory accordingly - no memory leaks! o You can use Valgrind to check our program for memory leaks - any leaks in memory will result in a deduction of points. When you start the program, you should provide the user with a menu choice to do one of the following: . 1. Add New Player 2. View Players 3. Exit Program Upon completion of Options #1 or #2 the menu should once again be displayed to the user-thus allowing them to make another selection. This process should continue to loop until the user selections Option #3. Once/If eleven (11) Players have been entered the program should print the roster and terminate
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
