Coder Social home page Coder Social logo

uebung-018's Introduction

Uebung-018 -- TimeCalculator

Lehrziele:

  • Verzweigung
  • Division und Modulo
    Das Programm realisiert einen Zeitumrechner, der eingegebene Sekunden in Tage, Stunden, Minuten und Sekunden umrechnet.
    Die Ausgabe der höherwertigen Stellen erfolgt nur, wenn der Wert größer als 0 ist (z.B. werden Tage nur ausgegeben, wenn das Ergebnis zumindest einen Tag ergibt).

Die Ausgabe hat sich an den Vorgaben zu orientieren:

Beispielausgabe

Spezialistenaufgabe

Ist eines der Teilergebnisse 0 (Tage, Stunden, Minuten, Sekunden), wird dieser Teil bei der Ausgabe ausgelassen.
Ist ein Teilergebnis 1 erfolgt die Ausgabe der Einheit in der Einzahl.

. . . . . . . . . .... [SPOILER] .... . . . . . . . .

Visual Studio:

1
2
3

Ausgabe:

1Sekunde
60Sekunde
Beispiel

uebung-018's People

Contributors

ixi-enki avatar

Watchers

 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.