EASY project, hopefully a single hour turn around for you -- BASIC WEBPAGE containing minimal SCRIPTING; single page generation using the construct below:
I will return messages/emails daily, at the time of this posting.
I need you to build a simple website used to calculate allowance for my children.
Each child will have a separate web page, so use good programming techniques so I can easily modify the page for each kid.
For the DATE field/variable, I want to use the JQuery UI datepicker or something equivalent (easy & good UI).
I want the following variables in the code, in addition to DATE.
DOB = date of birth of child, set is code
AGE = child years old, integer
NAME = name of child
BASE = base allowance in $, $1 for each year of age (i.e., 4 year old child gets $4 a week), thus BASE = AGE
TAX = deduction from base for allowance calculation (will be set at 20%)
FIELD[1]..[5] : (array) NAME, RATING, and PERCENT, (RATING is an integer digit from 0-10 must be selected - pull down ok, use a good UI for this please of pull down is clumsy), PERCENT is a percentage of the BASE based on RATING to determine a VALUE
FIELD[1]..[5].PERCENT will be 15% = 0.15
FIELD[1]..[5].VALUE will be = (BASE*PERCENT)*(1-RATING/10)
FIELD1 = "SCHOOL WORK DONE", [0-10 selectable], 15% (not displayed)
FIELD2 = "BEING ON TIME", [0-10 selectable], 15% (not displayed)
FIELD3 = "OBEY PARENTS", [0-10 selectable], 15% (not displayed)
FIELD4 = "CHORES DONE", [0-10 selectable], 15% (not displayed)
FIELD5 = "BEING NICE", [0-10 selectable], 15% (not displayed)
Thus, [login to view URL] = (BASE*PERCENT)*(1-RATING/10), etc.
User will enter: DATE (default will be specified), and select values for FIELD1, FIELD2, FIELD3, FIELD4, FIELD5
The code will:
* set DATE by input, default is today (shown in field)
* determine AGE of child based on DATE and DOB
* show BASE value
* show TAX value as a deduction to BASE
* determine deduction VALUE=(BASE*PERCENT)*(1-RATING/10) for each FIELD
* show each FIELD, RATING, and VALUE
* show TOTAL of allowance at bottom after deductions
* format all money to two decimal places
Examples:
-----------------------------------------
Example 1:
DATE = today (09/09/2014)
DOB = 1/1/2000
AGE = 14
NAME = Jill
BASE = 14
TAX = .20 (20%)
FIELD1 = "School work done", 10, 15%
FIELD2 = "Being on time", 6, 15%
FIELD3 = "Obey parents", 8, 15%
FIELD4 = "Chores done", 5, 15%
FIELD5 = "Being nice", 3, 15%
As the info is input, the OUTPUT, upon completion, will become:
---------------------
Greetings Jill, you were born on 1/1/2004.
Your allowance for the week ending on 12/1/2014 is $10 because you are 10 years old on this day.
Allowance: $10.00
Deductions:
Taxes: $2.00
School work done: $0.00 [10/10]
Being on time: $0.60 [6/10]
Obey parents: $0.30 [8/10]
Chores done: $0.75 [5/10]
Being nice: $1.05 [3/10]
Total Deductions: $4.70
Total Allowance: $5.30
---------------------
Thus, even of this kid earns 0/0 in all categories, the allowance will be $0.50
---------------------
Example 2:
DATE = 05/14/2014
DOB = 1/1/2000
AGE = 14
NAME = Bob
BASE = 14
TAX = .20 (20%)
FIELD1 = "SCHOOL WORK DONE", 3, 15%
FIELD2 = "BEING ON TIME", 7, 15%
FIELD3 = "OBEY PARENTS", 9, 15%
FIELD4 = "CHORES DONE", 1, 15%
FIELD5 = "BEING NICE", 2, 15%
This input provided, the OUTPUT, upon completion, will become:
---------------------
Greetings Bob, you were born on 1/1/2000.
Your allowance for the week ending on 5/17/2014 is $10 because you are 14 years old on this day.
Allowance: $14.00
Deductions:
Taxes: $2.80
School work done: $1.47 [3/10]
Being on time: $0.63 [7/10]
Obey Parents: $0.21 [9/10]
Chores Done $1.89 [1/10]
Being Nice $1.68 [2/10]
Total Deductions: $8.68
Total Allowance: $5.32
---------------------