11.07.2015 Views

Here - 1000 BiT

Here - 1000 BiT

Here - 1000 BiT

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

INSTRUCTOR NOTES 5 TRICKS WITH PRINT^ In this lesson:^ PRINT with a semicolon at the endPRINT with semicolons between items(**) PRINT with commas between itemsthe "invisible" PRINT cursor^ characters and string constants/m.review of keysr*) The lesson introduces the output cursor which is invisible on the screen. It marks theplace where the next character will be placed on the screen by a PRINT command. (TheO input cursor is the flashing square. It is familiar from the edit mode and and also appearswhen executing the INPUT command.)^r^When a PRINT statement ends with a semicolon, the output cursor remains in place atthe end of the last printed character. The next PRINT will start writing characters ontothe end of the message printed by the current PRINT command.Without a semicolon at the end, the PRINT command will advance the output cursor tothe beginning of the next line as its last official act.A PRINT command can print several items, a mixture of string and numeric constants,variables and expressions. Numeric constants and variables have not yet been introduced.The items are separated by semicolons or commas.If commas are used, the items will be printed in columns.A series of printed strings will have their characters in contact. If spaces are desired, asin the "TOAST AND JAM" example, the spaces have to be put into the strings explicitly.QUESTIONS:1. Which cursor is a little flashing square? What command puts it on the screen?2. Which cursor is invisible? What command uses it?3. How do you make two PRINT statements print on the same line?4. Will these two words have a space between them when run?10 PRINT "HI'VTHERE!"If not, how do you put a space between them (two ways)?35

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!