Computer Science, asked by procoder14, 1 month ago

Else if ladder with slab Write a program to define a' class parcel having the following functions: int calculate(int wl) - to calculate and return the service charge for the transportation of any parcel according to the following criteria Up to 100 gms: Rs.40 For each additional 50 gms or part there of : Rs.20 [ For Example: For 100 gms! FRs:40 For next 50 gmis. Rs. 20 For remaining 30 gms. Rs 20 ] void display(int w2, String name2) - Invoke the calculate(int) to display the total amount to be paid by the person as given below: Name Weight of the parcel Charge ... Write a main method to create an object par of therelass and call the required method. Eg: Sample Input : Wt of the parcel 180 gs. . Sample Output: Total Charge Rs.80​

Answers

Answered by dm6916639
0

Answer:

gh a great day and a wonderful evening with you and I am a girl you many

Similar questions