Giter VIP home page Giter VIP logo

tuda-fop's Introduction

Lerngruppe FOP / Hausarbeiten

===

Verzeichnisstruktur


Main folder

  • Übung 1
    • Aufgabe 1
    • Aufgabe 2
  • Übung 2

Checklist for Java projects

  • @author tag in every class
  • Complete javadoc
  • Zip the project with Unr_Name (name = author) on submission

Checklist for Racket projects

  • Useful names
  • Split complex functions or duplicate function calls
  • Useful functio body comments

Every higher function

  • Contract
  • Description
  • Example
  • >= 2 Tests

Every local function

  • Contract
  • Description
  • Example

Every lambda expression

  • Contract (without name)
  • Short description

tuda-fop's People

Contributors

pkwagner avatar

Stargazers

 avatar

Watchers

games647 avatar  avatar  avatar

tuda-fop's Issues

Problems with 5.2 - help required

Unfortunately, I am not able to debug the code of 5.2, because of some content-related issues I cannot find. I know the code is not in its final version, hence there will occur some errors while executing, that is definitely not the point, I am currently worried about. My aim is to change the code that it can be executed without getting errors while compiling respectively interpreting. May anybody could have a closer look at my source code?

Round Methode?

Seit wann wird denn bei 1,5 auf 1 abgerundet?

;; round-down:: number -> number
;;
;; Rundet den Wert, sodass die Nachkommastellen entfernt werden
;;
;; Ex: round-down(1.5) = 1
;; round-down(2.5) = 2
(define (round-down val)
(if (integer? val)
;; Zahl muss nicht gerunden werden. Es ist keine Dezimalzahl
val
;; Runde die Zahl
(round (- val 0.5))
)
)

Handling negative capital

Is it really a good idea to return the unprocessed capital in add-interest if capital is negative? IMHO it should throw an error because this is a function for deposit interests.

Verzeichnisstruktur

Wollen wir nicht die Aufgaben alle in ein einziges Repository stellen und nicht für jede Übung ein neues Repository anlegen?

Wir können dann hier dennoch die Aufgaben in Unterverzeichnise ordnen. Ich stelle mir das so vor

Main folder

  • Übung 1
    • Aufgabe 1
    • Aufgabe 2
  • Übung 2

Oder was ist eure Meinung?

Wrong template

WRONG
;; Network AStadt -> BDorf -> CStadt
(define a-stadt (make-station 'AStadt '(IC SE) 2.5))
(define b-dorf (make-station 'BDorf '(SE) 6))
(define c-stadt (make-station 'CStadt '(IC SE) 0))

RIGHT
;; Network AStadt -> BDorf -> CStadt
(define a-stadt (make-station 'AStadt '(IC SE) 0))
(define b-dorf (make-station 'BDorf '(SE) 6))
(define c-stadt (make-station 'CStadt '(IC SE) 2.5))

'floor' as a given function?

Are we certainly allowed to use the built-in floor function? Afaik there's no use of it in the script, do we need to write our own using round?

Example:
(define (round-floor num) (round (- num 0.499)))

Terrible layout

Somehow my source code file was deformed by DrRacket ( 03e6f7b ) after pressing "Save". Does anybody know what that is? How do I configure DrRacket not to do this?

Eigene round-Funktion

Wie In-Commit bereits angemerkt sollten die round-Funktionen in

  • Abgabe.rkt
  • Version_user1831.rkt

so abgewandelt werden, dass .5 aufgerundet wird.

@games647 hatte da eine solution?

Fix HA1

  • Show method name in the error message
  • Fix precise rounding with the round-down method

Abgabe 11.11.2016

Wie weit seid ihr mit den Aufgaben?

Die 5.2 ist soweit fertig, dass sie zur Abgabe freigegeben werden kann!

Bitte um baldige Rückmeldung!

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.