A transport company charges for the parcels from Bangalore to Hyderabad or vice versa as per the given tariff:
Weight ---> Charge
Upto 10 kg ---> Rs. 20 per kg
For next 20 kg ---> Rs. 15 per kg
For next 30 kg ---> Rs. 10 per kg
More than 60 kg ---> Rs. 5 per kg
Write a program to calculate the charge for a parcel taking the weight of the parcel as an input.
Answers
Answered by
3
A transport company charges for the parcels from Bangalore to Hyderabad or vice versa as per the given tariff:
Weight ---> Charge
Upto 10 kg ---> Rs. 20 per kg
For next 20 kg ---> Rs. 15 per kg
For next 30 kg ---> Rs. 10 per kg
More than 60 kg ---> Rs. 5 per kg
Write a program to calculate the charge for a parcel taking the weight of the parcel as an input.
Similar questions