DECLAREv_rollStud.Roll%TYPE;v_attStud.Att%TYPE;v_statusStud.Status%TYPE;BEGINv_roll:=&Enter_Roll_No;BEGINSELECTAttINTOv_attFROMStudWHERERoll=v_roll;IFv_att<75THENDBMS_OUTPUT.PUT_LINE('Term not granted');v_status:='D';ELSEDBMS_OUTPUT.PUT_LINE('Term granted');v_status:='ND';ENDIF;UPDATEStudSETStatus=v_statusWHERERoll=v_roll;EXCEPTIONWHENNO_DATA_FOUNDTHENDBMS_OUTPUT.PUT_LINE('No student found with the given roll number');END;EXCEPTIONWHENOTHERSTHENDBMS_OUTPUT.PUT_LINE('An unexpected error occurred: '||SQLERRM);END;/