![]() |
Show 150 posts per page |
.dsy:it. (http://www.dsy.it/forum/)
- Forum De Bell Tolls (http://www.dsy.it/forum/forumdisplay.php?forumid=7)
-- lab (http://www.dsy.it/forum/showthread.php?threadid=22755)
lab
kualkuno mi saprebbe spiegare gli esercizi di lab ??
Re: lab
Originally posted by alfoguasta
kualkuno
e soprattutto esercizi de ke?
__________________
http://www.twitter.com/0m4r
....
MODIFICARLO COSI CHE OLTRE IL VOTO VENGA INTRODOTTO A TASIERA ANCHE IL CREDITO CORRISPONDENTE. CALCOLARE LA MEDIA PESATA SUI CREDITI, CHE è UGUALE A MOLTIPLICARE OGNIV OTO PER IL CREDITO CORRISPONDENTE , SOMMARLI E POI DIVIDERLI PE IL NUMERO DI 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));
}
}
Originally posted by 0m4r
e soprattutto esercizi de ke?
Originally posted by REQUIEM
eh sì, spiegaglielo tu l'italiano![]()
__________________
http://www.voglioscendere.ilcannocchiale.it/
Governare gli italiani non è impossibile, è inutile. (G.Giolitti)
Originally posted by SIMBIOS
tanks in advice
Originally posted by REQUIEM
you're wellcome
__________________
«And if you ever smell christian blood up in the mountains, then get your axe and chop them down!»
hai già aperto questo thread
http://www.dsy.it/forum/showthread.php?threadid=22757
quindi questo lo chiudo
se mi dici di che materia si tratta ti sposto l'altro nel forum competente
__________________
Sono sempre alla ricerca di curriculum interessanti da segnalare alle società con cui ho contatti. Info in pm
All times are GMT. The time now is 14:13. | Show all 9 posts from this thread on one page |
Powered by: vBulletin Version 2.3.1
Copyright © Jelsoft Enterprises Limited 2000 - 2002.