944,029 Members | Top Members by Rank

Ad:
Oct 17th, 2009
0

please help me write this prog in lisp

Expand Post »
a. create a list that stores the courses that you are taking this semester where the courses are stored in sublists as (designator number) such as (csc 375) so that your list will look like this: ((csc 375) (his 100) (cit 140) (csc 402) (eng 200)) and then create 3 other lists for fictitious CSC and/or CIT majors. All students except one should have at least one eng class. They should all have at least 2 courses, no more than 7.
b. write the following functions*
i. given a course list and a designator, print all courses of that designator
ii. given a course list, print all upper level courses (3xx and 4xx courses)
iii. given a course list, count the number of courses that are either CSC or CIT and returns that number
iv. given a course list, determine whether a given schedule is “hard”, “easy” or “in between” where a “hard” schedule is one where the student is taking only upper level courses, or only CIT/CSC courses, an easy schedule is one where the student is taking only 100 or 200 level courses or is one with no CSC or CIT courses, and in between is everything else, your function should return how hard the schedule is
c. run the four functions on your 4 student course lists, use ’eng as the designator when you try out the function from 5.b.i.


I am new to lisp so please help me...
Similar Threads
Reputation Points: 2
Solved Threads: 0
Newbie Poster
maddy1985 is offline Offline
12 posts
since Oct 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Legacy and Other Languages Forum Timeline: Help with Scheme!!
Next Thread in Legacy and Other Languages Forum Timeline: HEX dump





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC