0% found this document useful (0 votes)
48 views2 pages

Unit 1 Application - Teacher

The document discusses writing a program in TI-BASIC that takes arguments, performs a calculation based on those arguments, and displays the results using the Disp statement. It provides examples of simple formulas for area, volume, or interest calculations that could be used and emphasizes labeling the output clearly. The goal is to have arguments for input and use Disp for output, keeping computations simple at this stage without storing values in variables.

Uploaded by

trmpereira
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views2 pages

Unit 1 Application - Teacher

The document discusses writing a program in TI-BASIC that takes arguments, performs a calculation based on those arguments, and displays the results using the Disp statement. It provides examples of simple formulas for area, volume, or interest calculations that could be used and emphasizes labeling the output clearly. The goal is to have arguments for input and use Disp for output, keeping computations simple at this stage without storing values in variables.

Uploaded by

trmpereira
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

10 Minutes of Code

TI-BASIC

Unit 1: Program Basics


In this Application for Unit 1 you will discover the
versatility of the Disp statement and develop your own
program. Skill Builders for Unit 1 should be completed
prior to this activity.

Application: Evaluate a Formula


Objectives:

Embellish Disp statements to produce meaningful


information using literal strings
Write your own formula program

The Disp statement can display more than one item at a time.
Study the screen at the right in which the hypotenuse program has been modified. The
program echoes the arguments a and b with appropriate labels and then displays the
calculated hypotenuse length appropriately labeled, too.
The items in quotes are called literal strings. A string is a collection of characters
strung together.
When you edit your program remember to Check Syntax & Store the program by
selecting menu> Check Syntax & Store> Check Syntax & Store (or use the shortcut
ctrl-B on the handheld) before running it.
Remember to use the comma as a separator between the items to be displayed. There
should be a comma in between the text in quotes and the values a, b and the
expression.
Write a program that takes one or more arguments, and then displays the result of a calculation based on the
argument(s).
The calculation can be any formula. Here are a few suggestions:
Area of a geometric shape
2
Square: side
Triangle: *b*h
2
Circle: pi*r
Trapezoid: *(b1+b2)*h
Volume of a solid:
3
Cube: side
2
Square Pyramid: 1/3*side *height
2
Sphere: 4/3*pi*r
Simple interest: A=P+P*R*T
n*t
Compound interest: A=P*(1+r/n)
The program should clearly label the output.

2015 Texas Instruments Incorporated

education.ti.com

10 Minutes of Code

TI-BASIC

Teacher Tip: The list of formulas to use is given as a suggestion. You may choose to use
topics from your current curriculum. The goal is to keep the computation simple at this stage
with arguments used for input and Disp used for output, with the computation in the Disp
statement. Storing values into variables within the program will not be introduced until the
next unit (Unit 2) because it requires a discussion of local and global variables and the
scope of variables in general. The TI-Nspire CX allows the use of multi-character
identifiers, so words like side and height can be used as arguments.

2015 Texas Instruments Incorporated

education.ti.com

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy