Using Aakash Programming Lab(APL)

Overview

  1. Locate and click on Aakash Programming Lab(APL) icon in application menu
apl icon

Aakash Programming Lab Icon

  1. After clicking on APL icon, you will see a screen with four icons horizontally placed, naming C, C++, Python and Scilab
apl main page

APL main page

  1. In any of the above four option(C, C++, Python, Scilab) we have following common components.

    • Text editor: is located on the left hand side. One can write source code in text editor. If you click on the text editor area, a virtual keyboard will appear and one can use it to write programs. Click back button (located at bottom left corner on Android status bar) to close the virtual keyboard.

      text area and output console

      Text editor with console output

    • Console output: is located at right hand side, this will show the output of the program.

      back button

      Back button

    • Execute button: is located on left side of text area. It is a small icon(looks like gears). After writing code in text editor, one can click on execute button to view output. The output will appear in console output screen(it should take approximately 2 to 10 seconds, depends upon code and algorithm).

      execute

      Execute button

    • Example Programs: Clicking on the option button at bottom (looks like three vertical dots), will pop up the horizontal menubar from the bottom. One of the option is Example menu.

      option button

      Option button

      horizontal menubar

      Menu bar with options

    • Save Code: The Save Code option will pop up a dialog box which ask’s for a file name. You don’t have to provide the file extension, it will be appended by-default. All codes will be saved in /mnt/sdcard/APL/ directory. Within the /APL/ directory, you can browse through respective language directory to view your code or an [image] file.

      horizontal menubar

      Saving the code

    • Click on the Example Programs button, it will show list of example programs. Click on any example to select. The example code will appear on text editor. Then click on the execute button to run. Output will appear in Console output. One can optionally edit the code in text editor and execute it again.

      choose examples(python)

      List of examples

  2. Scilab has one extra component, i.e plot option. It is located at top left corner of the page. Check this option if your code has any plots involved. Uncheck when not needed. Most examples provided in Scilab have graphical output.

    plot icon check box for scilab graphical output

    Plot - check box

  3. One can switch back to other programming environment by clicking back button which will land you to Main page (step 2).

  4. To exit APL one has to click back button twice, this will pop up one confirmation dialog box. Click Yes to exit Aakash Programming Lab

    exit APL

    exit Aakash programming lab

Table Of Contents

Previous topic

Welcome to Python user’s manual and reference

Next topic

Python programming using APL

This Page