Computer Science Canada Basic Class |
Author: | goboenomo [ Fri Oct 21, 2005 11:26 am ] | ||
Post subject: | Basic Class | ||
Im taking a programming class at my high school its really easy... hahah i have so much extra time... i can submit one of the programs we had to make
*Yawn* We got 2 classes (2hours and 30 mins) to work on this.. it took me 20 minutes hahahahah |
Author: | wtd [ Fri Oct 21, 2005 1:59 pm ] | ||||||||||
Post subject: | |||||||||||
And lose the:
And:
Lines. |
Author: | goboenomo [ Sun Oct 23, 2005 10:38 pm ] |
Post subject: | |
right now in class we have to promt the user and recieve as a string then change to int... so for now i need those variables |
Author: | 1of42 [ Mon Oct 24, 2005 3:16 pm ] |
Post subject: | |
What wtd is doing is the exact same thing, but he uses an anonymous variable for the String input, and puts intialization and assignment on one line. |
Author: | goomba [ Sun Oct 30, 2005 9:20 pm ] |
Post subject: | |
Very easy, says the newbie. ![]() If you want to show off some real Java skillz, try rewriting your program to consist of an InvoiceApp class and an Invoice class. The Invoice class should have methods to get, set, and calculate values as well as one or two constructors to set common values on instantiation. The InvoiceApp class should generate Invoices based on user input and store these in a list of some sort. ![]() |
Author: | goboenomo-855 [ Sun Oct 30, 2005 10:38 pm ] |
Post subject: | |
goomba wrote: Very easy, says the newbie.
![]() If you want to show off some real Java skillz, try rewriting your program to consist of an InvoiceApp class and an Invoice class. The Invoice class should have methods to get, set, and calculate values as well as one or two constructors to set common values on instantiation. The InvoiceApp class should generate Invoices based on user input and store these in a list of some sort. ![]() i would, u fucking asshole... but my teacher wont let me |
Author: | goomba [ Sun Oct 30, 2005 11:33 pm ] |
Post subject: | |
Yeah, cause teachers HATE it when you go above the requirements. ![]() |
Author: | Hikaru79 [ Sun Oct 30, 2005 11:46 pm ] |
Post subject: | |
goboenomo-855 wrote: i would, u ****ing *******... but my teacher wont let me If your teacher won't let you use real, correct code perhaps you should just drop the class, because it will hurt you more than help you at that rate... |