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 > [ALBERTI] Primo Compitino
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
johnnyd
.grande:maestro.

User info:
Registered: Sep 2005
Posts: 840 (0.12 al dì)
Location: Milano (Fragagnano)
Corso: Informatica
Anno: IV
Time Online: 13 Days, 22:13:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
I compitini Alberti

Ciao ragazzi... come è andato il compitino? vi va di confrontare le soluzioni?... ciauu

__________________
My Blog - My Photo Album

09-11-2005 12:14
Click Here to See the Profile for johnnyd Click Here to See the Blog of johnnyd Click here to Send johnnyd a Private Message Find more posts by johnnyd Add johnnyd to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
johnnyd
.grande:maestro.

User info:
Registered: Sep 2005
Posts: 840 (0.12 al dì)
Location: Milano (Fragagnano)
Corso: Informatica
Anno: IV
Time Online: 13 Days, 22:13:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ecco che cosa ho combinato io...

code:
Vendemmia miaVendemmia = new Vendemmia(); Vendemmia tuaVendemmia = new Vendemmia(200); miaVendemmia.carica(100); miaVendemmia.pigia(70); tuaVendemmia.pigia(80); miaVendemmia.carica(50); miaVendemmia.pigia(90); System.out.println(miaVendemmia); Vendemmia: 50 Mosto: 40,5 Vendemmia.getPigiature(); 3 Vendemmia.getMosto(); 61,2 Vendemmia.getCarico(); 350

questo è il primo esercizio... la cosa che mi rende perplesso è:

nella dichiarazione del metodo carica la prof mi pare che abbia messo

public int carica(int carica)
quando si richiama quel metodo bisogna assegnarlo a qualkosa? tipo

t = miaVendemmia.carica();
dato che dava un valore int di ritorno...

__________________
My Blog - My Photo Album

09-11-2005 12:37
Click Here to See the Profile for johnnyd Click Here to See the Blog of johnnyd Click here to Send johnnyd a Private Message Find more posts by johnnyd Add johnnyd to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
johnnyd
.grande:maestro.

User info:
Registered: Sep 2005
Posts: 840 (0.12 al dì)
Location: Milano (Fragagnano)
Corso: Informatica
Anno: IV
Time Online: 13 Days, 22:13:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ho trovato un altro foglio con gli esercizi che ho fatto stamane...
l'esercizio sui random io l'ho fatto cosi

il range di valori
-9 +9
0 3

poi tra -2 e 4 con il metodo random

rand.nextInt() %3 +1

tra 4 e 12 con math
Math.random() * 8 +4

__________________
My Blog - My Photo Album

09-11-2005 13:10
Click Here to See the Profile for johnnyd Click Here to See the Blog of johnnyd Click here to Send johnnyd a Private Message Find more posts by johnnyd Add johnnyd to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Kurt84
.consigliere.

User info:
Registered: Oct 2005
Posts: 146 (0.02 al dì)
Location:
Corso: Informatica
Anno: 1
Time Online: 3 Days, 9:07:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

johnnyd mi sa che hai sbagliato, rand.nextInt() %3 +1 ti da' un range da -1 a 3 e Math.random()*8 + 4 da 4 a 11. Per il metodo andava bene così com'è senza assegnarlo a niente.

12-11-2005 12:04
Click Here to See the Profile for Kurt84 Click here to Send Kurt84 a Private Message Find more posts by Kurt84 Add Kurt84 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
johnnyd
.grande:maestro.

User info:
Registered: Sep 2005
Posts: 840 (0.12 al dì)
Location: Milano (Fragagnano)
Corso: Informatica
Anno: IV
Time Online: 13 Days, 22:13:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

oltre a quel nextint ho sbagliato anche quello su a++ e robe varie..mannaggia
come ti è andato il progettino di capra oggi?

__________________
My Blog - My Photo Album

14-11-2005 13:35
Click Here to See the Profile for johnnyd Click Here to See the Blog of johnnyd Click here to Send johnnyd a Private Message Find more posts by johnnyd Add johnnyd to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Kurt84
.consigliere.

