Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: drscheme help

  1. #1
    New to the CF scene
    Join Date
    Sep 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    drscheme help

    program being used is drscheme

    the question is, i need to create a function function-name that consumes an integer 10 or greater and produces the number
    obtained by removing the units For example, (function-name 173) will produce 170, (function-name 445) will produce 440, and (function-name 120) will produce 120.

    i tried on yahoo answers too but this isnt a popular enough program to get help
    any help appreciated thank you

  • #2
    New to the CF scene
    Join Date
    Oct 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    This is def. late

    I know this really late but here is the code
    (define (fun n)
    (* (quotient n 10) 10)
    )

  • #3
    Master Coder
    Join Date
    Dec 2007
    Posts
    6,682
    Thanks
    436
    Thanked 890 Times in 879 Posts
    Quote Originally Posted by takeachance View Post
    program being used is drscheme

    the question is, i need to create a function function-name that consumes an integer 10 or greater and produces the number
    obtained by removing the units For example, (function-name 173) will produce 170, (function-name 445) will produce 440, and (function-name 120) will produce 120.

    i tried on yahoo answers too but this isnt a popular enough program to get help
    any help appreciated thank you
    any scheme resurse is good, you must only discover the differences.
    Look over this links:
    http://www.scheme.com/tspl4/
    http://www.scheme.com/csug/
    http://schemers.org/
    http://www.schemers.com/
    http://groups.csail.mit.edu/mac/proj...eme/index.html
    http://www.ccs.neu.edu/home/dorai/t-...-y-scheme.html

    best regards

  • #4
    New to the CF scene
    Join Date
    Dec 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I need some help on creating a program that generates a list of posn and draws the points onto an empty scene... I can email the problem if anyone can help me out.... thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •