I would like to know if i have used the correct grammar and punctuation in the following two sentences:

47. "Have you ever read the story, 'The Tell-Tale Heart' by Edgar Allen Poe?" Dave asked.
48. "Did the professor say, 'Put down your pencils'?" Janice asked.

Correct!

In the first sentence, "Have you ever read the story, 'The Tell-Tale Heart' by Edgar Allen Poe?" Dave asked, the grammar and punctuation are correct. However, there should be a comma before the closing quotation marks, like this: "Have you ever read the story, 'The Tell-Tale Heart' by Edgar Allen Poe?," Dave asked.

In the second sentence, "Did the professor say, 'Put down your pencils'?" Janice asked, the grammar and punctuation are also correct. There is a comma before the opening quotation marks and a question mark at the end.

To determine if the grammar and punctuation are correct, you can follow these steps:

1. Identify the main parts of the sentence, such as the subject (who or what the sentence is about) and the predicate (what the subject is doing or being).
2. Check that the subject and verb agree in number (singular or plural).
3. Ensure that the sentence is properly punctuated, including the use of commas, quotation marks, and question marks where necessary.

In both of these sentences, the subjects and verbs agree, and the quotations are properly punctuated.