Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Visual Basic

1,489 views

Published on

Published in: Technology, Lifestyle
  • (Unlimited)....ACCESS WEBSITE Over for All Ebooks ................ accessibility Books Library allowing access to top content, including thousands of title from favorite author, plus the ability to read or download a huge selection of books for your pc or smartphone within minutes ......................................................................................................................... DOWNLOAD FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M }
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

Visual Basic

  1. 1. Es. 49 pag. 301 Lorenzo Tofanari Dati N studenti partecipanti a una gara sportiva di velocità (nome studente, categoria, tempo) visualizzare il tempo dello studente vincitore (tempo minimo) tra gli studenti della categoria “Allievi”. Dati input: Numero studenti, nome studente, categoria, tempo Dati output: Tempo minimo, nome vincitore
  2. 2. Descrizioni variabili L Num. Caontatore allievi Conta L Num. Contatore alunni Cont O Alf. Nome vincitore Nomem O Num. Tempo minimo Tempm I Num. Tempo Temp. I Alf. Categoria Cat. I Alf. Nome studenti Nome I Num. Numero studenti N I/O/L Tipo Contenuto Variabile
  3. 3. Inizio Leggi (N) Conta = 0 Cont = 0 Ripeti Leggi (NOME, CAT., TEMP) Cont = Cont + 1 Se CAT. = “Allievi” Conta = Conta + 1 Se Conta = 1 Allora Tempm = Temp Nomem = Nome Altrimenti Se Temp < Tempm allora Tempm = Temp Nomem = Nome Fine Se Fine Se Fine Se Fino a che Cont = N Scrivi (Tempm, Nomem) Fine Pseudocodice
  4. 4. In Visual Basic…
  5. 5. Inizio N Cont=0; Conta=0 Cont=Cont+1 Temp, Cat, Nome Cat=“Allievi ” Conta=Conta+1 Conta=1 Temp<tempm Tempm=temp Nomem=nome Cont=N Tempm, Nomem Fine V Tempm=Temp Nomem=Nome F V F V V F Diagramma a blocchi
  6. 6. Descrizioni delle variabili in Visual Basic Option Explicit ' Dati input Dim N As Integer Dim NOME As String Dim CAT As String Dim TEMP As Double ' Dati di elaborazione Dim CONT As Integer Dim CONTA As Integer ' Dati output Dim TEMPM As Double Dim NOMEM As String
  7. 7. Il Do corrisponde al Ripeti Fino a che … Qui ci va la Condizione I comandi in Visual Basic: Ripeti
  8. 8. I comandi in Visual Basic: Se condizione Istruzioni 1 Istruzioni 2 If = Se Then = Allora Else = Altrimenti End If = Fine Se
  9. 9. Prima di iniziare il ciclo bisogna sempre azzerare le variabili di lavoro
  10. 10. Label - ldl Comand button - cmd Text box - txt La Form

×