This is about finding a person’s lucky number..
Project requirements:
A single file php script which includes:
- a form with two input boxes for First and Last name and a submit button
- a method to calculate a persons lucky number(s) and present them to the user
The script counts the letters of the person and comes up with a number.. Then it produces more numbers based on the original number e.g.
Lets say that the user inputs:
First Name: Bob
Last Name: Persons
Here’s how to come up with the final lucky number:
Bob + Persons = 3 + 7 = 10 = 1 + 0 = 1 (this is the single lucky number)
Other lucky numbers are:
1 * 0 = 0
1 – 0 = 1
1 / 0 = N/A
and of course 10
So all the lucky numbers produced by the script are (this is also the
format it should show the script output):
Primary lucky number: 1
Secondary lucky number(s): 0, 10
Here’s another example:
First name: Emanuellia
last name: Papa
Emanuellia + Papa = 10 + 4 = 14 = 1 + 4 = 5 (primary lucky number = 7)
For secondary lucky numbers we have:
14
1 * 4 = 4 = 4
1 – 4 = -3 = 3
1 / 4 = 0,25 = 0, 2, 5
So the lucky numbers are:
Primary lucky number: 5
Secondary lucky number(s): 14, 4, 3, 0, 2, 5
The budget for this simple php project is small so don’t bid very high..
If you place a cool bid and you offer to do this immediately, I will likely choose you..