| Line(s) | Description |
|---|---|
| 5 | Clears the screen. |
| 10 | PRINT/INPUT statement. |
| 20 | Inserts blank line. |
| 30 | Expense Category 1 = E1$. |
| 40 | Expense Amount = E1. |
| 50 | Inserts blank line. |
| 60 | Expense Category 2 = E2. |
| 70 | Expense Amount 2 = E2. |
| 80 | Inserts blank line. |
| 90 | Expense Category 3 = E3. |
| 100 | Expense Amount 3 = E3. |
| 110 | Clears the screen. |
| 120 | Add Expense Amounts = E. |
| 130 | Calculate Expense/income%. |
| 140 | Display Income. |
| 150 | Display Total Expenses. |
| 160 | Display Incomes - Expenses. |
| 170 | Inserts blank line. |
| 180-200 | lines 180-200 calculate % each expense amount is of total expenses. |
| 210 | Inserts blank line. |
| 220 | Display E/IN %. |
| 230 | Time delay loop. |
Now multiply those two numbers together to create a new variable C as shown in line 20 below:
20 C=A*B
To PRINT the result as a message type
30 PRINT A "TIMES" B "EQUALS" C
Enter these 3 lines and RUN the program. Notice that the messages are inside the quotes while the variables are not.
| This page has been created by Sami Rautiainen. | |
| Read the small print. | Last updated December 22, 2002. |