Home    General Stuff    General Chat
#1

Please help with java programming

Archive: 12 posts


i'm taking an intro to java program and we need to make a temperature converter program like one that takes F to C and i can't seem to make a code, i'm so confused and my teacher doesn't really help, any help?2009-09-14 01:13:00

Author:
Frank-the-Bunny
Posts: 1246


Well, as a starting point, to convert from C to F:

Times by 1.8
Add 32

And from F to C

Take away 32
Divide by 1.8

Sorry, but I don't know Java, but this is a starting point, no?
2009-09-14 01:18:00

Author:
dawesbr
Posts: 3280


i think so i dunno we just started and he expects me to know all this and i have no idea i'm lost trying to program anything2009-09-14 01:21:00

Author:
Frank-the-Bunny
Posts: 1246


Well, does he have an application shell?

Well, start by declaring a variables for both. I think that double would work. So, near the beginning of the program,

double fahrenheit;
double celsius;

don't forget the ;

And then we need to convert them- we did this in my Java class last week, so yeah... anyway, we'd also need a scanner class... Hm. you may need someone else for this ;o Our teacher is just warming us up now, but, uh, yeah...

Anyway, do you understand the basic concepts of variables and all that stuff? :/
2009-09-14 01:40:00

Author:
RockSauron
Posts: 10882


kind of i don't know what your talking about with shells and stuff our teacher talks to fast and is very unhelpful with questions so i basically need to start from square 1 again, like i know the:
public class name of file
I am kind of tech savy i think but when he broke into code i was lost immediatly
2009-09-14 01:54:00

Author:
Frank-the-Bunny
Posts: 1246


I could never learn Java, very complicated

Try http://w3schools.com/ , it helped me learn html quite well

EDIT: Oops, wait, that's for web building stuff >.<

EDIT2: Maybe http://javalessons.com/ or http://www.landofcode.com/java/ , but I just looked them up on google so I don't know if they are any good...
2009-09-14 02:03:00

Author:
goldenclaw13
Posts: 224


sorry to bumb an old thread i really need help soon(ends soon and i can't fail) please help me guys!2009-10-29 02:46:00

Author:
Frank-the-Bunny
Posts: 1246


Have you tried typing "java convert Celsius to Farenheit" into Google? I came back with a result that literally had code in place. Now I'm not suggesting you steal the code, but it should give you something to look at and, hopefully, something to go off of. Good luck.2009-10-30 16:19:00

Author:
supersickie
Posts: 1366


Great suggestions... there is a ton of info on the web for about any language. Java especially has a wealth of info.

Have you written anything in Java yet? Seems like quite a long time from your first post if you are still be struggling.

Maybe try a simple one that just adds some numbers together. It really shouldn't be hard to pop the conversion forumula in once you have the basic class working properly. i.e. actually take some input and pop out a response. Even a simple "hello world" class.

I would also think whatever book you have would have some basic examples of working java classes that would get at least the skeleton of the code.
2009-10-30 16:39:00

Author:
jwwphotos
Posts: 11383


i have 8 programs to make for tuesday, when the marking period ends and he'll fail me, i don't understand it and all he told me was stick with it you'll get it I DON"T GET IT, i have all sorts of programs to make, ughhhhh2009-11-01 16:52:00

Author:
Frank-the-Bunny
Posts: 1246


...sorry to say, but I imagine so.

Without responding to any question that anyone has posed in attempts to help you, yup.. you are probably insuring that you are destined to fail miserably.

Truthfully it sounds to me like you probably should not be taking this class or any sort of programming at all. Most programmers I've ever known that are any good at it naturally love to fiddle with logic and figure things out. Problem solving is synonymous with being a programmer and it just doesn't sound like you enjoy that sort of thing.

Best of luck!
2009-11-01 17:26:00

Author:
jwwphotos
Posts: 11383


true, i tried it, i love logic puzzles anything like that, it's just my teacher is going wayyyyyy to fast because it's only a nine week course so it's just a shame i took it, but oh well maybe i'll learn it one day, when i can go at a slower pace that fits me more, guess i'm ready to fail, *sigh*2009-11-02 02:26:00

Author:
Frank-the-Bunny
Posts: 1246


LBPCentral Archive Statistics
Posts: 1077139    Threads: 69970    Members: 9661    Archive-Date: 2019-01-19

Datenschutz
Aus dem Archiv wurden alle persönlichen Daten wie Name, Anschrift, Email etc. - aber auch sämtliche Inhalte wie z.B. persönliche Nachrichten - entfernt.
Die Nutzung dieser Webseite erfolgt ohne Speicherung personenbezogener Daten. Es werden keinerlei Cookies, Logs, 3rd-Party-Plugins etc. verwendet.