Car check engine light on, $107,000 miles on 2000 Pontiac Firebird

car has rough idle not much power if on hill once at 40mph runs fine

Asked by for the 2000 Pontiac Firebird
have codes scanned at auto zone and post so we can adv