Q. what are the most common computer languages today of those which is easier and what are the pro's and con's of each one?
Answer
Totally depends on what you want to do with it really. Different programming languages, even the ones that are considered 'general purpose' tend to be better suited to some jobs than others. That being said, if you're just learning programming,, you'll want to go with a general purpose language that has an easy syntax...that is, its relatively easy to read, even for someone who's never looked at code.
I recommend VB.net for that, and then after that Ruby. They both have easy syntax, (though Ruby's is better), but VB.net enforces some rules that are important for beginners to learn, whereas Ruby does not.
Once you've got the concepts behind one language down, you'll find that learning another one, even a relatively complex one like C++ or Java is much simpler.
Totally depends on what you want to do with it really. Different programming languages, even the ones that are considered 'general purpose' tend to be better suited to some jobs than others. That being said, if you're just learning programming,, you'll want to go with a general purpose language that has an easy syntax...that is, its relatively easy to read, even for someone who's never looked at code.
I recommend VB.net for that, and then after that Ruby. They both have easy syntax, (though Ruby's is better), but VB.net enforces some rules that are important for beginners to learn, whereas Ruby does not.
Once you've got the concepts behind one language down, you'll find that learning another one, even a relatively complex one like C++ or Java is much simpler.
Developing code for computer science?

Justin
Develop code using a conditional statement that allows a student to drive a car if he or she is over the age of 18.
Sorry, in java
Answer
EDIT: Sorry. I'm not to knowledgeable about java.
You didn't specify the language so in VB.net it would be:
If age > 18 Then
MsgBox("Drive Car")
Else
MsgBox("No Car")
End If
You would need to set the variable "age" to whatever you need the age to be.
In VB you can set a variable by typing " dim age as integer = [The Age You Need Here] "
If you want to get the info from a vb textbox, name the textbox and use this instead to set the age variable
dim age as integer = textboxname.text
I hope this helps. Have a great day!
EDIT: Sorry. I'm not to knowledgeable about java.
You didn't specify the language so in VB.net it would be:
If age > 18 Then
MsgBox("Drive Car")
Else
MsgBox("No Car")
End If
You would need to set the variable "age" to whatever you need the age to be.
In VB you can set a variable by typing " dim age as integer = [The Age You Need Here] "
If you want to get the info from a vb textbox, name the textbox and use this instead to set the age variable
dim age as integer = textboxname.text
I hope this helps. Have a great day!
Powered by Yahoo! Answers
Comments :
Post a Comment