Package org.tp.exos.cylindre

Examples of org.tp.exos.cylindre.Unit


    /**
     * Construit un objet OperationCylindre de facon interactive. Puis affiche l'ensemble des propriétés du cylindre.
     * @param screen
     */
    public void run(Screen screen) {
        Unit u = screen.ask("Choisissez l'unité des dimensions du cylindre " + ACCEPTED_UNITS.keySet() + ": ", Input.Unit);
        float d = screen.ask("Entrez le diamètre du cylindre, en " + u.getName() + ": ", Input.Float);
        float h = screen.ask("Entrez la hauteur du cylindre, en " + u.getName() + ": " + ": ", Input.Float);
        screen.show(new OperationCylindre(d, h, u));
    }
View Full Code Here

TOP

Related Classes of org.tp.exos.cylindre.Unit

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.