To get to the edit screen, you can either tap the EDIT button at the bottom of the About this program screen, or you can tap the BACK ARROW button to get back to the Programs list and then tap the program’s EDIT button.
The program starts out with a sort of mini-sample. You’ll be deleting the mini-sample code and replacing it with your own.
Most conversion programs follow the same pattern:
- Get a number from the calculator display. This is the number of square feet.
- Multiple or divide it to get the new value. To convert square feet to acres, just divide by 43560.
- Output a string to the calculator display to say what we’ve done.
- Return the numeric value so it’s set into the calculator
The program to do these is:
value = Calculator.Value
newValue = value / 43560
Calculator.Message = “Converted ”+ value+ “ square feet to acres”
Each line corresponds to one of our steps. Enter this code into the program area.
Next step: Run the program to test it!