Write a program in Java to accept the weight of a parcel in grams and calculate and print the cost of sending the
parcel through courier according to the following: -
1000
gram or less Rs. 50
For
any additional 500 gram or part left Rs. 20.
Example:-
Input 1700 gram.
Output: Rs. 90
(Hint: first 1000 gram Rs. 50 + next 500 grams Rs. 20 + remaining 200 grams + 20)
Answers
Answered by
1
Answer:
- vo0j-k[0ujod]dc=ukpdukdcupkcujv
Similar questions