Question
Hi, I am not yet great at programming and need help creating this HTML and PHP programming language problem from start to end . If
Hi, I am not yet great at programming and need help creating this HTML and PHP programming language problem from start to end. If it's alright, please show all the code so I can run and understand it. Some coding questions here are mostly answered incompletely, so I'm finding it hard to understand without a fully working program.
Please create a simple HTML form (no need for CSS extensions, the design can be plain and basic) that will accept two names of people and their birthdays. From the input, this program will display the compatibility of the two people by zodiac signs (which is based on the given birthday). The output of the program should display the two names, their zodiac sign (based on their birthday), and the compatibility result. The basis of the compatibility should be based on the chart I will show below. (Please follow the given instructions)
The program is required to have the following objects with specified attributes and methods as shown below: 1.) 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" 2.) 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.
The compatibility result should either be "Great Match", "Favorable Match", or "Not Favorable" Note: Signs arranged vertically in the chart should be the 1st person input while the horizontally arranged is the 2nd person input.
Example Input: Enter 1st Person's First Name: Clyde Enter 1st Person's Last Name: Smith Select 1st Person's Birthday: June 22 Enter 2nd Person's First Name: Bonnie Enter 2nd Person's Last Name: Barrymore Select 2nd Person's Birthday: February 19 Example Output: 1st Person's Name: Clyde Smith Zodiac Sign: Cancer 2nd Person's Name: Bonnie Barrymore Zodiac Sign: Pisces Compatibility Result: Great Match *End of Output* I would really appreciate your guidance and help in creating this program. Thank you!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started