HELP.

There exists a Quarry that supplies Building Stones. The Quarry produces the stones in three (3) sizes only. The first size is 4x9 inches, the second is 6x9 inches and the third is 9x9 inches. 4x9 costs KSH 24, 6x9 costs KSH 22 and 9x9 costs KSH 27.
The same Quarry has 3 types of lorries that it uses to deliver stones that clients purchase. The capacities of the three lorries per stone type is as follows

  1. DIRECT LORRY ( 4x9 → 600pcs, 6x9 →
    500pcs, 9x9 → 400pcs]
  2. FSR LORRY [ 4x9 → 800pcs, 6x9 ->600pcs, 9x9 → 500pcs]
  3. DOUBLE STEERING [ 4x9 → 1000pcs, 6*9-> 800pcs, 9x9 → 600pcs]

The Quarry only delivers the stone to 3 locations and the prices for each location is shown below:

  1. Kiambu Town [ DIRECT LORRY > KSH 7000, FSR LORRY > KSH 10000, DOUBLE STEERING >12000 ]
  2. Juja Town [ DIRECT LORRY > KSH 8000, FSR LORRY > KSH 11000, DOUBLE STEERING >12500 )
  3. Ruiru Town [ DIRECT LORRY > KSH 8300, FSR LORRY > KSH 10500, DOUBLE STEERING >13000 ]

Create an HTML form that allows a user to select a purchase quantity for one or more of any of the three sizes of stones, and one of the three locations the Quarry delivers to. Once the user clicks a *SUBMIT button, the result should be the totals per stone size purchased, and the cheapest transport lorry combination, automatically done. Lorries cannot overloaded.

E.g. As a user, I would like to purchase 650pcs of 6x9 stone and have it delivered toKiambu.
Once I press the submit button, I should be able to get the total cost for 6x9 stone, the cheapest price for transport to Thika and the Lorry type that shall deliver.

The math behind it ndio imenilemea. I will appreciate any kind of help.

Dude hio ni project mzima unataka tukusaidie kunikisha onion. Peana ikiwa kazi acha mambo ya kusaidiwa.

I am not a programmer, but I can offer some insights

If those blocks are standardised, here is how they measure:
LxWxH
Block 9x9=39cmx19cmx19cm; Weight=??; Volume is 0.014079 Metres cubed Lories: Direct=5.6316 M3 FSR=7.0395 M3 Double Steer=8.4474 M3

Block 6x9= 39cmx14cmx19cm; Weight=??; " " 0.010374 Mcubed Lories: Direct=5.187 M3 FSR=6.2244 M3 Double Steer= 8.2992 M3

Block 4x9=39cmx9cmx19cm; Weight=??; " " " 0.006669 M cubed Lories: Direct=4.0014 M3 FSR=5.3352 M3 Double Steer=6.669 M3

Find exact measurements and weight of the blocks. Alafu tumia IF/THEN/ELSE clauses kuunda simple program. Kula hio mia umewaambia “you know a guy.”

Unalipa ngapi nikufanyie mbio mbio??