i need your help :(
Excellent fertilizer wholesaler sdn bhd stocks manure in 100kg, 20kg, 10kg and 5kg sacks. write java program that will tell the wholesaler how many sacks of each weight are required to make up a retailer's order. To reduce handling problems the objectives is to use the minimum total number of sacks.
If retailer having retailer-code ‘A’ or ‘a’, they cannot accept 100kg sacks.
If retailer having retailer-code ‘B’ or ‘b’, they cannot accept 100kg sacks or 20kg sacks.
If retailer having retailer-code ‘C’ or ‘c’, they can only accept 5kg sacks.
If retailer having retailer-code ‘D’ or ‘d’, they can accept any sizes sacks.
Retailers are charged $10.50 per order for handling and delivery plus :
a. $5.50 per 100kg sack
b. $2.35 per 20kg sack
c. $1.20 per 10kg sack
d. $0.80 per 5kg sack
Re: i need your help :(
Order quantity 154kg
100kg Sacks 1
20kg Sacks 2
10kg Sacks 1
Total number of sacks : 4kg
Invoice : $21.90
i tried case A, and its not working T__T anyway here my answer
|All times are GMT +5.5. The time now is 09:24.|