The sentence punctuated correctly is:
"The doctor said you should eat more vegetables."
Here's why:
1. The subject of the sentence is clearly identified, which is "The doctor."
2. The verb "said" is followed by direct speech (what the doctor said), which is enclosed in quotation marks ("you should eat more vegetables").
3. The punctuation is correct with a period at the end of the sentence.
This sentence follows the proper conventions for punctuating direct speech within a sentence. It is important to use quotation marks to indicate the exact words spoken by someone when quoting them directly. In this case, the sentence correctly attributes the advice to the doctor by placing it within quotation marks.