User info:
Registered: Oct 2005
Posts: 146 (0.02 al dì)
Location:
Corso: Informatica
Anno: 1
Time Online: 3 Days, 9:07:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Spero bene, ci ho messo più a capire la consegna che a farlo..

16-11-2005 17:14
Click Here to See the Profile for Kurt84 Click here to Send Kurt84 a Private Message Find more posts by Kurt84 Add Kurt84 to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
dafth
.fedelissimo.

User info:
Registered: Oct 2005
Posts: 48 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 5:15:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Salve,
Qualcuno ha notizie sui risultati del compitino del lab del prof capra?

28-11-2005 13:06
Click Here to See the Profile for dafth Click here to Send dafth a Private Message Find more posts by dafth Add dafth to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
johnnyd
.grande:maestro.

User info:
Registered: Sep 2005
Posts: 840 (0.12 al dì)
Location: Milano (Fragagnano)
Corso: Informatica
Anno: IV
Time Online: 13 Days, 22:13:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ciao,
ha detto che ha avuto dei problemi quindi ritarderà con la correzione..cmq nei prossimi 2/3 giorni dovrebbe riuscire a dare i risultati credo...

ha anche detto che molti sono andati male :D

__________________
My Blog - My Photo Album

28-11-2005 13:24
Click Here to See the Profile for johnnyd Click Here to See the Blog of johnnyd Click here to Send johnnyd a Private Message Find more posts by johnnyd Add johnnyd to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
dafth
.fedelissimo.

User info:
Registered: Oct 2005
Posts: 48 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 5:15:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

bhe ci credo, io l'ho trovato sinceramente "proposto" proprio male

28-11-2005 13:32
Click Here to See the Profile for dafth Click here to Send dafth a Private Message Find more posts by dafth Add dafth to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
dafth
.fedelissimo.

User info:
Registered: Oct 2005
Posts: 48 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 5:15:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

a te come è andato quello di teoria??

P.S. grazie per la risposta :)

28-11-2005 13:40
Click Here to See the Profile for dafth Click here to Send dafth a Private Message Find more posts by dafth Add dafth to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
johnnyd
.grande:maestro.

User info:
Registered: Sep 2005
Posts: 840 (0.12 al dì)
Location: Milano (Fragagnano)
Corso: Informatica
Anno: IV
Time Online: 13 Days, 22:13:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

ho preso 23.13 mi pare con l'alberti... però credevo di prendere molto meno :D
spero in un risultato simile anche con capra..
tu invece?

__________________
My Blog - My Photo Album

28-11-2005 16:54
Click Here to See the Profile for johnnyd Click Here to See the Blog of johnnyd Click here to Send johnnyd a Private Message Find more posts by johnnyd Add johnnyd to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
dafth
.fedelissimo.

User info:
Registered: Oct 2005
Posts: 48 (0.01 al dì)
Location:
Corso:
Anno:
Time Online: 5:15:16 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

29,33 però non ho capito sinceramente cosa significa ",33"

28-11-2005 16:56
Click Here to See the Profile for dafth Click here to Send dafth a Private Message Find more posts by dafth Add dafth to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
johnnyd
.grande:maestro.

User info:
Registered: Sep 2005
Posts: 840 (0.12 al dì)
Location: Milano (Fragagnano)
Corso: Informatica
Anno: IV
Time Online: 13 Days, 22:13:29 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

mah... secondo me.. la prof ha dato una percentuale ad ogni esercizio ed in base a quella percentuale ha calcolat il punteggio di ogni esercizio...


/credo\:D

__________________
My Blog - My Photo Album

29-11-2005 11:52
Click Here to See the Profile for johnnyd Click Here to See the Blog of johnnyd Click here to Send johnnyd a Private Message Find more posts by johnnyd Add johnnyd to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 11:02.    Post New Thread    Post A Reply
  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.064 seconds (70.51% PHP - 29.49% MySQL) con 28 query.