Given that an array of Integers named a with 30 elements has been declared, assign 5 to its last element.