Classic Macaroni Salad

4 cups uncooked elbow macaroni 1 cup mayonnaise ⅔ cup white sugar ¼ cup distilled white vinegar 2 ½ tablespoons prepared yellow mustard 1 ½ teaspoons salt ½ teaspoon ground black pepper 2 stalks celery, chopped 1 large onion, chopped 1 green bell pepper, seeded and chopped ¼ cup grated carrot (Optional) 2 tablespoons chopped pimento peppers (Optional) Bring a large pot of lightly salted water to a boil. Cook elbow macaroni in the boiling water, stirring occasionally,…