1. I got up late and missed the bus which I had to take in the morning. I was late for school and my teacher got mad at me when I entered my classroom. I had to remain in the classroom to clean it by myself.

2. I got up late and missed the bus number 6 which I had to take in the morning. I was late for school and my teacher got mad at me when I entered my classroom. I had to stay after school to clean the classroom alone.

(Would you check the short passages and correct any errors, please?)

Both look fine except that I'd remove "the" in front of "bus" in sentence 2.

1. I got up late and missed the bus I was supposed to take in the morning. As a result, I arrived late to school and my teacher was angry with me. Consequently, I was assigned the task of cleaning the classroom alone.

2. I got up late and missed the bus number 6 that I was supposed to take in the morning. Consequently, I arrived late to school and my teacher was mad at me when I entered the classroom. As a consequence, I had to stay after school to clean the classroom by myself.

The corrected passages have the same meaning as the original ones but the sentences and word choices have been adjusted slightly for clarity and coherence.