GithubHelp home page GithubHelp logo

binary-calculator's Introduction

Binary calculator

title_gif

This is the submission for my final project of the course C963 'Grundlagen der Programmierung'.

The project's description reads as following:

10 Binärzahlen beliebiger Länge

Implementieren Sie basierend auf dem Datentyp std::vector eine Klasse zur Darstellung einer Binärzahl mit N Stellen.

• Erlauben Sie die bitweise Negation (operator), die bitweise AND-Operation ∧ (operator&) und die bitweise OR-Operation ∨ (operator|).

• Implementieren Sie den Ein- und Ausgabeoperator zur Speicherung der Zahlen in Dateien.

• Implementieren Sie eine Operation, die zwei Zahlen konkateniert (aneinanderhängt).

• Implementieren Sie die Division zweier Binärzahlen im Sinne der üblichen schriftlichen Division

• Implementieren Sie eine Funktion, die die Parität der Zahl (also die Anzahl an Einsen) bestimmt.

• Implementieren Sie die Vergleichsoperatoren >, <, ==, != auf dem Datentyp.

• Implementieren Sie eine Methode, die die Binärzahl in unsigned long long int umwan- delt.

• Schreiben Sie ein Hauptprogramm, in das Sie Binärzahlen beliebiger Länge eingeben können und die zuvor beschriebenen Operationen auf die Binärzahlen anwenden können.

Wie bei allen anderen Programmen fügen Sie eine entsprechende TEST.txt hinzu und testen auch alle Funktionen. Unterlegen Sie das mit Beispielen.

binary-calculator's People

Contributors

herrmanno avatar

Watchers

James Cloos avatar  avatar

Forkers

lukasdoteu

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.