Dsy Network www | forum | my | didattica | howto | wiki | el goog | stats | blog | dona | rappresentanti
Homepage
 Register   Calendar   Members  Faq   Search  Logout 
.dsy:it. : Powered by vBulletin version 2.3.1 .dsy:it. > Didattica > Corsi N - Z > Programmazione > [PROGRAMMAZIONE] Help 3^ Progettino A.A.04/05 Thread Rating: 1 votes, 5.00 average.
Pages (39): « First ... « 27 28 29 30 [31] 32 33 34 35 » ... Last »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
Pegasus83
...

User info:
Registered: Sep 2003
Posts: 6043 (0.74 al dì)
Location: Milano
Corso: Informatica
Anno: Pausa
Time Online: 38 Days, 11:50:22 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

se mi sforzo non ti dico che danni ambientali potrei creare....

cmq...mi sa che usare l'iterator è un suicidio....mi toccherà rifare mezzo codice...WAAAAAAAAAAAAA

__________________
Il Pega
www.pegasus83.com

23-01-2004 14:11
Click Here to See the Profile for Pegasus83 Click Here to See the Blog of Pegasus83 Click here to Send Pegasus83 a Private Message Visit Pegasus83's homepage! Find more posts by Pegasus83 Add Pegasus83 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Bennyk
.amico.

User info:
Registered: Oct 2003
Posts: 38 (0.00 al dì)
Location: Milano
Corso: Informatica
Anno: ...
Time Online: 1 Day, 1:36:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ciao,
qualcuno sa che bisogna fare per le figure geometricamente uguali come un cubo di lato 1 ed un parallelepipedo 1*1*1
od un cono ed un tronco di cono con raggio piccolo 0
o ancora un cilindro ed un tronco di cono con raggio piccolo = raggio grande.

Avete già chiesto al prof?

23-01-2004 14:27
Click Here to See the Profile for Bennyk Click here to Send Bennyk a Private Message Find more posts by Bennyk Add Bennyk to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
T_M_P
.arcimaestro.

User info:
Registered: May 2003
Posts: 458 (0.06 al dì)
Location: Milano
Corso: Informatica
Anno: 1 (Finirà mai?)
Time Online: 2 Days, 7:52:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Bennyk
Ciao,
qualcuno sa che bisogna fare per le figure geometricamente uguali come un cubo di lato 1 ed un parallelepipedo 1*1*1
od un cono ed un tronco di cono con raggio piccolo 0
o ancora un cilindro ed un tronco di cono con raggio piccolo = raggio grande.

Avete già chiesto al prof?


Leggi qualche pagina prima e avrai ciò che chiedi.. :approved:

23-01-2004 14:38
Click Here to See the Profile for T_M_P Click here to Send T_M_P a Private Message Find more posts by T_M_P Add T_M_P to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Bravo Yankee
The end. Thanks to all

User info:
Registered: Oct 2003
Posts: 1037 (0.13 al dì)
Location: Provincia di Milano
Corso: Informatica
Anno: 0
Time Online: 29 Days, 0:42:02: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ragazzi, voi avete già consegnato?

23-01-2004 15:02
Click Here to See the Profile for Bravo Yankee Click here to Send Bravo Yankee a Private Message Find more posts by Bravo Yankee Add Bravo Yankee to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yoruno
.grande:maestro.

User info:
Registered: Jul 2003
Posts: 10602 (1.29 al dì)
Location: Altrove
Corso: 404 error
Anno: 404 error
Time Online: 123 Days, 2:50:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Bravo Yankee
Ragazzi, voi avete già consegnato?

Off-Topic:
Io si, mi ero stufato di cambiare i commenti! :D

__________________
"Voi che tingete i mari del colore dello zinco, che tramutate i boschi in gialli deserti, i venti in fumi di polveri da sparo e che bruciate i cieli. Voi che volete ripetere i malvagi atti della sconsiderata Lilith, che fu la prima moglie di Adamo e poi la sposa del Diavolo. Voi che volete ripetere la ribellione scatenata da Lucifero, del mondo celeste il più splendente. Voi! Ascoltate l'afflizione della sottospecie alata che vola alta nel cielo." [Angel Sanctuary]
::: mail: yoruno@dsy.it ::: ::: My Site ::: ::: Dsy Photo Gallery ::: ::: DeviantART Gallery :::

23-01-2004 15:04
Click Here to See the Profile for yoruno Click Here to See the Blog of yoruno Click here to Send yoruno a Private Message Visit yoruno's homepage! Find more posts by yoruno Add yoruno to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Bravo Yankee
The end. Thanks to all

User info:
Registered: Oct 2003
Posts: 1037 (0.13 al dì)
Location: Provincia di Milano
Corso: Informatica
Anno: 0
Time Online: 29 Days, 0:42:02: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Quasi quasi anche io....

