My car sounded like a tractor now is quiet but the ac is not working? on 2006 Chevrolet Cobalt

The battery light is on and indicator telling me to ckeck the charging system. Help please!!

Check the belt!!!... You know it used to be called the fan belt.... Now it's called the (serpentine) drive belt!!
Yeppers it's the belt, thanks a ton!!
U bet!