Assume that one of local mobile networks charges call duration of each 45 seconds
or part of it would be charged 0.60 cents. That is, a call duration of 40 seconds will be charged
0.60 cents, a call duration of 50 seconds will be charged 1.20 cents, and a call duration of 12
seconds will still be charged 0.60 cents.
Write a Java program with user defined method named ‘callCharges’ that accepts an integer
representing a duration of a phone call. Inside the user defined method calculate the costs of call
then send the call costs to java ‘main()’ method.