Based on a star’s spectrum, astronomers group stars by temperature. From hottest to coolest, the spectral classes are O, B, A, F, G, K, and M. Each class is subdivided into ten and numbered from 0 to ...