Groups | Search | Server Info | Keyboard shortcuts | Login | Register
Groups > comp.lang.java.programmer > #5679
| From | Lew <noone@lewscanon.com> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: Needs help in editing |
| Date | 2011-06-26 13:40 -0400 |
| Organization | albasani.net |
| Message-ID | <iu7qv2$hhr$1@news.albasani.net> (permalink) |
| References | <1021f122-3898-4fc9-93ed-ac1aa9403b82@q15g2000yqk.googlegroups.com> <iu0tcb$eod$1@theodyn.ncf.ca> |
William Colls wrote: > I think we are being asked to someone's school assignment. Better he does it > himself. > PLEASE do not top-post. The OP showed us what he's starting with and asked for _help_, not to "" his assignment. (I assume your missing verb is "do".) So let's give him some help, if that's OK with you, O Snarky One? > On 11-06-23 02:25 PM, Eric wrote: >> Hi guys: Can any one please help me how to i [sic] do the changes in my >> program according to the following 4 changes. >> >> 1) Create a Date type birth data instance field in the Employee class, >> not a String Do you know how to declare a variable to be of a certain type? It's done like this: SomeType variable; Do you know where the 'Date' type is in the standard Java API? <http://download.oracle.com/javase/6/docs/api/java/util/package-frame.html> Do you know how to declare instance members? <http://download.oracle.com/javase/tutorial/java/javaOO/classvars.html> >> 2) Enlarge the constructors for the Employee class and subclasses to >> pass the int month, int day, and int year of the birth date as input >> by the user to PayrollSystemTest to the subclass constructor, and then >> to the Employee class constructor Do you know how to pass arguments to a constructor? It's very similar to how to pass arguments to a method. <http://www.oracle.com/technetwork/java/index-jsp-135888.html> <http://www.oracle.com/technetwork/java/prog-140388.html#const> <http://download.oracle.com/javase/tutorial/java/javaOO/constructors.html> <http://download.oracle.com/javase/tutorial/java/javaOO/methods.html> >> 3) Input from the user for the 5 specific employees and then comment >> out the hardcoding for the 4 employees in the original code Do you have your class notes on how to get input? >> 4) Report monthly salary amounts and include the November birthday >> bonus Do you have your class notes on how to present output? <http://download.oracle.com/javase/tutorial/essential/io/index.html> -- Lew Honi soit qui mal y pense. http://upload.wikimedia.org/wikipedia/commons/c/cf/Friz.jpg
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar
Needs help in editing Eric <ehtisham@gmail.com> - 2011-06-23 11:25 -0700
Re: Needs help in editing Aéris <aeris@imirhil.fr> - 2011-06-24 00:35 +0200
Re: Needs help in editing Aéris <aeris@imirhil.fr> - 2011-06-24 00:39 +0200
Re: Needs help in editing lewbloch <lewbloch@gmail.com> - 2011-06-24 08:42 -0700
Re: Needs help in editing Aéris <aeris@imirhil.fr> - 2011-06-24 21:28 +0200
Re: Needs help in editing Lew <noone@lewscanon.com> - 2011-06-26 13:30 -0400
Re: Needs help in editing Aéris <aeris@imirhil.fr> - 2011-06-26 21:49 +0200
Re: Needs help in editing Lew <noone@lewscanon.com> - 2011-06-26 16:32 -0400
Re: Needs help in editing Lew <noone@lewscanon.com> - 2011-06-26 16:35 -0400
Re: Needs help in editing rossum <rossum48@coldmail.com> - 2011-06-23 23:42 +0100
Re: Needs help in editing William Colls <william.colls@rogers.com> - 2011-06-23 22:40 -0400
Re: Needs help in editing Lew <noone@lewscanon.com> - 2011-06-26 13:40 -0400
Re: Needs help in editing Roedy Green <see_website@mindprod.com.invalid> - 2011-06-27 20:05 -0700
Re: Needs help in editing Lew <noone@lewscanon.com> - 2011-06-28 00:09 -0400
csiph-web