Tag Archives: BASIC

BASIC Intermediates

Hey, time goes fast! We’re covering intermediate ground and moving fast! Here is another archivelike page but for the intermediate stuff

  • If-Then and Goto Commands

In This section, we got to introduce the last of our commands, the if then and goto. We showcased a small game in which you took risks to roll a 6 sided die and hopefully not get snake-eyed, or stand.

  • The Small (And Big)Tricks To BASIC

In this section, we saw tricks that CodePress used to create better programs, as well as graphical design. We also saw the Majalo command

  • Referrers and Boxes

In this section, we got to see trap boxes made with if then, goto, and end commands and how it differs from HTML programming.

Hey guys! If you’ve been riding the BASIC rail line, you know what’s next: The Advanced!

Experiencedsitemaker

Referrers and Boxes

OK, we’ve approached the end of learning new commands, now we’ll actually focus on creating great programs with them. In this post, we’ll cover using trapped boxes with the goto, end, and if-then commands. In this program, we have a trap box:

Continue reading Referrers and Boxes

The Small (And Big) Tricks to BASIC programming

Even though we learn the basics, there must be some little tricks to BASIC:

  • Using The “Majalo” Command To Switch Players

In a player game, you might want to switch between players. A simple 2-person game between player “0” and player “1”  probably is hard to program, but “Majalo”, or the remainder of the quotient, is here to help! You can freely copy this line to use Majalo to switch/alternate between two players:

(a+1)%2

The % sign should symbol the Majalo command. Even though it might seem confusing at first, This should clear it up: Continue reading The Small (And Big) Tricks to BASIC programming

The Basics of BASIC

Okay, now we covered all basics of BASIC. These pages are the posts of the Basics of BASIC programming:

In This Section We Learned about the print feature and how it’s the basis of BASIC programming

In This Section we learned about program directions and the run/list feature in BASIC. Directions are the basis of BASIC programming

In this section we learned about variables and how they are different from the mathematical variables, along with the input, randomizing, and algorithm of numbers. We also learned the becomes feature and described the linking of the If-Then statements in the Intermediate section.

Hopefully you learned a bunch from this tutorial/tutorials! In the Intermediate and Advanced stages of BASIC programming, you should find yourself looking at this archive page of the basics.

“No skyscraper construction is possible without the foundations of it”

Cheers,

Experiencedsitemaker- Or more relevant: Experiencedprogrammer

Listing Programs And Respective Commands

In order to write a program, you must list your steps:

1 print “Hello, World!”

2 print “Goodbye, World!”

3 print “Never Mind…”

It’s easy to list steps, you just give the computer directions. In MASICA.jar (please refer to the getting started guide), type “1” (no quotations)  in the command box and it should be bold. If it is not, remember to not type anything before the “1”- not even a space. Then, type in anything we learned of your choice. Press enter. Then type the number 2 in the command box and the command, and so on Continue reading Listing Programs And Respective Commands

Printing Stuff in BASIC

The first thing to do in BASIC is to learn the simplest programming starter: print. To do this, open up MASICA (read this post if you don’t know what this means) or the online BASIC engine, and type this:

print “Hello, World!”

The engine/MASICA should display this on the next line:

Hello, World!

This is boring, but print is a very big function to success in BASIC. Practice these exercises for practice:

1. Make the computer say Goodbye World

2. Make the computer say Quotation is essential for success

3. Make the computer say This Is Basic, not HTML

Program Safe,

Experiencedsitemaker

The Free Coding Experience-Code Guy

Hi Coders, Advanced and Beginners…

Welcome to Code Guy! Our webpage URL is easy:              codeguyblog.wordpress.com

We’ll be posting a few times a day, however, if I put everything I know in this and it’s not Saturday, we’ll have to wait until Saturday, my learning day. We’ll alternate between BASIC and HTML programming for some time, I don’t know if we’ll get to LOGO and stuff, but we’ll see.

First of all, I’ll give you the steps to actually get to the place where you type in commands I teach you. It’s simple:

HTML: The easiest way to do this is to use Microsoft’s Notepad on Windows.  Search Notepad in the Start Menu/Metro mode, and save your file as <name>.html Important: Do not save the file as .txt, the standard. To open and view your HTML program,  go to your location where you saved the file and click “Open In”; Select the browser of your choice.

You may use other tools such as developer/inspect element in browsers and Firebug if you are using Firefox.

BASIC: This is harder. I strongly reccommend this .jar file (I DID NOT create this) to program BASIC: MASICA.jar. However, if you want to use web-based BASIC programming, you can Google “BASIC programming” and you probably will find one.

Happy Coding!

Experiencedsitemaker

If Then Statements And Goto Command

After compiling all those things that we just did, we finally get to the even juicier part: If then! After this post, you should be able to create simple yet useful programs for yourselves. Here is my simple program:

1 a=0

2 print “You have:”,a

3 print “Hit or stand?”

4 input g

5 if g==”y” then goto 8

6 print “You stand with:”,a Continue reading If Then Statements And Goto Command

Variables and Numbers

OK, Mr. CodePress, we’ve learned about letters, printing, and lists. Now, we get to the juicy part: variables. No, these are not like your variables in your math class; these variables are assigned numbers either randomly by the computer, using an algorithm by the computer, or entered using the input tag.

Using “Input”

Input is used to assign a variable to a number, letter, or word. They work with if-then tags (covered in the next post) to make great choice-designed programs (which are pretty much almost every useful program)

Test It Out:

1 print “What number”

2 input g

3 print ,g, Continue reading Variables and Numbers