CSIS 3280 Lab 5 Original Solved

35.00 $

Category:

Description

Rate this product

 

Visual Studio Code

  1. Download the lab template from Blackboard
  2. Extract it
  3. Fill in the relevant code to create the solution and meet the requirements Solution

The flow of the program is as follows:

  1. The user will be prompted to upload a CSV file. When the file is uploaded the roster will be displayed with the players sorted by player number and a count at the bottom, please see the appendix. Requirements:
  2. By default, the app will sort the team members by last name.
  3. The team will display a total of the number of player objects it contains when printed
  4. The CSV file will be parsed into Player objects
  5. The player objects will all be added to a team
  6. The HTML form will prompt the user to upload a CSV file (you will use data/orioles.csv)
  7. Your code must only be using classes (except for the controller file)
  8. You must use a try/catch clause any time you are the data file 9. You must close your file handle when you are finished with the file.
  9. You must not leave any errors on the page.

Files and Template

The following classes and respective files are required for this lab:

Class

Name

File Name Description
Player inc/player.class.php Contains the Player class, must have a constructor and toString methods.
Team inc/team.class.php Contains the team with storage for the players in the team
FileAgent inc/FileAgent.class.php This is the static utility class for getting the file contents
TeamParser inc/TeamParser.class.php This is a utility class for parsing the CSV file

This is the static Page class that is used to display parts of the

Page                  inc/Page.class.php

page (and HTML) to the browser.

Hints:

Refer to the demo code for Week 6.

Remember you should not have any errors, warnings, or info messages in your application You must not have any logic that should be handled by your classes in the controller file.

Keep a clean seperation between the view and the controller.

Ensure you use the appropriate class types.

Search the Internet to figure out how usort is called inside a class.

Appendix:

  • Lab05_original-pcddim.zip