Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Scheme/DrRacket

Name: Anonymous 2013-01-20 16:45

How do I do this without using lambda but only using local and abstract list functions?

Type Student:

;; A student is a list of the form (list id cav passed failed),
;; where
;; id is a natural number (the student id number)
;; cav is a number between 0 and 100, inclusive (student's cumulative
;; average)
;; passed is a non-negative number (number of credits student has passed) ;; failed is a non-negative number (number of credits student has failed)


Question:
Write a function candidates that consumes a list of student lists and produces a list of id numbers for students in first year whose strong academic performance makes them candidates for a university scholarship. All students who meet the following criteria are candidates:
• students are in first year (i.e. passed + failed <= 6.0 units),
• passed >= 4.5 units,
• no courses have been failed, and
• cav is at least 90% or is at least 10% higher than the average of all first year students in the list.
The produced list must be in the same relative order as the consumed list.
For example,

(candidates
   (list (list 9898 54.7 6.5 0) (list 1234 83.7 6 0)
         (list 1140 57.9 5 0.5) (list 2311 68.5 5.5 0.5)
         (list 6708 61.5 3 0.75)))
   => (list 1234)

Name: Anonymous 2013-01-20 16:58

Name: Anonymous 2013-01-20 17:16

Graph search edges Facebook toward becoming a bit exploitative, even embarrassing: witness Gizmodo’s piece with women who appear as results for “Women who like sucking dicks.” More than likely, those women “liked” that particular activity as a joke and didn’t expect it to be seen by anyone other than their friends or maybe they left their profiles open and someone pranked them by discreetly adding the term to their interests.
Without making excuses for those women, who are probably regretting their ignorance of privacy settings and good security practices, graph search removes the context when something appears in someone’s profile.

Arse Technica, the liberal technonews outlet, at its best.  They forbade themselves from allowing thoughts like ``maybe some women actually like sucking dicks?'' because such thoughts are not feminist or empowering.  Yuck.

Name: Anonymous 2013-01-20 18:46

>>3
When did crimethink and illogical "feminism" bullshit become part of liberalism anyway?

Name: Anonymous 2013-01-20 19:38

>>3
The feminist perspective would be that those women are being persecuted and shamed for their presumed promiscuity, which by patriarchal values is a personal failing on women. Nowadays feminists would defend their right to suck as many dicks as they would like, other issues not withstanding.

Now go fuck yourself, shitlord.

>>4
You too.

Name: >>4 2013-01-20 22:45

>>5
I dislike your blame-shifting ``patriarchy'' crap. If you really can't do it without assigning blame, at least blame it on the idiocy of humans and their illogical culture.

Also I've actually seen non-trolling women actually think like >>3 said.

Name: Anonymous 2013-01-20 23:14

Bump

Name: Anonymous 2013-01-21 3:42

>>5
Oh you act like you're so tough and shit, but I can bet you you're not even close to being capable of gender-blindness. I bet you internally judge people all the time and that your judgements (even if opposite to what most people would think) are always discriminating on their sex/gender.

Name: Anonymous 2013-01-21 4:00

>>8
Gender-blindness is the bleeding edge of idiocy. Suck on the nasty end of shotgun-kun's shotgun, cretin.

Name: Anonymous 2013-01-21 4:07

>>1
7/10 on the assessment of your troll powers,
You are now the "without lambda" Guy.

Name: Anonymous 2013-01-21 4:24

((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((((lisp and scheme is useless))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))))

Name: Anonymous 2013-01-21 5:01

>>11
Back to /dev/null ``plz''.

Name: Anonymous 2013-01-21 7:19

Suck my fucking cock, faggots.

Name: Anonymous 2013-01-21 9:24

>>6
There's shitty people who think and do these shitty things, you see it on /prog/, and it follows a pattern. It has come to be called patriarchy, for obvious reasons. I don't see the blame shifting here, what they did exists within this framework, and if you're wondering, it's the product of society as a whole, not just men.

Name: Anonymous 2013-01-21 9:35


      ∧                    
    /  \                   
  /      \ / ̄ ̄ ̄ ̄ ̄       
/  ( -∀-)  <     /prog/ is mine, nida! 
  / ̄/  つ  つ  \_____   
   》 }    丿            
 巛__/ へ  ゝヘ           
  ///  丿丿  丿丿        
/.//   ∪   ∪ 

  ┏━━━━━━━━━━━┓                                                             
  ┃        WELCOME TO        ┃
  ┃           /prog/             ┃
    ┃    -chinese government  ┃                                         
  ┗┳┳━━━━━━┳┳━┛                                                             
    ┃┃           ┃┃                                                    
 ━━┻┻━━━━━━┻┻━━━ 

   HAVE YOU READ YOUR SICP TODAY?
  SICP is Structure and Interpretation of Chinese Programming.
  It teach good concept free of western idea.  

Name: Anonymous 2013-01-21 9:54

>>15
nida
u wot m8

Name: Anonymous 2013-01-21 10:51

>>9
Fuck off, Ahmed.

Name: sage 2013-01-21 11:29

>>15
wo de, bu shi ni de!

Name: Anonymous 2013-01-21 11:38

>>18
LLLLLEEEEEEEELLLLLLLLLLLLLLLLLLLLLLLLLLL
>FUS!
>RO!
>DAH!

Name: Anonymous 2013-09-01 20:47



ヽ、__ \`ヽ、        / //
   `ヽ.`', ',   ____   / r'r'
     ,ゝ!.|"´   `"7 //
    /  `´        !.!/ヽ.
   ./  / /i ! ,  , `ヾ.  ',
   i ./ ./ ‐!-| ハ _ハ_ i ヽ. i
   | i ,!アi''ヽレ' i'ァ;ー-!、.|  i |
   .!ヘレ'.i 'ゞ'     !、_ソノレヘ,.ゝ |
     | !"  _'    "./| |   |
     | i'>.、.ヾ ̄ソ ,.イ | |  | |
    .| | |;:イ>r;<´:| !、_!  ! |
    |ハ| .|::::| !_//:::;| |::::::ヽ!. |
     !':::ヽト;ヘハヽ/:::/:レi::::::::::::i |
   /::::::::i::::ヽ! !/;:イ:::::i:::::::::::::::|/

  目を離さないでほしいわね
  すぐ( ゚д゚)ポカーンと逝ってしまうから


ヽ、__ \`ヽ、:::::::      / //
:::::::::::`ヽ.`', ',   ____   / r'r'
::::::::: ::: : ,ゝ!.|"´   `"7 //
:::::: : ::/  `´        !.!/ヽ.
: : : / / / __!,. ハ _ハ_  ヽ. ',
::  | i ,.! /__! レ' レ' _!_ハ i  ', i
   !ヘレi i '"{*}`゛ ' '"{*}`゛レ、 ,.ゝ|
     | | ゛ ̄" , ゛ ̄" i |Y  |
     | ,!、  ーr─‐ァ'  ,ハ | .|  |
      | | i>、,_ ̄ _,..イ | l |、!  |
    .| | |,!イヽ ̄//::::| |::`ヽ.!
     !/ヽ!::::! ゝイ /::::/レ'::::::::::',
    /:::::::i::::',/`ヽ/::::/:::::/::::::::::::i

 -‐ァ 」_,.、 .| 十 --‐ァ ヽ i 、、─ァ、、
 、___ /i レ レ(]ヽ `く `_ノ   (_

  ー┼‐‐ァ  / i 、、 __,,.r'´
    | ´ /   \   |

Don't change these.
Name: Email:
Entire Thread Thread List