Welcome to the CSC Q&A.
Get help and give help!
Write great code!
It is our choices... that show what we truly are, far more than our abilities.

Categories

+13 votes
asked in CSC211_Winter2018 by (8 points)

1 Answer

+9 votes

Can you give an example of what you mean? I'm not sure I understand the question. If you are talking about the spacing between words/letters then it's probably just because it's hard to tell how many spaces the "Practice-IT" questions are asking for. If so, just look more closely at the prompt and error message and it should help.

However, if it's about the spacing between lines, I'm not sure what question you are asking.

Hope this helps.

answered by (8 points)
+2

Thank you for your reply. What I do not get is their spacing. They explain in Practice it, for example, hi\thello, the first t become 6 spaces because hi is 2 characters. So which mean I need to space 6 more times or I only need to do three more?

+4

If the string you are trying to solve is "hi\thello" the correct output would be:

hi      hello

This is because the tab inserts spaces until it gets to the next multiple of 8, so the answer is
hi(6 spaces)hello because hi takes up two spaces and 6 more would get the space count to 8.

If you had something like "bye\thello" the output would be bye(5 spaces)hello and so forth.

I hope this helps.

...