Write a program for The Department of Motor Vehicles (DMV) to calculate the registration fees for automobiles. The DMV classifies automobiles as type 1 for luxury or as type 2 for all others. The registration fee for an automobile is $35.00. If the automobile is a luxury vehicle, add a surcharge of $15.00. The DMV also classifies automobiles as city vehicles (class 1) or non-city vehicles (class 2). An automobile that is registered in the city of Metropolis must pay an additional surcharge of $20.00, no matter what its type. Your program should prompt the user for the luxury type (either 1 or 2) and for the city class (either 1 or 2) of the automobile. The program should display the total registration fee for the vehicle. Design the program to process any number of automobiles.
Write it yourself. When you're stuck, post the code you've got so far and explain where it's all going wrong. Hint: try just writing the first part of the program and get that working before adding more features, for example try just prompting the user for the luxury type and displaying back to them what they entered (I usually start with something like that).