Import java. util. collections;
Public class rate {
Public static void main (string [] ARGs)
{
System. Out. Print ("Enter the mileage :");
Int J;
For (j = 1; j ++ ){
Cin = new partition (system. In );
Int A = cin. nextint ();
If (A = 100 ){
System. Out. println ("100 km road maintenance fee is 162.5 RMB ");
} Else {
Int B = A/25;
Int C = 0;
Float D;
Switch (B ){
Case 0:
C = A * 10;
(D = (float) (C/10.0 );
System. Out. println (a + "km road maintenance fee is" + D + "RMB ");
Break;
Case 1:
C = 25*10 + (a-25) * 15;
(D = (float) (C/10.0 );
System. Out. println (a + "km road maintenance fee is" + D + "RMB ");
Break;
Case 2:
C = 25*10 + 25*15 + (a-50) * 20;
(D = (float) (C/10.0 );
System. Out. println (a + "km road maintenance fee is" + D + "RMB ");
Break;
Case 3:
C = 10*25 + 25*15 + 25*20 + (a-75) * 20;
(D = (float) (C/10.0 );
System. Out. println (a + "km road maintenance fee is" + D + "RMB ");
Break;
Default:
System. Out. println ("the input value is out of the value range. Please enter it again ");
Break;
}
}
}
}
}