The data file “Fines.dat”, contains license numbers (7-chars) and ticket fines (double, formatted to 2 decimal places) separated by a tab character, one car per line. Each license number in the file will be unique. You are expected to write a program to do the following:
• Read the data from the file and calculate the total of the fines expected.
• For fines worth more than 500/=, the information read is to be transferred to an output file “Topfines.dat”
A sample of the contents of the file is given below (you can create the file using a text editor)
KAB 245K 800.25
KAK 129N 225.50
KAS 176Q 750.00
KAR 231R 75.55
KAB 867V 657.35
KAT 781G 899.00
KAQ 534K 756.45