The Captain has to get the officers together . They decide Billy is guilty and sentence him to be hanged . The Captain is forced to convene an immediate court-martial , and the officers find Billy guilty and sentence him to hang .