Question: For this assignment, you will use the Visual Studio Code in your VCastle environment. Create a PHP web application with the following properties: Project/folder name

For this assignment, you will use the Visual Studio Code in your VCastle environment.

Create a PHP web application with the following properties:

  • Project/folder name is YourLastName_Wk2PA
  • Web application consists of a single page titled "Your Name Wk 2 Performance Assessment"
  • Web application consists of 2 files:
    • person.php
      • Defines class "Person" and includes a constructor, all properties, accessor functions (non-static), and static label functions
      • Properties to hold the following, all properties should be private within the class:
        • First Name
        • Last Name
        • Address Line 1
        • Address Line 2
        • City
        • State
        • Zip Code
      • Constructor with parameters to set all the properties
      • Functions to get & set each class property
      • Functions to assemble and return the following:
        • Person's Name, formatted as "Last, First"
        • Address formatted as Address Line 1, Address Line 2; if Address Line 2 is empty, no comma
        • Address Location formatted as "City, State Zip" (e.g. Richmond, VA 12345)
      • Static functions to provide messages and labels as follows:
        • "Name and Address Information"
        • "Full Name"
        • "Address"
        • "City/State/Zip"
    • index.php - all UI code needed, per the requirements below
  • User Interface has the following properties/requirements:
    • Create 5 person objects, populated with all data (2 that exclude address line 2)
    • Includes a title with your name - Week 2 Performance Assessment
    • Includes a header that states "Name and Address Information" and uses a static method from the Person class
    • Data Table to display a person's details, with the following columns:
      • Full Name
        • Header text is retrieved from a static method in the Person class
        • Name information retrieved from a non-static method in the Person class
      • Address
        • Header text is retrieved from a static method in the Person class
        • Address information retrieved from a non-static method in the Person class
      • City/State/Zip
        • Header text is retrieved from a static method in the Person class
        • Address Location information retrieved from a non-static method in the Person class

Example of how the UI should appear:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!