Page 1 of 1

any Java programmers out there?

Posted: Tue Jan 29, 2008 1:41 pm
by Mr Kleen
my boss has to write a java program for a class and he wanted to know if I knew anybody who had a similar program that he could look at to get him started.
here are requirements:
Create a birthday reminder program that accepts the user name and birthday
as an input and displays one of the following messages based on the user's
birthday:

1) Happy birthday <user>. You are <xx> years old today.
or
2) Hello <user>, you will be <xx> years old in <xxx> days. As of today,
you are <xx> years and <xx> days old.
or
3) If a user's birthday is in two weeks from today's date, then the program
should display. Hello <user>, I am excited to let you know that you
will be turning <xx> in <xx> days. Are you having any birthday plans?
or
4) If the user's birthday had been within the past two weeks, then the
program should display. Hello <user>, how did you birthday party go? As
of today you are <xx> years and <xx> days old.

Please note that you must have all the above 4 scenarios incorporated in
your Java program. Insert appropriate comments in the program and insert
version control information in the program (Author(s), Modified Date,
version, description).

Posted: Wed Jan 30, 2008 11:39 am
by ElZorro
Umm, if he needs help with that, he probably needs to go back and read the first chapter of his textbook... That is literally about 15 lines of code, and the only thing easier is 'hello world'.

Posted: Wed Jan 30, 2008 12:04 pm
by chicken n waffles
he also needs to do his own homework

Posted: Wed Jan 30, 2008 12:26 pm
by Mr Kleen
chicken n waffles wrote:he also needs to do his own homework
if he did his own homework he wouldn't be called Boss, he would be called employee. :lol:

Posted: Wed Jan 30, 2008 12:42 pm
by WRXWagon2112
Reminds me of a joke I once heard (hope I can re-tell it correctly):

A hot air balloon swoops down low and the occupant yells to a man walking along on the ground.

Balloonist: Hello! Can you tell me where I am?

Man on ground: You're about 10 feet in the air in a balloon.

Balloonist: You must be an engineer.

Man on ground: I am. How did you know?

Balloonist: Because while you're technically accurate, you've been of no help.

Man on ground: Then you must be a manager.

Balloonist: I am. How did you know?

Man on ground: Because even though you got yourself into trouble, it's now somehow my fault.

--Alan

Posted: Wed Jan 30, 2008 3:37 pm
by Sabre
^^^ So true!

I hate to be no help, but he really needs to do this on his own. This is a VERY simple program (hell, even I could do it!) and unless he masters these fundamentals, he's going to be TOTALLY lost later on (more so than now!).

See this is my advise.