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 A - F > Fondamenti di architettura e programmazione > [Laboratorio] Es. x il 5-12 ORDINA E RICERCA FIGURE
Pages (2): [1] 2 »   Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
[D]ani[J]
dsy moderator

User info:
Registered: Aug 2003
Posts: 1380 (0.18 al dì)
Location:
Corso: F47
Anno:
Time Online: 17 Days, 14:25:28 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
[Laboratorio] Esercizi per il 5-12 ORDINA E RICERCA FIGURE

Postate qua i vostri commenti e richieste per l'esercizio ORDINA E RICERCA FIGURE da consegnare il entro il 5 - 12

La documentazione delle classi da utilizzare la trovate QUA

edit: Aggiunto link alla documentazione delle classi

__________________
Dani
e-mail: DaniJ@dsy.it
...ahhh ste donne! :D
Buoniiiiiisssimaaaa!

Last edited by [D]ani[J] on 28-11-2003 at 17:55

27-11-2003 17:47
Click Here to See the Profile for [D]ani[J] Click Here to See the Blog of [D]ani[J] Click here to Send [D]ani[J] a Private Message Find more posts by [D]ani[J] Add [D]ani[J] to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
EagleSpirit
.consigliere.

User info:
Registered: Oct 2003
Posts: 127 (0.02 al dì)
Location: VA
Corso:
Anno:
Time Online: 8 Days, 6:36:07: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Re: [Laboratorio] Esercizi per il 5-12 ORDINA E RICERCA FIGURE

non ho ben capito se nella parte di ricerca si deve inserire solo l'area o anche il tipo di figura (e quindi "costruirla"...)
voi come avete fatto?

01-12-2003 22:23
Click Here to See the Profile for EagleSpirit Click here to Send EagleSpirit a Private Message Find more posts by EagleSpirit Add EagleSpirit to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
supernova
Mad For It

User info:
Registered: May 2003
Posts: 403 (0.05 al dì)
Location: Milan, London
Corso: Digital Comunication
Anno: I Don't Know, Not Yet.
Time Online: 3 Days, 4:56:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Leggendo il testo mi sembra di aver capito che tu inserisci un'area e il programma ti deve cercare al suo interno una figura di area uguale. Quindi penso che bisogna solo inserire l'area e beccare una figura con area uguale. Ciauz Zio

__________________
" So I Start The Revolution From My Bed ". Noel Gallagher

01-12-2003 23:20
Click Here to See the Profile for supernova Click here to Send supernova a Private Message Find more posts by supernova Add supernova to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Rocco.Li
38 Primavere, Dottore !

User info:
Registered: Sep 2003
Posts: 609 (0.08 al dì)
Location: BARLASSINA (MI)
Corso: COMUNICAZIONE DIGITALE
Anno: Finitooooo !!!!
Time Online: 8 Days, 2:31:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

va inserita una nuova figura !

__________________
Alcuni uomini vedono le cose come sono e dicono: << Perche' ? >>
Io sogno le cose come non sono mai state e dico: << Perche' No ? >>
George Barnard Shaw, Commediografo.

"non preoccuparti troppo, comunque vada la vita, non ne uscirai vivo !" - anonimo

02-12-2003 07:58
Click Here to See the Profile for Rocco.Li Click Here to See the Blog of Rocco.Li Click here to Send Rocco.Li a Private Message Find more posts by Rocco.Li Add Rocco.Li to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
foolish
bleak

User info:
Registered: Oct 2003
Posts: 3585 (0.46 al dì)
Location:
Corso:
Anno:
Time Online: 36 Days, 7:28:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Rocco.Li
va inserita una nuova figura !



anche io ho fatto così, bisogna inserire una nuova figura:
quadrato, rettangolo o cerchio che sia, con i relativi dati e bisognerà ricercare quelle figure che nell'array di 15 elementi (shape) abbiano la stessa area.

un quadrato potrà avere la stessa area di un cerchio e quindi bisognerà includerlo nei risultati.

ATTENZIONE: bisognerà scrivere il programma in maniera che ci possano essere più figure della stessa area.

