State of Alabama parking violation bureau wants you to write a program to compute fines for parking
Question:
State of Alabama parking violation bureau wants you to write a program to compute fines for parking violations. There are four types of violations: type A carries a fine of $10, type B carries a fine of $20, type C carries a fine of $30, and type D car rise a fine of $50. The program should ask for the number of type A violation, the number of type B violations, and so on. Use four separate functions to obtain the number of violations of each type. If the number of type A, B, or C violations exceeds 10, impose an additional fine $50 for each category that exceeds 10. If the total number of type A, B, or C exceeds 20 but none of types A, B, or C individually exceeds 10, impose an additional fine of $75. If the number of type D violations exceeds 3, impose an additional fine of $20 for each type D violation over 3.
Use a function to calculate the total fine. Pass to this function the number of fines of each type. The function should return the total fine. Finally, use a function to display the total fine for the person. The program should process any number of persons