Your problem is that you use the wrong format specifier for both scanf and fprintf.
One example:
printf ("Enter Fine Amount\n");
scanf ("%s",&fa);
The variable fa is an integer but you try to scan using %s. The same goes for fprintf where you try to print an integer using %s. Use %s for strings. For an integer use %d.
The variable fa is just one example. There are more… (e.g. dor) – so check all your format specifiers.
BTW Don’t call main_menu when you want to get back to it. Just use a return. So instead of:
case 4:
main_menu();
break;
Simply do:
case 4:
return;
1
solved Unhandled exception at 0x6b20d0ac in Ammar_1610852_Assignment.exe: 0xC0000005: Access violation reading location 0x00003232