Copyright © 2005 Suradet Jitprapaikulsarn
สงวนลิขสิทธิ์ 2548 สุรเดช จิตประไพกุลศาล

Homework 3 (Due Monday 27 June 2548)

1. Write a function to calculate the cost of shipping according to the following table.

First 500kg

15 ฿ / kg
Next 1,000kg

14 ฿ / kg

Next 5,00kg

13 ฿ / kg

Next 10,000kg

12 ฿ / kg

Else

10 ฿ / kg