Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

How to Program a Calculator pt 3: Perfecting a Program

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
12,770
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on May 29, 2008

Part 3 of 4. This segment teaches how to expect and correct errors in the calculator program from part 2. This is where to add a lot of "if, then" statements. By the end, the program can solve problems with both the input and the output that can occur in unusual circumstances. In the next segment, I move quickly through the steps of creating a program with menus. A Palaverous Production created by Jeff Green on 5-28-2008.

Helpful site for programming:
http://bgo.netfirms.com/tutorials/index.html

How to Program a Calculator:
1: The Basics
2: Creating a Simple Program
3: Perfecting a Program
4: Making Menus

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (AlbatrossNecktie)

  • how do i add the arrow?

  • @thetechreviewman Use the 'sto' key at the bottom left.

  • how did you get a new line when you were anding the If statement after prompt c?

  • @phantomswordsmen Press 2nd+ins (the del button) and then hit enter.  You are inserting an enter.

  • How do you delete one program only?

  • @donovanfonseca Go to 2nd+mem (it's the plus key), cycle to 2 (memory management / delete), go to 7 (program), and use the delete button on the appropriate program.

see all

All Comments (77)

Sign In or Sign Up now to post a comment!
  • ok so lemme just say this.

    yoouuuuu are THE BESTTT!!!!!!!!!!! THIS WAS AN AMAZING SERIES OF VIDEOS

    (im commenting here cuz i didnt watch the last one haha)

    and i understood how to make a basic program after watching these. that's just amazing.

    and so i decided to test myself by making a quadratic formula program by myself

    (i know its a simple one but hey im a beginner :P)

    and I DID IT. now imma put an if then statement for the square root parts answer is negative.

    I LUVV YOU!!! :D

  • after prompt C press 2nd and ins..

  • We know that teachers are evil :P lol

  • Also, little tip. To display a string on two separate lines without putting a whole new display command, you can say disp, then one string, THEN A COMMA, and then just another string.

  • If you still have and use this program, I suggest that you make the following change: for the user entering a decimal then multiply it by a hundred, your if statement executes simply if it is lower than one. Therefore, if your user enters a negative value, either by accident or just to see what will happen, your program will again, fail. I think you should add a bit of humor. Example: if C-0 then disp "don't try to fool me, user. My creator made me error proof! So ha. Put in a positive number p

  • love the program!! 5stars... can you make one for the TI-89..PLEASE. thanks

  • If you don't use the "then" in an "if-then" the segment works for one line

  • You seem smart I hope you do computer programming and not just this kid stuff lol, nice videos

  • @AlbatrossNecktie thanks i figured that out like a second later :P thanks buddy

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more