
3. Enter the percentage calculation.
0® ®M)A©(I® (i®TOTL{$Pi)® ® 100
« ^ A
« (A/TOTL)*100
4. Store the results into the global variable “RESLTl”. Note that after the
calculation, you need to insert a; to delimit the algebraic commands
(hold down
0
and press
« ^ A
« (A/TOTL)*100 ^ RESLTl;
5. Add “%” and save the resulting string back into RESLTl. Note the
following;
® To insert the % symbol, use the Characters tool (0 (CHARS)) or press
When you add a string to a number, the resulting value is a string.
You do not need to convert the nimiber.
RESLTl
« ^ A
« (A/TOTL)*100 k RESLTl ;
RESLT1+" %" k RESLTl
Before you run this program, create a global variable named “TOTL” and
assign a number to it.
Page 10-12
Introduction to programming
Commentaires sur ces manuels