Regards,
Sudipta Kumar Laha
I have to create a storagesystem to store boxes using multidimensonal arrays.The height,length and width of each box has to be stored as well as the volume of the box.
Each box has to be assigned a number (each number of course has to be different to distinguish them).
the program should be able to allow to add a new box,
delete an existing box,change parameters of an existing box,show info on any one box and a listing function to list all current boxes.
SCJP6.0,My blog Ranchers from Delhi
Regards,
Sudipta Kumar Laha
mike ryan wrote:...The height,length and width of each box has to be stored as well as the volume of the box...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
mike ryan wrote:...it should figure out the volume of the box using the length*height*width(i beleive that is how i would get the volume?)...
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
That looks good, apart from the interesting unusual creative and original arithmetic it demonstrates.Neil Cartmell wrote:Hi here is a gif of me using the box program i wrote. . . .
Please avoid plain text and # signs in your quoted code. Please space and indent your code correctly, and avoid long lines because they are difficult to read. I have had to add some new lines to your quoted code. (And those formatting errors will lose you marks.)mike ryan wrote: . . .
Thanks once again everyone, at least i am comming up with some ideas (good or not )
#
But of course i can't have it just run up to 100, it will have to go in increments of 1, as one is added.But is it possible to change the name of the box?with JOptionPane input?possibly?
. . .
Campbell Ritchie wrote:
That looks good, apart from the interesting unusual creative and original arithmetic it demonstrates.Neil Cartmell wrote:Hi here is a gif of me using the box program i wrote. . . .
5 × 5 × 5 = 150
That'll teach you to post a link in the hope nobody will look at it.Neil Cartmell wrote: . . . lol Damn it i was hoping no one would notice that. The new version is fixed and works but didn't think there was any need to upload it.
. . . and recorded on the internet, where it will remain for everybody to see for ever.That's embarrassing!
That's normal for computing undergraduates . . . assuming it's the 4.45 just before tea-time.mike ryan wrote: . . . getting up at 4:45 . . .
That sounds like very poor design. You ought to have as little as possible in the main method, and I suspect somebody is confusing Class variables (which are correctly called static fields) with instance fields (also called non-static fields).mike ryan wrote: . . . Create this array locally in the main() method and not to use Class Variables . . .
Consider Paul's rocket mass heater. |