home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Need help fast, I'm so lost

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2137
Discussions: 200,992, Posts: 2,379,913, Members: 246,362
Old June 7th, 2002, 01:56 AM   Digg it!   #1 (permalink)
Ultimate Member
 
lost-and-found's Avatar
 
Join Date: Oct 2001
Location: Illinois
Posts: 2,977
Send a message via AIM to lost-and-found
Unhappy
Need help fast, I'm so lost

ok, could someone explain to me what I am supposed to do in this program? We received an assignment from the book to write this program in java, but I don't get what the program is supposed to do, from the book's description.
Here's what the book is asking for:
"Create a Student class that contains the student name, ID, phone, and number of units completed. Include a constructor that assigns values to the private class variables. Create an applet to input data and assign it to the class variables. Create methods in the student class to get the name from the private class variables. Display the student name, ID, phone, and number of units completed in the text area."

Any explanations will be appreciated.
__________________
lost-and-found is offline   Reply With Quote
Old June 7th, 2002, 07:16 AM     #2 (permalink)
Ultimate Member
 
strangerstill's Avatar
 
Join Date: Oct 2001
Posts: 1,542
That seems a bit vague, but fairly straightforward to me...

Looks like you want 2 classes: the Student class and the applet class.

The Student class has private variables for name, ID, phone, and units; it has a constructor which initialises these, methods to assign to these and methods to read them;

the applet class will subclass Applet; it will have input boxes for the 4 bits of data and a button which when you press it takes the data from the boxes, creates a Student, then reads back from the Student onto Label control.

Does this make sense?
strangerstill is offline   Reply With Quote
Old June 7th, 2002, 11:31 PM     #3 (permalink)
Ultimate Member
 
lost-and-found's Avatar
 
Join Date: Oct 2001
Location: Illinois
Posts: 2,977
Send a message via AIM to lost-and-found
ok, I wrote something. Could anyone tell me if this is anything close to what the thing calls for?
http://home.earthlink.net/~truty/CH5/RunApplet.html
lost-and-found is offline   Reply With Quote
Old June 8th, 2002, 05:26 AM     #4 (permalink)
Ultimate Member
 
strangerstill's Avatar
 
Join Date: Oct 2001
Posts: 1,542
Yep, I'd say that looks fine. Nice one!
strangerstill is offline   Reply With Quote
Old June 11th, 2002, 03:24 AM     #5 (permalink)
Ultimate Member
 
lost-and-found's Avatar
 
Join Date: Oct 2001
Location: Illinois
Posts: 2,977
Send a message via AIM to lost-and-found
thanks, I uploaded an updated one. I had to change the code structure a bit, after I talked with the teacher. It should work and I changed the colors a bit
lost-and-found is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3084)
Foxconn Blackops x48 MoBo (5)
Charges against non-tippers dropped.. (20)
Health Care Rationing (14)
Delete an OS (17)
Nvidia GTX 260 problem (12)
Laptop with wireless problem. (12)
Wireless Televisions. (12)
windows vista security holes (19)
CPU fan stops spinning randomly (11)
Regular Build (11)
[F@H SPAM 11/16/09] ! 1/2 months to.. (41)
Point and Shoot Camera Suggestions. (8)
windows 7 problem (7)
Recent Discussions
Intel 5100 AGN issues fixed yet? (28)
Nvidia GTX 260 problem (12)
Foxconn Blackops x48 MoBo (5)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (41)
Print spooler problem (17)
Q9650 vs. Q9550 (2)
Desktop Calendar Application (2)
Looking for new motherboard (1)
soundmon.exe (8)
Jedi Academy Problem (3)
Can a page file be "too big".. (1)
Point and Shoot Camera Suggestions. (8)
Size after cutting 700Mb file is 2.5 .. (0)
Delete an OS (17)
windows vista security holes (19)
updating BIOS via winflash, claims fi.. (1)
New Server Configuration Suggestions (0)
cheap gaming laptop? (12)
Unallocated Space (2)
help me pls laptop just stopped worki.. (1)
C# + LINQ Help (7)
Dynex DX E-402 (3)
EVGA 9800 gtx help with finding a goo.. (12)
Multiple Restarts Required at Boot (5)
cell phone won't work (0)


All times are GMT -4. The time now is 10:21 AM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28