This is programme homework of bookdraft2016sep it may exist some mistake,you can read it as reference