Your city's Parking Violations Bureau wants you to write a program for computer fines for parking violations. There are four types of violations: type A car carries a fine of $10,type B carries a find of $20,type C carries a fine of $30, and type D carries a fine of$50. The program should ask for the number of type A,B or C violations, the number of type B violations, and so on. If the number of type A,B, or C violations exceeds 10,impose an additional$50 fine for each category that exceeds 10. If the total number of type A,B or individually exceeds 10, impose and 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 three. The program should display the total fine for the person. The program should process any number of persons.
#include "stdafx.h" #include <iostream> #include <iomanip> using namespace std;