any Java programmers out there?

The place for technology related posts.

Moderator: Moderators

Post Reply
User avatar
Mr Kleen
DCAWD Founding Member
Posts: 15034
Joined: Mon Apr 18, 2005 6:46 pm
Location: Wiesbaden.DE

any Java programmers out there?

Post 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).
User avatar
ElZorro
DCAWD Founding Member
Posts: 5958
Joined: Thu Aug 12, 2004 8:00 pm
Location: USA! USA!

Post 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'.
Jason "El Zorro" Fox
'17 Subaru Forester 2.0XT
DCAWD - old coots in fast scoots.
chicken n waffles
Moderator
Posts: 6314
Joined: Wed Oct 19, 2005 1:15 am
Location: Alexandria

Post by chicken n waffles »

he also needs to do his own homework
-Ben
Image
User avatar
Mr Kleen
DCAWD Founding Member
Posts: 15034
Joined: Mon Apr 18, 2005 6:46 pm
Location: Wiesbaden.DE

Post 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:
User avatar
WRXWagon2112
DCAWD Founding Member
Posts: 3314
Joined: Mon Aug 23, 2004 8:00 pm
Location: Livin' the dream

Post 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
User avatar
Sabre
DCAWD Founding Member
Posts: 21432
Joined: Wed Aug 11, 2004 8:00 pm
Location: Springfield, VA
Contact:

Post 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.
Sabre (Julian)
Image
92.5% Stock 04 STI
Good choice putting $4,000 rims on your 1990 Honda Civic. That's like Betty White going out and getting her tits done.
Post Reply