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. > Community > Forum De Bell Tolls > media voto
  Last Thread   Next Thread
Author
Thread    Expand all | Contract all    Post New Thread    Post A Reply
Collapse
alfoguasta
.illuminato.

User info:
Registered: Sep 2005
Posts: 192 (0.03 al dì)
Location: milano
Corso: comunicazione digitale
Anno: 1
Time Online: 22:40:09: [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged
media voto

dovrei modificare questo porgramma in modod che da tastiera oltre il voto venga introdotto anche il numero di crediti.
la media pesata sui crediti si ottiene moltiplicando ogni voto per il numero di crediti corrispondenti ad ogni corso , sommando cosi le quantità otenute e dividendo il tutto per il numero totale dei crediti.

import prog.io.*;

public class MediaVoti {
static public void main(String[] args) {
ConsoleOutputManager video = new ConsoleOutputManager();
ConsoleInputManager tastiera = new ConsoleInputManager();
int esame, totale=0, i=0, cred = 0;
do{
i = i+1; /* i++ */
do{
video.print("Immetti voto "+i+": ");
esame = tastiera.readInt();

} while (((esame < 18) || (esame> 30)) && (esame != 9999) && (cred !=9999));

if (esame != 9999) totale = totale + esame;
} while (esame != 9999);

video.println("La media e': "+(totale*cred)/(i-1));
}
}

18-11-2005 13:41
Click Here to See the Profile for alfoguasta Click here to Send alfoguasta a Private Message Find more posts by alfoguasta Add alfoguasta to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
ripe
- up in the mountains -

User info:
Registered: Jun 2002
Posts: 9469 (1.14 al dì)
Location: Cinisellooo
Corso: TICO TICO
Anno: Primo
Time Online: 61 Days, 2:33:39 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Se te lo facciamo noi cosa impari?

__________________
«And if you ever smell christian blood up in the mountains, then get your axe and chop them down!»

18-11-2005 17:13
Click Here to See the Profile for ripe Click Here to See the Blog of ripe Click here to Send ripe a Private Message Find more posts by ripe Add ripe to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Dodo
lunatico

User info:
Registered: Jul 2002
Posts: 2340 (0.28 al dì)
Location: in una fibra ottica
Corso: Com Dig
Anno: 3+1 :P
Time Online: 42 Days, 7:55:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

io non sottovaluterei il "copia e incolla"
:asd:

__________________
E' meglio essere ottimisti ed avere torto piuttosto che pessimisti ed avere ragione.

Albert Einstein

18-11-2005 18:35
Click Here to See the Profile for Dodo Click Here to See the Blog of Dodo Click here to Send Dodo a Private Message Find more posts by Dodo Add Dodo to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
REQUIEM
TYPE A SECETOR

User info:
Registered: Jun 2006
Posts: 1102 (0.16 al dì)
Location:
Corso:
Anno:
Time Online: 53 Days, 5:38:53 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

hai provato a lavorare sull'analisi della cifratura di Himmler?

Io ci ho provato con il programma che hai scritto te e funziona!

provaci e fammi sapere :)

18-11-2005 18:37
Click Here to See the Profile for REQUIEM Click Here to See the Blog of REQUIEM Click here to Send REQUIEM a Private Message Find more posts by REQUIEM Add REQUIEM to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Barone
non cambio mai avatar

User info:
Registered: Dec 2002
Posts: 4943 (0.61 al dì)
Location:
Corso: Done.
Anno:
Time Online: 36 Days, 5:19:15 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by REQUIEM
hai provato a lavorare sull'analisi della cifratura di Himmler?

Io ci ho provato con il programma che hai scritto te e funziona!

provaci e fammi sapere :)


a me va quello a chiave pentatonica di Kilmister..forse devo rileggere bene il data shit che mi hai passato

18-11-2005 19:51
Click Here to See the Profile for Barone Click Here to See the Blog of Barone Click here to Send Barone a Private Message Find more posts by Barone Add Barone to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
Collapse
Fredx84
.illuminato.

User info:
Registered: Jul 2004
Posts: 178 (0.02 al dì)
Location: Milano
Corso: Informatica
Anno: 2
Time Online: 5 Days, 16:09:49 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

A che serve quel 9999? Non l'ho mica capito... e poi sarebbe una cosa carina salvare i dati da qualche parte...

__________________
"Un grande potere comporta una grande responsabilità..."

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

User info:
Registered: Jul 2005
Posts: 546 (0.08 al dì)
Location: Vicino Treviglio
Corso: Com Dig
Anno: Fuori Corso. Ultra Fuori.
Time Online: 5 Days, 1:19:56 [...]
Status: Offline

Post actions:

Edit | Report | IP: Logged

Originally posted by Fredx84
A che serve quel 9999? Non l'ho mica capito... e poi sarebbe una cosa carina salvare i dati da qualche parte...


il 9999 serverebbe per interrompere l'inserimento dei dati degli esami...

__________________
Ma che film la vita tutta una tirata storia infinita a ritmo serrato da stare senza fiato.

Ma che film la vita tutta una sorpresa attore, spettatore tra gioia e dolore tra il buio ed il colore.

19-11-2005 10:55
Click Here to See the Profile for ciops Click here to Send ciops a Private Message Find more posts by ciops Add ciops to your buddy list Printer Friendly version Email this Article to a friend Reply w/Quote
All times are GMT. The time now is 17:46.    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.041 seconds (84.00% PHP - 16.00% MySQL) con 25 query.