need some quik help from u computer majors

There is actually a built in class that allows you to do this, it is called.

convertFeetToMeters(feet) so just call that with the argument feet.

I assume you know how to do input output.

 
just find what the ratio is and multiply the input by that number

ie:

1 foot = 0.3048 meters

1 meters = 3.2808399 feet

I'm not sure if java has some spiffy built in conversion funtion since I've never coded in java......

 
huh what? im gettin compile error

heres what i have so far, dont i have to identify the value of whats being inputted?

public class second {

public static void main (String[] args){

public static final double feet2meters = 0.305;

System.out.println(output)

}

}

 
huh what? im gettin compile error
illegal start of expression

public static final double feet2meters = 0.305;
not sure there, like I said I've never programmed in java but it's probably just syntax... or some lame rule about doubles.... besides you don't need a double for that, you are wasting memory //content.invisioncic.com/y282845/emoticons/biggrin.gif.d71a5d36fcbab170f2364c9f2e3946cb.gif

 
huh what? im gettin compile error
heres what i have so far, dont i have to identify the value of whats being inputted?

public class second {

public static void main (String[] args){

public static final double feet2meters = 0.305;

System.out.println(output)

}

}
I dont believe that you can have main inside of a class. take out that class and try to recompile, also make sure you have your imports correct. I have not programmed in jave in a long time, sorry. You will learn quick to not like it.

 
yah I ditched CS because it was too much of a PITA... I still know 5 languages but I'm self taught and I'm sure my code would make a professor cry.... but then again I never want to be someones *****... I want to be the boss //content.invisioncic.com/y282845/emoticons/smile.gif.1ebc41e1811405b213edfc4622c41e27.gif

what I would do is just take a working program, gut it and drop in the code to get the input and hard code the multiplication..... quick and dirty....

 
will i have to learn this crap if i choose to major in compter science?
Definitly, I think most colleges make you start out with Jave then you move to C++(which is great), and you will learn Assembler(Which is a pita but useful.)

 
how hard is learning computer science? im great with computers i can build them if u give me the parts and i can maintain a computer so it has absolutely no viruses and no bullshit programs you dont need installed. given that much information, should computer science be a breeze for me? im debatnig between majoring in Real Estate (to become a real estate appraiser), computer science (to become a software engineer), or engineering (because i love cars).

 
how hard is learning computer science? im great with computers i can build them if u give me the parts and i can maintain a computer so it has absolutely no viruses and no bullshit programs you dont need installed. given that much information, should computer science be a breeze for me? im debatnig between majoring in Real Estate (to become a real estate appraiser), computer science (to become a software engineer), or engineering (because i love cars).
"Computer science is no more about computers than astronomy is about telescopes." -Edsger Dijkstra

CS is a lot of math and logical thinking, its not about being able to take apart and put together a computer.. It involves a lot of computational theory and discrete math. Don't go into CS unless you are very comfortable with logic and math.

 
huh what? im gettin compile error
heres what i have so far, dont i have to identify the value of whats being inputted?

public class second {

public static void main (String[] args){

public static final double feet2meters = 0.305;

System.out.println(output)

}

}
That code is meaningless, you haven't defined what that variable output is. Infact I don't even know where you are going with that code, where is the input coming from? The command line?

 
Activity
No one is currently typing a reply...

About this thread

Twistid

5,000+ posts
150.5
Thread starter
Twistid
Joined
Location
in a space out of sound
Start date
Participants
Who Replied
Replies
19
Views
312
Last reply date
Last reply from
AcidicDreams
IMG_20260506_140749.jpg

74eldiablo

    May 22, 2026
  • 0
  • 0
design.jpeg

WNCTracker

    May 22, 2026
  • 0
  • 0

New threads

Top