(Data Processing) Based on an automobile's model year and weight, the state of New Jersey determines the weight class and registration fee by using the following schedule:
Using this information, write a C++ program that accepts an automobile's year and weight and determines and displays its weight class and registration fee.