23-01-2004 15:05
Click Here to See the Profile for Bravo Yankee Click here to Send Bravo Yankee a Private Message Find more posts by Bravo Yankee Add Bravo Yankee to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mark
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 783 (0.10 al dì)
Location:
Corso: F49
Anno: finito!
Time Online: 8 Days, 18:34:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by T_M_P
Leggi qualche pagina prima e avrai ciò che chiedi.. :approved:


per me un parallelepipedo di 1*1*1 va trattato come tale e non visto come un cubo, giusto ?

nel caso in cui poi uno mescoli axbxh, non sono affari suoi ?

è pur sempre un parallelepipedo seppur sdraiato o altro

e del troncodicono al contrario ?

perchè non poterlo permettere ?

altrimenti:

a) dobbiamo invertire noi i valori e non mi sembra corretto
b) segnalare che sono stati inseriti parametri al contrario

o non lo so

23-01-2004 15:34
Click Here to See the Profile for mark Click here to Send mark a Private Message Find more posts by mark Add mark to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mark
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 783 (0.10 al dì)
Location:
Corso: F49
Anno: finito!
Time Online: 8 Days, 18:34:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ah, e se in troncodicono inserisco 3,3,3 ???

gli dico che è un cilindro ???

__________________
Non ti perdere di coraggio se ti tocca lavorare molto e raccogliere poco.....

23-01-2004 15:41
Click Here to See the Profile for mark Click here to Send mark a Private Message Find more posts by mark Add mark to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Bravo Yankee
The end. Thanks to all

User info:
Registered: Oct 2003
Posts: 1037 (0.13 al dì)
Location: Provincia di Milano
Corso: Informatica
Anno: 0
Time Online: 29 Days, 0:42:02: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

No, che è un Tronco di Cono 3*3*3

23-01-2004 15:42
Click Here to See the Profile for Bravo Yankee Click here to Send Bravo Yankee a Private Message Find more posts by Bravo Yankee Add Bravo Yankee to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
yoruno
.grande:maestro.

User info:
Registered: Jul 2003
Posts: 10602 (1.29 al dì)
Location: Altrove
Corso: 404 error
Anno: 404 error
Time Online: 123 Days, 2:50:08: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Exclamation Riassunto Punti Salienti

DA LEGGERE PRIMA DI POSTARE

Struttura Classi (estese)...
Object (evvabbè, questa c'è sempre)
Architetture3D (che utilizza la classe Figure3D)
Figure3D (evvabbuò, questa è bella e pronta...)
Poi ci sono
Cilindro, Parallelepipedo e TroncoDiCono (che estendono Figure3D)
e le tre classi
Sfera, Cubo e Cono (che estendono rispettivamente le 3 classi precedenti)

Cubi e Parallelepipedi
Ma secondo voi un Parallelepipedo di dimensioni 3,3,3 è da considerarsi uguale ad un cubo di lato 3?
risposta prof
Un parallelepipedo e un cubo sono due cose diverse anche se hanno le stesse dimensioni.

Se costruisci un Parallelepipedo 1*1*1 ed un Cubo 1, a livello geometrico le due figure sono uguali, ma per le specifiche, sono diverse. Quindi, se fai un aricerca di un Cubo 1 e trovi anche il Parallelepipedo 1*1*1, è un errore.

Ho modificato il file Figure3D.txt inserendo il parallelepipedo 1X1X1 ma il cubo 1 non mi viene trovato >>> giusto così

Errori e loro nome
Se proprio si vuole avere il tipo dell'oggetto, invece che usare una serie di instanceof, si può usare questa espressione
this.getClass().getName()

pigreco
Per pigreco usa la costante che trovi nella classe java.lang.Math, è un campo statico che puoi utilizzare semplicemente scrivendo Math.PI nelle formule.

Sequenza toArray
Sequenza ha il metodo toArray(), che restituisce un array di Object degli oggetti inseriti in Sequenza...

CORREZIONI PROF
Nel caso di TroncoDiCono è ammissible il valore 0 per il parametro raggio piccolo
È possibile aggiungere metodi alla classe astratta Figura3D, ovviamente in questo caso l'interfaccia modificata dallo studente dovrà essere inviata insieme alle classi che costituiscono il progetto.


Come avere un file di testo in output
dos :
java Test > risultatiNuovi.txt
windiff ris_originali... risultatiNuovi.txt

Eccezioni
Ho appena parlato con Grossi, il quale mi ha riferito che si può tranquillamente omettere nel messaggio di errore il nome della Figura che solleva l'eccezione.
Pertanto
Parallelepipedo: Parametro errato!
diventa
Parametro errato!

Mi riservo di passare alle armi chi rifarà queste domande :P

__________________
"Voi che tingete i mari del colore dello zinco, che tramutate i boschi in gialli deserti, i venti in fumi di polveri da sparo e che bruciate i cieli. Voi che volete ripetere i malvagi atti della sconsiderata Lilith, che fu la prima moglie di Adamo e poi la sposa del Diavolo. Voi che volete ripetere la ribellione scatenata da Lucifero, del mondo celeste il più splendente. Voi! Ascoltate l'afflizione della sottospecie alata che vola alta nel cielo." [Angel Sanctuary]
::: mail: yoruno@dsy.it ::: ::: My Site ::: ::: Dsy Photo Gallery ::: ::: DeviantART Gallery :::

Last edited by yoruno on 26-01-2004 at 09:54

23-01-2004 15:42
Click Here to See the Profile for yoruno Click Here to See the Blog of yoruno Click here to Send yoruno a Private Message Visit yoruno's homepage! Find more posts by yoruno Add yoruno to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Bravo Yankee
The end. Thanks to all

User info:
Registered: Oct 2003
Posts: 1037 (0.13 al dì)
Location: Provincia di Milano
Corso: Informatica
Anno: 0
Time Online: 29 Days, 0:42:02: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Alla faccia del progettino facile, eh?

23-01-2004 15:55
Click Here to See the Profile for Bravo Yankee Click here to Send Bravo Yankee a Private Message Find more posts by Bravo Yankee Add Bravo Yankee to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
mark
.grande:maestro.

User info:
Registered: Oct 2003
Posts: 783 (0.10 al dì)
Location:
Corso: F49
Anno: finito!
Time Online: 8 Days, 18:34:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

provate sta versione e postate i risultati in un file txt

Parallelepipedo 1.0 1.0 1.0
TroncoDiCono 1.0 1.0 1.0
Cilindro 1.0 1.0
Sfera 1.0
Cono 1.0 1.0
Cubo 1.0
TroncoDiCono 1.0 1.0 1.0
Cilindro 1.0 1.0
Sfera 1.0
Cono 1 1
Sfera 1
Parallelepipedo 1.0 1.0 1.0
Parallelepipedo 1.0 1.0 1.0

23-01-2004 16:15
Click Here to See the Profile for mark Click here to Send mark a Private Message Find more posts by mark Add mark to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ROYV
.primate.

User info:
Registered: Sep 2003
Posts: 74 (0.01 al dì)
Location: limbiate
Corso: Informatica
Anno: 1
Time Online: 1 Day, 19:36:01: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ris :

******* Valori dei volumi per tipo figure ********
VOLUME totale: 31.23
VOLUME Sfere e Cilindri: 18.85
VOLUME Parallelepipedi e Cubi: 4.0
VOLUME Coni e Tronchi di cono: 8.38
VOLUME medio: 2.4

******** Valori delle superfici per tipo figure ********
SUPERFICIE totale: 95.72
SUPERFICIE Sfere e Cilindri: 50.27
SUPERFICIE Parallelepipedi e Cubi: 24.0
SUPERFICIE Coni e Tronchi di cono: 21.45
SUPERFICIE media: 7.36

******** Ricerca di Figure ********
Sfera(10): Non Trovata!
Cilindro(10,20): Non Trovato!
Cubo(1): Trovato!
TroncoDiCono(5.0,5.0,5.0): Non Trovato!

23-01-2004 16:28
Click Here to See the Profile for ROYV Click here to Send ROYV a Private Message Find more posts by ROYV Add ROYV to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
T_M_P
.arcimaestro.

User info:
Registered: May 2003
Posts: 458 (0.06 al dì)
Location: Milano
Corso: Informatica
Anno: 1 (Finirà mai?)
Time Online: 2 Days, 7:52:34 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

idem

23-01-2004 16:42
Click Here to See the Profile for T_M_P Click here to Send T_M_P a Private Message Find more posts by T_M_P Add T_M_P to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Bravo Yankee
The end. Thanks to all

User info:
Registered: Oct 2003
Posts: 1037 (0.13 al dì)
Location: Provincia di Milano
Corso: Informatica
Anno: 0
Time Online: 29 Days, 0:42:02: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Me too

23-01-2004 16:45
Click Here to See the Profile for Bravo Yankee Click here to Send Bravo Yankee a Private Message Find more posts by Bravo Yankee Add Bravo Yankee to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 21:42.    Post New Thread    Post A Reply
Pages (39): « First ... « 27 28 29 30 [31] 32 33 34 35 » ... Last »   Last Thread   Next Thread
Show Printable Version | Email this Page | Subscribe to this Thread | Add to Bookmarks

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is ON
 

Powered by: vBulletin v2.3.1 - Copyright ©2000 - 2002, Jelsoft Enterprises Limited
Mantained by dsy crew (email) | Collabora con noi | Segnalaci un bug | Archive | Regolamento | Licenze | Thanks | Syndacate
Pagina generata in 0.194 seconds (43.50% PHP - 56.50% MySQL) con 24 query.