Presentazione dell'esercizio n°49 pagina 301

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    Favorites, Groups & Events

    Presentazione dell'esercizio n°49 pagina 301 - Presentation Transcript

    1. Presentazione dell’esercizio N°49 pagina 301
    2. Esercizio: 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”. Distinguiamo i DATI INPUT e i DATI OUTPUT: DATI INPUT: Numero studenti, nome studenti, categoria, tempo. DATI OUTPUT: Tempo minimo nella categoria richiesta (“allievi”), nome studente vincitore.
    3. Descrizioni variabili: L Numerico Contatore “allievi” CONTA L Numerico Contatore studenti CONT O Alfabetico Nome vincitore NomeM O Numerico Tempo minimo TempM I Numerico Tempo Temp I Alfabetico Categoria Cat I Alfabetico Nome studente Nome I Numerico Numero studenti N I/O/L Tipo Contenuto Nome Variabile
    4. INIZIO Leggi (N) CONT=0 CONTA=0 Ripeti Leggi (Nome, Cat,Temp) CONT=CONT+1 SE Cat=“allievi” allora 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
    5. Name: frmStudenti Caption: Studenti Name: cmdPremiqui Caption: &Premi qui Name: txtNumerostudenti
    6. DATI INPUT: N = Numero studenti Nome = Nome studente Cat = Categoria Temp = Tempo DATI OUTPUT: TempM = Tempo minimo NomeM = Nome vincitore DATI DI ELABORAZIONE: CONT = Contatore studenti CONTA = Contatore allievi Descrizione variabili:
    7. Adesso dobbiamo dimensionare le variabili: Option Explicit ‘ Dati Input Dim N As Integer Dim Nome As String Dim Cat As String Dim Temp As Double ‘ Dati Elaborazione Dim CONT As Integer Dim CONTA As Integer ‘ Dati Output Dim TempM As Double Dim NomeM As String
    8. Dopo aver dimensionato le variabili bisogna iniziare a fare lo PSEUDOCODICE: Dopo vi verrà scritto Private Sub cmdPremiqui_Click() Dobbiamo cliccare su cmdPremiqui :

    + FillmoreFillmore, 2 years ago

    custom

    458 views, 0 favs, 1 embeds more stats

    Esercizio studenti

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 458
      • 438 on SlideShare
      • 20 from embeds
    • Comments 0
    • Favorites 0
    • Downloads 1
    Most viewed embeds
    • 20 views on http://3cmercurio2007.wordpress.com

    more

    All embeds
    • 20 views on http://3cmercurio2007.wordpress.com

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories