write a program to calculate the fare of a journey given to input-the class('A','B' or 'C') and the distance in KM.
rate is to be calculated according to the following table:
class rate for first 500 KM rate/KM after 500 KM
A 3.5 10.75
B 2.5 7.5
C 2.0 5.0
USE switch-case to write the above program logic for fare calculation.