Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Hello, I already posted my previous problem but the answer was incomplete and I was not able to run and understand the code, so I

Hello, I already posted my previous problem but the answer was incomplete and I was not able to run and understand the code, so I would like to ask again for some guidance on this HTML and PHP problem since I am new to the HTML and PHP language. The problem that I am tasked to solve is the following: Make a simple HTML form that accepts two names of a person and their birth dates. Compute the compatibility of the two persons by zodiac signs. The program should display the names, their zodiac signs, and their compatibility results in the same page using PHP echo statement. (The compatibility of the zodiac will depend on the chart I will show below)

However, the problem requires the following objects with specified attributes and methods.

I) Person Attributes: First Name, Last Name, Birthday, Zodiac (object, see below) Constructor has inputs: First Name, Last Name, Birth Date *The constructor must create a Zodiac object with birth date as input* Methods: GetFullName() - returns the full name in the format "last name, first name" II) Zodiac Attributes: Zodiac Sign, Symbol, Start Date, End Date Constructor has input: Date The constructor will have to open a .txt file that contains the following text:

Aries; Ram; March 21; April 19 Taurus; Bull; April 20; May 20 Gemini; Twins; May 21; June 21 Cancer; Crab; June 22; July 22 Leo; Lion; July 23; August 22 Virgo; Virgin; August 23; September 22 Libra; Balance; September 23; October 23 Scorpio; Scorpion; October 24; November 21 Sagittarius; Archer; November 22; December 21 Capricornus; Goat; December 22; January 19 Aquarius; Water Bearer; January 20; February 18 Pisces; Fish; February 19; March 20 The .txt file will serve as the basis for assigning the zodiac sign, symbol, start date, end date based on the input date. Methods: ComputeZodiacCompatibility() - takes two zodiac signs as input and outputs compatibility based on the given chart below. It is required to use multidimensional arrays. image text in transcribed 
The compatibility result should either be "Great Match", "Favorable Match", or "Not Favorable" Note: Signs arranged vertically in the chart should be the 1st name input while the horizontally arranged is the 2nd name input. Example Input: Enter 1st Person's First Name: Bob Enter 1st Person's Last Name: Builder Select 1st Person's Birthday: June 22 Enter 2nd Person's First Name: Katy Enter 2nd Person's Last Name: Perry Select 2nd Person's Birthday: February 19 Example Output: 1st Person's Name: Bob Builder Zodiac Sign: Cancer 2nd Person's Name: Katy Perry Zodiac Sign: Pisces Compatibility Result: Great Match *End of Output* CSS Extensions would not be necessary since design for the form is not required. The form would only be basic and plain (no designs required), the correct logic of the program is the only requirement. I would really appreciate your help. Thank you!

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server Query Performance Tuning

Authors: Sajal Dam, Grant Fritchey

4th Edition

1430267429, 9781430267423

More Books

Students also viewed these Databases questions

Question

Explain the process of Human Resource Planning.

Answered: 1 week ago