You can't create a variable based upon other variables prior to those variables being defined. Change this section:
'***compute the cost of the hours worked, ground cover, plants, tip and total cost
mathCost = hoursCost + workCost + groundCoverCost
groundCoverCost = groundCoverPrice * numYards
hoursCost = numHours * HOURSWORKED
tipAmount = mathCost * TIPPERCENT
workCost = plantsCost
totalCost = hoursCost + tipAmount + workCost + groundCoverCost
To this:
'***compute the cost of the hours worked, ground cover, plants, tip and total cost
groundCoverCost = groundCoverPrice * numYards
hoursCost = numHours * HOURSWORKED
workCost = plantsCost
mathCost = hoursCost + workCost + groundCoverCost
tipAmount = mathCost * TIPPERCENT
totalCost = hoursCost + tipAmount + workCost + groundCoverCost
Bookmarks