Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

How does punctuation and grammar help create meaning in language? Think of a sen

ID: 3570489 • Letter: H

Question

How does punctuation and grammar help create meaning in language? Think of a sentence (including appropriate punctuation) and then change the punctuation. What is the meaning of the new sentence? How does this differ from the original sentence? How does punctuation and sentence structure create meaning in Java? Why is it important to follow these rules in programming?

At the end of your post, give an example sentence and/or example line of code for your classmates to alter using only punctuation and sentence structure. Explain how your modifications change the meaning of the sentence or code.

Explanation / Answer

Example: Hi! John. How are you?

Example 1:

int i=2;

                  i=10;

                System.out.println(i);

Output: 10

Change the code as follows:

int i=2;

                i+=10;

                System.out.println(i);

Output: 12

Example 2:

                int i=1;

while(i<=10)

                                System.out.println(i);

i=i+1;

This code runs infinitely.

Output:

1

2

3

.

.

But add curly braces as follows.

int i=1;

while(i<=10)

{

                                System.out.println(i);

i=i+1;

                }

The above code prints:

1

2

3

4

5

6

7

8

9

10

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote