Peter Hans, who for the last two years has led the North Carolina Community College System, was elected Friday as the next president of the University of North Carolina system.