How to Calculate the average of a Square Wave?
The first half is 6 x 5. The second half is 4 x -3. Add the areas together and you get 18. Now divide by the total length of time (10) to get 1.8. Same as you. Your teacher is wrong or you asked them a different question.