Complex sentence: The term of obligatory service varies based on the type of commission the cadet or midshipman receives as well as any scholarship contract signed, but they can serve as active duty or in a reserve status.
Split into simpler sentences: The term of obligatory service varies based on the type of commission the cadet or midshipman receives, as well as any scholarship contract signed. They can serve as active duty or in a reserve status.