Hiya, I'm doing an assignment for my uni course on PHP, and I've got a bit stuck.
We've got to make a basic insurance quote site. I've managed to get all the forms and confirmation pages to output fine. I just need some help/guidence on how to get the following to work;
Calculate the cost of insurance, where the basic cost of insurance is £300 per year. However increasing in the following cases;
a. Engine size over 2 litres
b. Age less than 17; decline.
c. Age between 17 and 20 add £200 to quote
d. License points greater than 9, decline the quote.
e. Over 3 licensepoints but less than 9 add £500 to the quote.
I can get them to work individually, using if statements, but am struggling to get them to work together.
Any help appriciated!
We've got to make a basic insurance quote site. I've managed to get all the forms and confirmation pages to output fine. I just need some help/guidence on how to get the following to work;
Calculate the cost of insurance, where the basic cost of insurance is £300 per year. However increasing in the following cases;
a. Engine size over 2 litres
b. Age less than 17; decline.
c. Age between 17 and 20 add £200 to quote
d. License points greater than 9, decline the quote.
e. Over 3 licensepoints but less than 9 add £500 to the quote.
I can get them to work individually, using if statements, but am struggling to get them to work together.
Any help appriciated!
Comment