Giter Club home page Giter Club logo

esercitazione_classi's Introduction

🍰 Esercizio 1 Clonare il repository utilizzando il comando gitclone, sul vostro computer locale

🍰 Esercizio 2 --> [ aggiungere come new Feature] Francesca Creare una classe Animale che abbia gli attributi “nome” e “specie”. Aggiungi un metodo “emetti_suono” che stampi un suono specifico per ogni specie. Ad esempio, se l’animale è un gatto dovrebbe stampare “Miao!”, se è un cane “Bau!”. Merge con develop

🍰 Esercizio 3 ---> [ aggiungere come new Feature] Federico Creare una classe Automobile che abbia gli attributi “marca”, “modello” e “anno”. Aggiungi un metodo “descrivi” che stampi una descrizione dell’automobile, ad esempio “Questa è una Toyota Corolla del 2017”. Merge con develop (in automatico)

🍰 Esercizio 4 --> [ aggiungere come new Feature] Federico+FRancesca Creare una classe Impiegato che abbia gli attributi “nome”, “cognome”, “matricola” e “stipendio”. Aggiungere un metodo “aumenta_stipendio” che aumenti lo stipendio dell’impiegato del 10% e un metodo “stampa_dettagli” che stampi tutti i dettagli dell’impiegato, ad esempio “Impiegato: Marco Rossi, matricola 12345, stipendio: 3000 Euro”. Merge con develop (in automatico) Release

🍰 Esercizio 5 --> [ aggiungere come new Feature] Federico+FRancesca Crea una classe GestoreMagazzino che gestisca un magazzino di prodotti. La classe dovrà avere i seguenti attributi: Un dizionario “prodotti” che mappa i nomi dei prodotti ai rispettivi oggetti “Prodotto” (che descriverai in seguito) Una variabile “costo_magazzinaggio” che indica il costo per magazzinare ogni prodotto per un mese La classe dovrà avere i seguenti metodi: Un metodo “aggiungi_prodotto” che aggiunga un nuovo prodotto al magazzino Un metodo “rimuovi_prodotto” che rimuova un prodotto dal magazzino Un metodo “calcola_costi_magazzinaggio” che calcoli i costi di magazzinaggio per tutti i prodotti presenti nel magazzino Crea inoltre una classe Prodotto che abbia gli attributi “nome”, “prezzo” e “scorta”.

nuova release

🍰 Esercizio BONUS --> [ aggiungere come new Feature] Federico+FRancesca Creare una classe POW che permetta di effettuare la potenza di un numero elevato al numero x. La classe Potenza accetta due variabili, il numero ed il numero di elevazioni. Utilizzare la ricorsione Merge con develop (in automatico) Release

esercitazione_classi's People

Contributors

francescapederzani avatar vasnormandy avatar

Watchers

Francesco Alotto avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.