adric: books icon (c) 2004 adric.net (Default)
  • Conceived some trivial Scheme functions as part of working through HtDP through 3.0
  • Made coffee poorly.
  • Wrestled HP 3210 all-in-one (eg this) into functionality (printed, scanned) (This bout was a rematch.)
  • Discovered though HtDP 3.1 that I can no longer do simple algebra, as indeed I had previously suspected. That stings a bit.
  • Failed to ignore many bad things coming out from the telly.
  • Looked over last week's Time including interesting pieces on Twitter and Abrahamic monotheism.
  • Noticed that my trusty Ruby OSA scripts are giving Bus Errors.
  • Hunted up and pasted in images for the ef soundtrack mp3s I have assembled.
  • Determined that the era of crossposting to LJ has come and gone for me.

So, lazyweb, anyone want to explain to me how to find a function that calculates:

At a price of $5.00 per ticket, 120 people attend a performance. Decreasing the price by a dime ($0.10) increases attendance by 15.1

I tried two equations in two unknowns, substitute one into the other to solve for one variable and promptly got myself lost. Much scribbling and calculations later I confirmed that I was way off. Help?

1 is excerpted from HtDP 3.1

adric: books icon (c) 2004 adric.net (Default)
Finally found this trick:

  1. Start in a big language, like "Pretty Big".

  2. Execute e.g.: (current-directory "c:/program files/plt/") in the bottom pane.

  3. Then you switch to your lesson language (HtDP Beginnig Student for me) and reload (Run).


Found here: http://www.cs.utexas.edu/users/novak/drscheme.html

This allowed me to create in.dat so DrScheme could read it, allowing me to finish Exercise 2.2.1 in How to Design Programs (HtDP). Still no idea where it was looking for the file before I set that to my Desktop, lame..

Profile

adric: books icon (c) 2004 adric.net (Default)
adric

November 2025

S M T W T F S
      1
2345678
9101112131415
16171819202122
23242526 2728 29
30      

Links

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated 8 January 2026 09:59 pm
Powered by Dreamwidth Studios