__________________
The only way to discover the limits of the possible is to go beyond them into the impossible.
Arthur C. Clarke.

02-12-2003 19:44
Click Here to See the Profile for foolish Click Here to See the Blog of foolish Click here to Send foolish a Private Message Find more posts by foolish Add foolish to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
marlen
.illuminato.

User info:
Registered: Sep 2003
Posts: 219 (0.03 al dì)
Location: milano
Corso: comunicazione digitale
Anno: 1
Time Online: 6 Days, 5:41:46 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

potete gentilmente darmi il testo dell'algoritmo fatto in classe
per Bubblesort ect non riesco a scaricare il file pdf dal sito del
Malchiodi e nemmeno le classi qualcuno mi aiuta non posso
frequentare perchè lavoro.
Grazie per la gentile collaborazione.
Marlenkzmarlen@supereva.it

02-12-2003 21:26
Click Here to See the Profile for marlen Click Here to See the Blog of marlen Click here to Send marlen a Private Message Visit marlen's homepage! Find more posts by marlen Add marlen to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
EagleSpirit
.consigliere.

User info:
Registered: Oct 2003
Posts: 127 (0.02 al dì)
Location: VA
Corso:
Anno:
Time Online: 8 Days, 6:36:07: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

inviato

02-12-2003 21:41
Click Here to See the Profile for EagleSpirit Click here to Send EagleSpirit a Private Message Find more posts by EagleSpirit Add EagleSpirit to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Mifune
dsy moderator

User info:
Registered: Jul 2003
Posts: 3061 (0.39 al dì)
Location: Milano/ we Milano 3
Corso: Work
Anno: Work
Time Online: 20 Days, 22:03:07: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ma come si fa questo passaggio:

Nota: usare la classe Arrays vista a lezione per ordinare l'array (sort()) e per effettuare la ricerca (binarySearch()).

io non riesco a capire come usare sort!!! cavolo e sun blukka!!!

__________________
Imac G5 2.1 Ghz 20" 1.5 Ram - Ibook 1.2 Ghz 12" 768 Ram - Ipod mini 4Gb - Base airport extreme - jbl creature
nippi.it - Blog

03-12-2003 12:29
Click Here to See the Profile for Mifune Click Here to See the Blog of Mifune Click here to Send Mifune a Private Message Visit Mifune's homepage! Find more posts by Mifune Add Mifune to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
foolish
bleak

User info:
Registered: Oct 2003
Posts: 3585 (0.46 al dì)
Location:
Corso:
Anno:
Time Online: 36 Days, 7:28:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Mifune
ma come si fa questo passaggio:

Nota: usare la classe Arrays vista a lezione per ordinare l'array (sort()) e per effettuare la ricerca (binarySearch()).

io non riesco a capire come usare sort!!! cavolo e sun blukka!!!


se il tuo array di figure si chiama fig,

dovrai scrivere

code:
Arrays.sort(fig);
e ti verranno ordinate secondo l'area.

__________________
The only way to discover the limits of the possible is to go beyond them into the impossible.
Arthur C. Clarke.

03-12-2003 15:49
Click Here to See the Profile for foolish Click Here to See the Blog of foolish Click here to Send foolish a Private Message Find more posts by foolish Add foolish to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
m@cCo
Steek Huzzee

User info:
Registered: Sep 2003
Posts: 936 (0.12 al dì)
Location: Trecate - Novara - Piedmont - Italy
Corso: Computer Science (magistrale)
Anno: II
Time Online: 9 Days, 0:20:33 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Ehm...come caspio faccio ad istanziare una singola figura?
se faccio: Shape figura; mi da errore...

Ciao

03-12-2003 19:30
Click Here to See the Profile for m@cCo Click here to Send m@cCo a Private Message Find more posts by m@cCo Add m@cCo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
supernova
Mad For It

User info:
Registered: May 2003
Posts: 403 (0.05 al dì)
Location: Milan, London
Corso: Digital Comunication
Anno: I Don't Know, Not Yet.
Time Online: 3 Days, 4:56:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Raga non mi stampa le aree delle figure dell'array!!!! Io faccio così:
video.println("Le Aree delle figure nell'array sono : ");
for (int k=0;k<MAX;k++)
forme[k].calculateArea();
Xchè non va??? Grazie ciauz!

