11.07.2015 Views

Here - 1000 BiT

Here - 1000 BiT

Here - 1000 BiT

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

RULES about functions:Functions always have ( ) with one or more arguments in them. Example:MID$(D$,5,J) has 3 arguments:D$, 5 and JThe arguments may be numbers or strings or some of each.A function is not a command. It cannot begin a statementright:10 LET D=LEN$(CS$)wrong:10LEN(CS$)=5A function acts just like a number or a string. We say the function returns a value. Thevalue can be put into a box or printed just like any other number or string. The functionmay even be an argument in another function.The arguments tell which value is returned.(Remember, string values go into string variable boxes, numeric values go into numericboxes.)PRACTICE WITH FUNCTIONSFor each function in the list below:Give the names of the arguments, and tell whether the argument value is a number or astring. Tell if the argument is a constant, variable or function.RND(8)RIGHT$(U$,Y)fn.argfn_argargVAL("231")fn_argSTR$(INT(RND(8))) fn .arg.Each line below has errors. Explain what is wrong.10INT(Q)=6510D$=LEFT(R$,1).10PW$=VAL$(F)10 PRINT CHR$_154

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

Saved successfully!

Ooh no, something went wrong!