| | |
please help me write this prog in lisp
Please support our Legacy and Other Languages advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
Join Date: Oct 2009
Posts: 12
Reputation:
Solved Threads: 0
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...
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
- Numbers in Turbo C++ (C++)
- songa rating prog (C++)
- Lisp question (Legacy and Other Languages)
- PLZ HELP!!..I WANNA write a prog forcomparing n concatenating strings using POINTERS (C++)
- Could guide me... (C++)
- pro. for cpoyright (Community Introductions)
- help with this prog (C++)
- sum of series (C++)
Other Threads in the Legacy and Other Languages Forum
- Previous Thread: GW Basic running on WIndows 2000/XP
- Next Thread: HEX dump
Views: 798 | Replies: 0
| Thread Tools | Search this Thread |
Tag cloud for Legacy and Other Languages





