January 19, 2025, 03:14:03 PM

1,531,386 Posts in 46,736 Topics by 1,523 Members
› View the most recent posts on the forum.


WHAT PROGRAMMING LANGUAGES DO YOU KNOW OR WANT TO LEARN

Started by ncba93ivyase, December 26, 2008, 08:21:47 PM

previous topic - next topic

0 Members and 4 Guests are viewing this topic.

Go Down

ncba93ivyase

I know Python, I learned just a tiny bit of Ruby (not enough to ever really be useful), and I just barely started on C but got lazy and went back to working on other things.

I'll probably get deeper into C early next year and I want to learn something crazy like Piet, Brainfuck, or Malbolge which would never be useful but fun.

and if you don't want to learn any, do it anyways. just don't learn java because java sucks and put jmv in the insane asylum

Quote from: ncba93ivyase on June 18, 2014, 07:58:34 PMthis isa great post i will use it in my sig

hotlikesauce.


Daddy


ncba93ivyase


Quote from: ncba93ivyase on June 18, 2014, 07:58:34 PMthis isa great post i will use it in my sig

ME##


ncba93ivyase

Quote from: ME86 on December 26, 2008, 08:28:28 PM
java looks like fun
and this is why you're homosexual

Also, I like how nothing on jim v's site leads to anything but "explanation soon m8"

Quote from: ncba93ivyase on June 18, 2014, 07:58:34 PMthis isa great post i will use it in my sig

Daddy

Quote from: ME86 on December 26, 2008, 08:28:28 PM
java looks like fun
JAVA IS NOT FUN

IT IS NOT
Shit fuck, does this look FUN?!
Code Select
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package conversion;

/**
*
* @author jamesvalente
*/
public class DistanceFT {

    private double feet,
            meters,
            length,
            convert;
    private int response;

    /** Creates a new instance of Distance */
    public DistanceFT() {
    }

    public DistanceFT(double length, double convert) {


        feet = length;
        meters = convert;


    }
     public void setLength(double feet){
             length = feet;
     }
     public double getLength(){
         return length;
     }
      public double conversionFactor(){
         convert = length * 0.3048;
         return convert;
     }
   
}
Code Select
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package conversion;

/**
*
* @author jamesvalente
*/
public class DistanceMetric {

    private double feet,
            meters,
            length,
            convert;
    private int response;

    /** Creates a new instance of Distance */
    public DistanceMetric() {
    }

    public DistanceMetric(double length, double convert) {


        meters = length;
        feet = convert;


    }
     public void setLength(double meters){
             length = meters;
     }
     public double getLength(){
         return length;
     }
     public double conversionFactor(){
         convert = length * 3.28;
         return convert;
     }
   
}
Code Select
/*
* DistanceTest.java
*
* Created on November 30, 2007, 11:35 AM
*
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
*/

package conversion;
import java.awt.*;
import javax.swing.*;
//import java.util.Scanner;
/**
*
* @author jamesvalente
*/
public class DistanceTest {
   
    /** Creates a new instance of DistanceTest */
    public DistanceTest() {
    }
   
    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
       /**Create window prompting for conversion type*/
        DistanceFT DistFT = new DistanceFT();
        DistanceMetric DistMet = new DistanceMetric();
       
        String[] choices = {"Feet to Meters", "Meters to Feet"};
       
        int response = JOptionPane.showOptionDialog(
                null,
                "Please select a conversion",
                "Conversion App",
                JOptionPane.YES_NO_OPTION,
                JOptionPane.PLAIN_MESSAGE,
                null,
                choices,
                choices[0]);
       
        if(response == 0){
            String feetIn = JOptionPane.showInputDialog(null, "Please input the distance in feet"); //Prompt for distance in feet
       
        double feet = Double.parseDouble(feetIn);
        DistFT.setLength(feet);
       
        JOptionPane.showMessageDialog(null, String.format( "You entered %.3f feet.\nDistance in meters is: %.3f\n ", DistFT.getLength(), DistFT.conversionFactor()));
        }
       
        else {
            String metersIn = JOptionPane.showInputDialog(null, "Please input the distance in meters"); //Prompt for distance in feet
         double meters = Double.parseDouble(metersIn);
         DistMet.setLength(meters);
         
         JOptionPane.showMessageDialog(null, String.format( "You entered %.3f meters.\nDistance in feet is: %.3f\n ", DistMet.getLength(), DistMet.conversionFactor()));
        }
    }
}


Dullahan


ME##


ncba93ivyase


Quote from: ncba93ivyase on June 18, 2014, 07:58:34 PMthis isa great post i will use it in my sig

superclucky

kewns are smelly

Dullahan


Daddy


The Oggmonster

"And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. "

Daddy

Code Select
#!/usr/bin/python
#OH FUCK I CAN CALCULATE SHIT

loop = 1

choice = 0

while loop == 1:
    print "LMAO Welcome to JMV's Calculator"
    print " "
    print "Nigga, pick an option:"
    print " "
    print "1) Add Shit"
    print "2) Subtract Shit"
    print "3) Multiply Shit"
    print "4) Divide Shit"
    print "5) Quit"
    print " "
   
    choice = input("Pick one, faggot:")

    if choice == 1:
        a1 = input("First Number: ")
        a2 = input("Second Number: ")
        print a1, "+", a2, "=", a1 + a2
    elif choice == 2:
        s2 = input("First Number: ")
        s1 = input("Second Number: ")
        print s1, "-", s2, "=", s1 - s2
    elif choice == 3:
        m1 = input("First Number: ")
        m2 = input("Second Number: ")
        print m1, "*", m2, "=", m1 * m2
    elif choice == 4:
        d1 = input("First Number: ")
        d2 = input("Second Number: ")
        print d1, "/", d2, "=", d1 / d2
    elif choice == 5:
        loop = 0
print "LOL THANKS"

Go Up