Here are the negative forms of the sentences:
He went to school yesterday.
He didn't go to school yesterday.They ate lunch at the cafeteria.
They didn't eat lunch at the cafeteria.My sister played basketball with her friends.
My sister didn't play basketball with her friends.I read a newspaper on the train.
I didn't read a newspaper on the train.It rained last week.
It didn't rain last week.I felt sick, so I saw a doctor.
I didn't feel sick, so I didn't see a doctor.Thomas had a good time at the party.
Thomas didn't have a good time at the party.Susan liked the movie.
Susan didn't like the movie.I saw you at the shopping mall on Saturday.
I didn't see you at the shopping mall on Saturday.My wife bought a new hat this morning.
My wife didn't buy a new hat this morning.