Dealership is required to sell cars that will pass emission.
If you live in some town/small city at certain counties, you are exempt.

The dealership will charge mainly:
1. price of car
2. Dealer & Handling charge
3. Sales Tax (rate where u live).

If you are buying car with cash Finance department will charge:
1. Title fee (~$27)

you get a temp license plate usually good for 60days.

If you goto Department of Motors, they will charge registeration and owner fees etc.