I am having troubles with my code. Can someone please advise the issue below.
Write a C++ program that the Traffic Department can use when the owner of a car pays all his
outstanding road fines. The Traffic Department has a file called Fines.dat that keeps the
registration number and the road fine due for each traffic offence, one per line.
Your program should request the registration number from the user, read the contents of file
Fines.dat (shown below) line by line; if the road fine matches the registration number, display
the fine and calculate the total amount due for that registration number. At the same time all the
remaining registration numbers and road fines should be written to a new file called
Run your program to calculate the road fines owed by a car with registration number ABC123.
NB: You should not count the number of lines in the file to determine how many times the file
should be accessed.
Please enter registration number: ABC123
Total fine due R1260.00
using namespace std;
//Write info to .dat file: