Create your first interactive program in *Juliar *

September 20, 2016 | Views: 2906

Begin Learning Cyber Security for FREE Now!

FREE REGISTRATIONAlready a Member Login Here

Today, we will create our first interactive program in *Juliar *.

First we will need latest version of *Juliar *

We can get this by going to www.juliar.org/downloads.ju and downloading the Linux or Windows version.

Open notepad or your favorite text-editor program and copy and paste the following:

 

How old are you?

*ask x*

 

*condition=*>= 18 *get x**

You are too old.

*

*condition=*< 18 *get x**

You are just the right age.

*

 

Save the file as output.txt and place it in the same folder as where you downloaded Juliar/Juliar.exe.

Double click on Juliar.exe  or if on Linux, open Juliar (make sure to set execution flag on) and type the following:

 

*save=output.txt *import test.txt **

 

Go through the prompt and answer the questions.

Once you’ve done that, all your responses should be saved into output.txt.

Open that file and verify response 🙂

Good luck and have fun with this new programming language!

The language is still in the early stages of release; however, it is meant to be super high in performance.

If you have suggestions, let me know! It’s always great to hear feedback.

Thanks!

For the latest information and updates on Juliar, please visit www.juliar.org

Share with Friends
FacebookTwitterLinkedInEmail
Use Cybytes and
Tip the Author!
Join
Share with Friends
FacebookTwitterLinkedInEmail
Ready to share your knowledge and expertise?
8 Comments
  1. Did it but i there wasn’t any prompt of questions for me..
    I got this “Cannot import from test.txt” in my output.txt

    • Dear @MIAMI305,

      Sorry for a late reply. I was very sick last week. Do you happen to have test.txt file in the same folder as Juliar.exe. If so, make sure that you have “Show extensions turned on”. If you don’t have it on try renaming file to “test” or you can try *import test.txt.txt *

      Let me know if you have further questions!

    • Dear @MIAMI305,

      Sorry for a late reply. Do you happen to have test.txt file in the same folder as Juliar.exe. If so, make sure that you have “Show extensions turned on”. If you don’t have it on try renaming file to “test” or you can try *import test.txt.txt *

      Let me know if you have further questions!

  2. Thank you for showing us a new programming language. 🙂

  3. Did the steps and got a “saved” message but nothing happened …

Comment on This

You must be logged in to post a comment.

Our Revolution

We believe Cyber Security training should be free, for everyone, FOREVER. Everyone, everywhere, deserves the OPPORTUNITY to learn, begin and grow a career in this fascinating field. Therefore, Cybrary is a free community where people, companies and training come together to give everyone the ability to collaborate in an open source way that is revolutionizing the cyber security educational experience.

Support Cybrary

Donate Here to Get This Month's Donor Badge

 

We recommend always using caution when following any link

Are you sure you want to continue?

Continue
Cancel