Lovely people, just in case anyone's wondering what kind of comments they could post..
well, any kind is permissible; complains, questions, encouragement, support, commendation, criticism......just about anything but i would appreciate commendations and questions....as this would assist me decide what to post and more importantly i would be helping all the inquisitive minds out there....thanks....
So guys yap, another sweet post ......
Programming,, what is programming ? Basically it is communication with your computer, simple.
I know there are a lot of people out there that have developed an interest for programming but not sure how to start, well, I understand and believe me i felt the same way when i started so here is a list of programming languages u might want to consider.
* JAVA my special programming language
* JavaScript
* Swift
* Perl
* CSS, HTML, PHP...Web programmming.
* Python.....
So the list above might not be seeming so helpful now, but relax.
I would recommend python for the newbie programmer , why? well first of all it is less detailed, not simple but less detailed which is what a newbie programmer should look out for..
Secondly it doesn't take much to set up....all u have to do is download IDLE that's all and you are set to program with python..
I know, you might not understand until you implement it , however, since i am a nice guy i will you guys a little peek of how easy python programming is...below is source code for a simple calculator...just download IDLE paste this in it after of course you have set it up and it's running, press F5 and you would see..and if you are
interested in learning further just comment about it i give you guys a few more tips and sources where you could get in depth knowledge for this.
Source Code
while True:
##calculator program..
print("Options")
print("Enter '1' to add two numbers")
print("Enter '2' to subtract two numbers")
print("Enter '3' to multiply two numbers")
print("Enter '4' to divide two numbers")
print("Enter '5' to get the modulus between two numbers ")
print("Enter '6' to get the power between two numbers")
print("Enter '7' to get the quotient between two numbers")
print("Enter 'quit' to end the program")
print("")
user_input = int(input("Enter option : "))
if user_input == "quit":
print("Quitting.....")
break
elif user_input == 1:
print("")
num1 = float(input("Enter a number: "))
num2 = float(input("Enter a number: "))
result = str(num1 + num2)
print("The answer is"+ " "+result)
print("")
elif user_input == 2:
print("")
num1 = float(input("Enter a number: "))
num2 = float(input("Enter a number: "))
result = str(num1 - num2)
print("The answer is "+result)
print("")
elif user_input == 3:
print("")
num1 = float(input("Enter a number: "))
num2 = float(input("Enter a number: "))
result = str(num1 * num2)
print("The answer is "+result)
print("")
elif user_input == 4:
print("")
num1 = float(input("Enter a number: "))
num2 = float(input("Enter a number: "))
result = str(num1 / num2)
print("The answer is "+result)
print("")
elif user_input == 5:
print("")
num1 = float(input("Enter a number: "))
num2 = float(input("Enter a number: "))
result = str(num1 % num2)
print("The answer is "+result)
print("")
elif user_input ==6:
print("")
num1 = float(input("Enter a number: "))
num2 = float(input("Enter a number: "))
result = str(num1 ** num2)
print("The answer is "+result)
print("")
elif user_input == 7:
print("")
num1 = float(input("Enter a number: "))
num2 = float(input("Enter a number: "))
result = str(num1 // num2)
while float(result) > 2:
print("This answer is greater than two and a loop is about to start ")
print("The answer is "+ result)
print("Running the application")
else:
print("Unknown input")
So guys yap, another sweet post ......
Programming,, what is programming ? Basically it is communication with your computer, simple.
I know there are a lot of people out there that have developed an interest for programming but not sure how to start, well, I understand and believe me i felt the same way when i started so here is a list of programming languages u might want to consider.
* JAVA my special programming language
* JavaScript
* Swift
* Perl
* CSS, HTML, PHP...Web programmming.
* Python.....
So the list above might not be seeming so helpful now, but relax.
I would recommend python for the newbie programmer , why? well first of all it is less detailed, not simple but less detailed which is what a newbie programmer should look out for..
Secondly it doesn't take much to set up....all u have to do is download IDLE that's all and you are set to program with python..
I know, you might not understand until you implement it , however, since i am a nice guy i will you guys a little peek of how easy python programming is...below is source code for a simple calculator...just download IDLE paste this in it after of course you have set it up and it's running, press F5 and you would see..and if you are
interested in learning further just comment about it i give you guys a few more tips and sources where you could get in depth knowledge for this.
Source Code
while True:
##calculator program..
print("Options")
print("Enter '1' to add two numbers")
print("Enter '2' to subtract two numbers")
print("Enter '3' to multiply two numbers")
print("Enter '4' to divide two numbers")
print("Enter '5' to get the modulus between two numbers ")
print("Enter '6' to get the power between two numbers")
print("Enter '7' to get the quotient between two numbers")
print("Enter 'quit' to end the program")
print("")
user_input = int(input("Enter option : "))
if user_input == "quit":
print("Quitting.....")
break
elif user_input == 1:
print("")
num1 = float(input("Enter a number: "))
num2 = float(input("Enter a number: "))
result = str(num1 + num2)
print("The answer is"+ " "+result)
print("")
elif user_input == 2:
print("")
num1 = float(input("Enter a number: "))
num2 = float(input("Enter a number: "))
result = str(num1 - num2)
print("The answer is "+result)
print("")
elif user_input == 3:
print("")
num1 = float(input("Enter a number: "))
num2 = float(input("Enter a number: "))
result = str(num1 * num2)
print("The answer is "+result)
print("")
elif user_input == 4:
print("")
num1 = float(input("Enter a number: "))
num2 = float(input("Enter a number: "))
result = str(num1 / num2)
print("The answer is "+result)
print("")
elif user_input == 5:
print("")
num1 = float(input("Enter a number: "))
num2 = float(input("Enter a number: "))
result = str(num1 % num2)
print("The answer is "+result)
print("")
elif user_input ==6:
print("")
num1 = float(input("Enter a number: "))
num2 = float(input("Enter a number: "))
result = str(num1 ** num2)
print("The answer is "+result)
print("")
elif user_input == 7:
print("")
num1 = float(input("Enter a number: "))
num2 = float(input("Enter a number: "))
result = str(num1 // num2)
while float(result) > 2:
print("This answer is greater than two and a loop is about to start ")
print("The answer is "+ result)
print("Running the application")
else:
print("Unknown input")
One more thing programming is for the patient and devoted mind....
No comments:
Post a Comment