BPsite Forums
November 23, 2024, 11:44:11 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: BPSITE FOREVER!
 
   Home   Help Search Members Login Register  
Pages: 1 2 3 [4]
  Print  
Author Topic: The Gathering of Programmers  (Read 32439 times)
Mr.Slippery
Newbie
*
Offline Offline

Posts: 14



View Profile WWW
« Reply #45 on: November 11, 2005, 10:17:43 PM »

Quote
I told you!! Didn't I tell you?? Well I did.
 Tongue
You have untill tomorrow afternoon to get it done.  remember, you don't have to make it GUI.

PS. normaly people who have an account, login then post :rolleyes:
Huh?  :blink:

Hoo r u ranting to?
--Slip  :alien:  
Logged
smi256
Hero Member
*****
Offline Offline

Posts: 2287



View Profile
« Reply #46 on: November 12, 2005, 03:57:43 AM »

To Blackmail

BTW!! WTF?!  You didn't go to either class this week.  The class you did go to you walked back out.....
What's up with that, Slip? Wink  
Logged

*was here
Mr.Slippery
Newbie
*
Offline Offline

Posts: 14



View Profile WWW
« Reply #47 on: November 13, 2005, 10:56:56 AM »

Quote
To Blackmail

BTW!! WTF?!  You didn't go to either class this week.  The class you did go to you walked back out.....
What's up with that, Slip? Wink
Time is not a constant; it's a very flexible medium...
Therefore, I merely had to approach the campus--even hours after it was over--and the class materials were automatically downloaded into my notebook. Amazing.

Then, I realized that I had done this sometime before. Hmm, so this is actually review material, in a way. Then, I woke up and realized it was all just a bad dream, and I hadn't actually registered for this semester.

Then I woke up from that dream with a smile, because I realized it was true.
--Slip
Logged
Mr.Slippery
Newbie
*
Offline Offline

Posts: 14



View Profile WWW
« Reply #48 on: November 28, 2005, 01:26:54 AM »

So is everyone else finished with their Java problems #7 and #8?
Yeah, I thought so.

one question: did you modify all of the source files for the payroll program (Hmwk #7) and print them out to hand in? Or did you just show the modified output? I'm curious, cuz it's a lot of source code to print!

(Looks like I need another THanksgiving holiday to catch up.)
--Slip
Logged
smi256
Hero Member
*****
Offline Offline

Posts: 2287



View Profile
« Reply #49 on: November 28, 2005, 10:09:22 PM »

I had to mod every source file, and I printed every source file...
and yes, I did finish 8 Smiley  
« Last Edit: November 28, 2005, 10:09:57 PM by smi256 » Logged

*was here
Mr.Slippery
Newbie
*
Offline Offline

Posts: 14



View Profile WWW
« Reply #50 on: December 01, 2005, 09:54:08 AM »

Quote
I had to mod every source file, and I printed every source file...
and yes, I did finish 8 Smiley
Ah, that's what I thought. Also, that is what Dung did in her version.

In my version, I kept the 3-input constructor(params) the same, and
simply created a data object in the constructor that would be updated
later in the main() program. That way, I didn't have to change the
constructor type in all the different employee classes. See below code
example:
Code:
// in Employee.java:
      // three-argument constructor
      public Employee( String first, String last, String ssn )
      {
            firstName = first;
            lastName = last;
            socialSecurityNumber = ssn;
            birthDate = new Date();            //WGG creates NULL date object
      } // end three-argument Employee constructor

// in PayrollSystemTest.java:
            employees[3].setBirthday( new Date(2,22,1904) );      // update birthdate


It seemed simpler that way. (it's rare when I choose the simpler path,
btw)
--Slip
Logged
smi256
Hero Member
*****
Offline Offline

Posts: 2287



View Profile
« Reply #51 on: December 01, 2005, 10:02:11 AM »

That's an interesting way of doing it.  I have no idea why that shouldn't be acceptable.  In this way however you would have to remember to setBirthday in the main for every single employee after the fact, instead of when you're inputting the rest of the employee's data.

I think that the main should be the flow of the program, so I try to have the nitty-gritty stuff in functions (in this case, methods)
But since when do I listen to my own advice?
 :sheep:  
Logged

*was here
smi256
Hero Member
*****
Offline Offline

Posts: 2287



View Profile
« Reply #52 on: December 08, 2005, 06:41:34 AM »

I have a C programming question...
Lets say that I already have some stuff printed to the consol.  But I want to back and change something up there.  I'll keep it simple, I want to simply put a '*' as the first character of that printed line.
I can go back one character '\b'
I can go back to the beginning of the current line '\r'
I can go to the next line... '\n'
How do I go UP?
« Last Edit: December 08, 2005, 06:41:56 AM by smi256 » Logged

*was here
smi256
Hero Member
*****
Offline Offline

Posts: 2287



View Profile
« Reply #53 on: February 19, 2006, 04:10:19 AM »

Here’s me problem, I’m doing this assignment for Data Structures using Java class… I problem is that I need to have 10,000 elements so I can feed the sorting algorithms that we are coding.  I keep getting an error: “code is too long”.  
I’m using: int a[]={ … };
Should I be feeding my elements in using a file, or is there an easier way, like an array size workaround?  

I didn't have this problem with C  <_<  
Logged

*was here
smi256
Hero Member
*****
Offline Offline

Posts: 2287



View Profile
« Reply #54 on: April 17, 2006, 05:59:53 AM »

I managed to get my Java program up and running.  No GUI though.
It makes a binary tree it also uses an automated rotation thingy to make it a balanced tree.  I don’t know, it geeky... but I’m happy with it.  The only thing that I’m having trouble with is printing it out either in the command prompt or in GUI (preferred).  The thing is that I want to to look like a tree…
Quote

    *
   / \
  *   *
/ \ / \
* * * *
Logged

*was here
Pages: 1 2 3 [4]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!