Assume that charges for delivering and handling packages for University of Success is as follow:
Weight in kg Charges in BD
Less or equal to 5 5
Greater than 5 and less or equal to 10 8 plus 10% of Weight
Greater than 10 and less than or equal to 30 12 plus 15% of Weight
Greater than 30 20 plus 25% of Weight
University of Success has departments. Each department receives five packages of books. Write a C++ program that will ask the user for the Weight of Each packages in Kg for Each department. The program should then compute the total Weight, the net charge for all the packages for each department according to the table above, and the maximum Weight for Each packages. Your program should print a table showing the weight, total weight, the charge for each department, the maximum Weight as shown below. Use a two-dimensional array to store the weights.
The program run should be :
Enter the weights for departments # 1 : 2 3 2 1 2
Enter the weights for departments # 2 : 5 8 2 9 3
Enter the weights for departments # 3 : 7 2 4 1 2
Enter the weights for departments # 4 : 3 4 6 8 1
Pakages 1 2 3 4 5 Total charge
Departments 1 2 3 2 1 2 10 9
Departments 2 5 8 2 9 3 27 16.05
Departments 3 7 2 4 1 2 16 14.4
Departments 4 3 4 6 8 1 22 15.3
Max 7 8 6 9 3