Questo è l'esercizio di Visual Basic che avevo da fare. Mi sembra di essere esaustiva con la spiegazione, spero non vi sia difficile da capire buona lettura, buona sperimentazione e buon divertimento.
Esercizio di traduzione di diagramma a blocchi.
Argomenti
- Dichiarazione variabili
- Struttura condizionale istruzione SE
- Ciclo, istruzione Do LOOP
- Input e output
-
Questo è l'esercizio di Visual Basic che avevo da fare. Mi sembra di essere esaustiva con la spiegazione, spero non vi sia difficile da capire buona lettura, buona sperimentazione e buon divertimento.
Esercizio di traduzione di diagramma a blocchi.
Argomenti
- Dichiarazione variabili
- Struttura condizionale istruzione SE
- Ciclo, istruzione Do LOOP
- Input e output
-
Guida Alla Costruzione Di Un Progetto In Visual Basic Per La Gestione Di Un D...LapiniDaniele
Con La seguente presentazione spieghiamo ai nuovi utenti d Visual Studio come creare un progetto in Visual Basic per la gestione di un database in Access
Con la seguente presentazione spieghiamo ai nuovi utenti di Visual Studio come creare una procedura in Visual Basic per gestire un database, in questo caso relativo alle attività sportive di una piscina.
Artificial intelligence (AI) is everywhere, promising self-driving cars, medical breakthroughs, and new ways of working. But how do you separate hype from reality? How can your company apply AI to solve real business problems?
Here’s what AI learnings your business should keep in mind for 2017.
Study: The Future of VR, AR and Self-Driving CarsLinkedIn
We asked LinkedIn members worldwide about their levels of interest in the latest wave of technology: whether they’re using wearables, and whether they intend to buy self-driving cars and VR headsets as they become available. We asked them too about their attitudes to technology and to the growing role of Artificial Intelligence (AI) in the devices that they use. The answers were fascinating – and in many cases, surprising.
This SlideShare explores the full results of this study, including detailed market-by-market breakdowns of intention levels for each technology – and how attitudes change with age, location and seniority level. If you’re marketing a tech brand – or planning to use VR and wearables to reach a professional audience – then these are insights you won’t want to miss.
Guida Alla Costruzione Di Un Progetto In Visual Basic Per La Gestione Di Un D...LapiniDaniele
Con La seguente presentazione spieghiamo ai nuovi utenti d Visual Studio come creare un progetto in Visual Basic per la gestione di un database in Access
Con la seguente presentazione spieghiamo ai nuovi utenti di Visual Studio come creare una procedura in Visual Basic per gestire un database, in questo caso relativo alle attività sportive di una piscina.
Artificial intelligence (AI) is everywhere, promising self-driving cars, medical breakthroughs, and new ways of working. But how do you separate hype from reality? How can your company apply AI to solve real business problems?
Here’s what AI learnings your business should keep in mind for 2017.
Study: The Future of VR, AR and Self-Driving CarsLinkedIn
We asked LinkedIn members worldwide about their levels of interest in the latest wave of technology: whether they’re using wearables, and whether they intend to buy self-driving cars and VR headsets as they become available. We asked them too about their attitudes to technology and to the growing role of Artificial Intelligence (AI) in the devices that they use. The answers were fascinating – and in many cases, surprising.
This SlideShare explores the full results of this study, including detailed market-by-market breakdowns of intention levels for each technology – and how attitudes change with age, location and seniority level. If you’re marketing a tech brand – or planning to use VR and wearables to reach a professional audience – then these are insights you won’t want to miss.
2. ESERCIZIO : Dato un elenco di computer(di cui non si conosce a priori il numero, per cui non si può usare la ripetizione con contatore), con descrizione, tipo e prezzo in euro, calcolare il prezzo medio dei computer appartenenti a un tipo prefissato e fornito all’ inizio da tastiera. A questo punto dobbiamo distinguere ed evidenziare i dati in INPUT e OUTPUT . DATI INPUT : Tipo e prezzo di ogni prodotto; risposta che dà l’ utente per continuare o no; tipo di prodotto per il quale dobbiamo calcolare il prezzo medio. DATI OUTPUT : Prezzo medio dei computer di tipo richiesto.
3. Descrizione variabili O Numerico Prezzo medio dei prodotti del tipo richiesto PM L Numerico Contatore prodotti del tipo richiesto CONT L Numerico Somma dei prezzi dei prodotti del tipo richiesto SOMMA I Alfanumerico Tipo di prodotto richiesto TIPOR I Alfanumerico Risposta ("S" o "N") RISP I Numerico Prezzo di ogni prodotto P I Alfanumerico Tipo di ogni prodotto T I/O/L Tipo Contenuto Nome Variabile
4. Inizio Leggi (Tipor) Cont = 0 Somma = 0 Ripeti Leggi (T;P) Se Tipor = T Allora Cont = Cont + 1 Somma = Somma + P Fine se Scrivi (“Altri prodotti?”) Leggi ( Risp) Fino a che Risp = “N” Pm = Somma / Cont Scrivi (Pm) Fine
5. Name: FrmPrezzoMedio Caption: FrmPrezzoMedio Name: LblTipoProdotto Caption: Digita il tipo di prodotto Name: TxtTipoProdotto Text: Vuoto Name: CmdCalcolailPrezzo Caption: Calcola il prezzo Name: CmdEsci Caption: Esci
6. Adesso dobbiamo dimensionare le variabili Option Explicit ‘ Dati input Dim T as String Dim P as Double Dim RISP as String Dim TIPOR as String ‘ Dati output Dim PM as double ‘ Dati di elaborazione Dim SOMMA as Double Dim CONT as Integer
7. Adesso dobbiamo tradurre lo pseudocodice Per iniziare dobbiamo far leggere al programma la prima variabile: TIPOR = TxtTipoProdotto.text Dopo dobbiamo azerare le variabili se ce ne sono: SOMMA = 0 CONT = 0 Adesso possiamo iniziare a tradurre lo pseudocodice mettento le istruzioni all’ interno del ciclo del RIPETi: ‘ Inizio ciclo Do ( Ripeti ) Loop until ( Fino a che La condizione è falsa ) ‘ Fine ciclo ISTRUZIONI