__________________
" So I Start The Revolution From My Bed ". Noel Gallagher

03-12-2003 21:25
Click Here to See the Profile for supernova Click here to Send supernova a Private Message Find more posts by supernova Add supernova to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
supernova
Mad For It

User info:
Registered: May 2003
Posts: 403 (0.05 al dì)
Location: Milan, London
Corso: Digital Comunication
Anno: I Don't Know, Not Yet.
Time Online: 3 Days, 4:56:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

AHHH ora ho capito dove sbagliavo. Che pirla. Scusate!

__________________
" So I Start The Revolution From My Bed ". Noel Gallagher

03-12-2003 21:35
Click Here to See the Profile for supernova Click here to Send supernova a Private Message Find more posts by supernova Add supernova to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
supernova
Mad For It

User info:
Registered: May 2003
Posts: 403 (0.05 al dì)
Location: Milan, London
Corso: Digital Comunication
Anno: I Don't Know, Not Yet.
Time Online: 3 Days, 4:56:55 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Come avete fatto la ricerca all'interno dell'array con binarySearch(), poi come si procede? Fino all'ordinamento dell'arry ci sono. Ma poi di binarySearch() e il resto non ho capito nulla. Mi fate degli esempi?? Grazie Ciauz! :? :?

__________________
" So I Start The Revolution From My Bed ". Noel Gallagher

Last edited by supernova on 04-12-2003 at 02:55

04-12-2003 01:55
Click Here to See the Profile for supernova Click here to Send supernova a Private Message Find more posts by supernova Add supernova to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Rocco.Li
38 Primavere, Dottore !

User info:
Registered: Sep 2003
Posts: 609 (0.08 al dì)
Location: BARLASSINA (MI)
Corso: COMUNICAZIONE DIGITALE
Anno: Finitooooo !!!!
Time Online: 8 Days, 2:31:26 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

il metodo binarySearch restituisce un intero che corrisponde alla posizione in cui si trova l'elemento cercato nell'array.
(restituisce un numero negativo nel caso non trovi nulla)
come argomenti vuole l'array di elementi e l'elemento da cercare.
quindi detto a il tuo array di shape e daCercare il tuo elemento shape:

int risultato = java.util.Arrays.binarySearch( a, daCercare );
if (rsultato>=0){
a[risultato].draw()
video.println("my area is: " + a[risultato].calculateArea());
}
else{
video.println("Shape not found");
}


Se hai bisogno ancora non farti problemi, manda pure un PM (per inciso sono 4 anni che programmo in Java e 2 in C#)

Ciao

__________________
Alcuni uomini vedono le cose come sono e dicono: << Perche' ? >>
Io sogno le cose come non sono mai state e dico: << Perche' No ? >>
George Barnard Shaw, Commediografo.

"non preoccuparti troppo, comunque vada la vita, non ne uscirai vivo !" - anonimo

04-12-2003 08:46
Click Here to See the Profile for Rocco.Li Click Here to See the Blog of Rocco.Li Click here to Send Rocco.Li a Private Message Find more posts by Rocco.Li Add Rocco.Li to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ellegi
.powerbook.

User info:
Registered: Sep 2003
Posts: 185 (0.02 al dì)
Location: Milano
Corso: Comunicazione Digitale
Anno: Terzo (1° turno)
Time Online: 1 Day, 21:10:36 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
Angry AIUTO

scusate ma non riesco ad aprire il pdf mi dice che è danneggiato e non è in grado di riparlo!!!
Qualcuno mi può spedire il pdf oppure il testo dell'esercizio !!!

GRAZIE :(

__________________
"L'ossessione è la fonte perpetua del genio e della follia"

04-12-2003 15:16
Click Here to See the Profile for ellegi Click Here to See the Blog of ellegi Click here to Send ellegi a Private Message Find more posts by ellegi Add ellegi to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 19:44.    Post New Thread    Post A Reply
Pages (2): [1] 2 »   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.092 seconds (83.93% PHP - 16.07% MySQL) con 26 query.