Weight

Application to record the weight variation on a period of time.

I wanted to have a simple application to control the weight variation during a diet. At that time I had a Palm PDA M505 and it would be practical to use that platform to have this program. I searched the internet for some available freeware application on the internet. But no one was as practical as I wanted. Then, I chose to write my own application. I create my code to run on the SuperWaba virtual machine version 3.0.

Picture: The code was developed to run on the SuperWaba virtual machine Version 3.0.

The program style for SuperWaba are practically the same as Java programming. The code was not exactly compatible with a Java Micro Edition (JME) application. The program that wrote uses graphical components that resemble an AWT application. The generated code could had a Palm native executable part. It generated two files: one Weight.prc and one Weight.pdb. The program Weight.prc is nothing more than a program that calls the SuperWaba virtual machine and passes Weight.pdb to be interpreted. The files with "pdb" extension are usually data files. In this case, Weight.pdb has the instructions to be interpreted by the virtual machine.

Picture: I drew an icon to represent the application.

The main window of the application contained a list of the weights already entered, the number of records, the heavies weight, the weight average, the smallest weight and the last 5 recores entered so far. They was also two buttons. One was to add new weights and the other was to generate a chart with the weight variation during a period of time.

Picture: Main window of the application.

The input of records was very simple. There was a column of buttons for each digit of the weight. One column of buttons was to the hundred digits, the other was to the dozen and one to the units. Besides that there was another column to the tenth of kilos. To enter a new weight record it was necessary to turn the application, to click in the add button, press three buttons corresponding to the weight digits and click on the Ok button, that is, a very fast and simple process.

Picture: Easy way to enter new weight records.

When running the application the user could click on the button to generate a chart with the weight variation. If there was not records that it showed two crossed lines like the image below.

Picture: Chart of the weight variation.

The executable and the sources codes are available below. The SuperWaba virtual machine version 3.0 is also available.

Download the Weight Program
Information Content

Name

Application to record the weight variation on a period of time.

Implementation date

May 2001

Size

153Kb

Executable and source code

2001-05-WeightTracker.zip

Language or Compiler

SuperWaba Version 3.0