After cooking and draining the macaroni, place it in your serving bowl. Add the chopped onion, cheddar cheese, broccoli, bacon, sugar, and Miracle Whip or mayonnaise. Mix until thoroughly combined. Serve hot or place in the refrigerator and serve cold. Salt and pepper to taste.