Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » how do i declare it/do it.(i need help)
how do i declare it/do it. [message #750503] Tue, 25 October 2011 20:30 Go to next message
Steven  is currently offline Steven Friend
Messages: 7
Registered: October 2011
Junior Member
Hi I'm writing a program for class to calculate employee's paychecks and cant seem to figure out what to use to define a variable i want to call name. What would name be. The input from the keyboard for name will be the users name. I will later ask the program to output name.

I also need help figuring out how to write a total that continues adding the final result of every run of the program keeping a running total.
Re: how do i declare it/do it. [message #750578 is a reply to message #750503] Tue, 25 October 2011 21:06 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
On 10/25/11 4:30 PM, Steven wrote:
> Hi I'm writing a program for class to calculate employee's paychecks and
> cant seem to figure out what to use to define a variable i want to call
> name. What would name be. The input from the keyboard for name will be
> the users name. I will later ask the program to output name.
> I also need help figuring out how to write a total that continues adding
> the final result of every run of the program keeping a running total.

A) This is not a place to go to have other people do your homework for you.
B) Read this before posting questions:
http://catb.org/~esr/faqs/smart-questions.html#intro
Re: how do i declare it/do it. [message #750611 is a reply to message #750578] Tue, 25 October 2011 21:21 Go to previous messageGo to next message
Steven  is currently offline Steven Friend
Messages: 7
Registered: October 2011
Junior Member
I did not ask for anyone to do my homework i asked for help defining a variable. I don't know how to define a word that will change upon every run of the program upon the users entry of their name. I don't know what to call that its clearly not an int or double and i cant use an if else or similar style of thing to define it as I cannot predict everyones names. I am a newbie clearly but i am also not a slacker. I have been trying to figure it out as well as trying to find something in my book but have had no luck which is why i am here asking. If I wanted you to do my homework for me I would have posted the directions and asked you to write my code.
Re: how do i declare it/do it. [message #750677 is a reply to message #750611] Tue, 25 October 2011 21:52 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

On 2011.10.25 15:21, Steven wrote:
> I did not ask for anyone to do my homework i asked for help defining a
> variable. I don't know how to define a word that will change upon every
> run of the program upon the users entry of their name. I don't know what
> to call that its clearly not an int or double and i cant use an if else
> or similar style of thing to define it as I cannot predict everyones
> names. I am a newbie clearly but i am also not a slacker. I have been
> trying to figure it out as well as trying to find something in my book
> but have had no luck which is why i am here asking. If I wanted you to
> do my homework for me I would have posted the directions and asked you
> to write my code.

This forum is for Eclipse newcomer set-up, questions on the Eclipse
workbench, etc. It's not a Java programming forum (Eclipse hosts a wide
number of environments from PHP and C/C++ to Fortran and many others).

Your question has nothing to do with Eclipse and belongs in another forum.

I'm assuming you're asking a Java question, though you have not made
that clear at all. (And, it's fairly certain you've never written code
in any language--which is why your question is getting these responses
you don't like. Welcome to programming: you may find you enjoy it once
you get the hang of it.)

If you have SPECIFIC questions on Java, I would suggest JavaRanch.com or
JGuru.com. Stackoverflow.com is also a good place.

However, I fear that the question you're asking will get pretty much the
same response there.

To get started, I would suggest a good textbook such as Head First Java.

Best of luck,

Russ
Re: how do i declare it/do it. [message #750833 is a reply to message #750677] Tue, 25 October 2011 23:07 Go to previous message
Steven  is currently offline Steven Friend
Messages: 7
Registered: October 2011
Junior Member
Thank you for your time and explanation I now better understand the lack of a helpful response despite my currently using eclipse c++ to write this program. I have written code in both c++ and java but not much I am in intro classes for both and am obviously learning. Thank you for your help and encouragement.

Steven
Previous Topic:Problem with TeamCity plugin and Remote Run
Next Topic:Eclipse Indigo refactor bug?
Goto Forum:
  


Current Time: Tue Mar 19 02:15:45 GMT 2024

Powered by FUDForum. Page generated in 0.03133 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top