Write a constructor for a movie, C/C++ Programming

Suppose we use Lists to represent a movie which has a title, cast and year. For example, the following list represents the movie, "Die Hardly", with the cast "Bruce Willing" and "Tony White" released in 1980.

((( Die Hardly) 1980 ((Brue Willis) (Tony White))))

(a) Write a constructor for a movie and procedures that return title, cast and year of release.

(b) Write a procedure called (add-movie m ml) that allows the addition of a movie, m, to a simple list of movies, ml.

(c) Write a procedure called (find-movie t ml) to find a movie with a given title, t, within a list of movies, ml.

(d) Write a procedure called (delete-movie t ml) to delete a movie with a given title, t, from a list of movies, ml.

(e) Write a procedure called (list-movies a ml) that returns a list of all movies by an actor, a, from a list of movies, ml, containing several actors.

 

Posted Date: 3/25/2013 1:05:02 AM | Location : United States







Related Discussions:- Write a constructor for a movie, Assignment Help, Ask Question on Write a constructor for a movie, Get Answer, Expert's Help, Write a constructor for a movie Discussions

Write discussion on Write a constructor for a movie
Your posts are moderated
Related Questions
write a program to accept ten numbers and display the total


what are assessor. elaborate with clear easy diagrams

How would you print the values of the variables words and lines so they appear in the form: There were 6040 words and 680 lines. Here, 6040 and 680 represent the values of the two

need an expert programmer to finish coding the requirements from the assignment withen 4 hrs

Nested Classes Many a times, it becomes essential to have a class contain properties of two other classes. One way is to explain a class within another - that is a class with m

Yes. "Memory pools" are useful in many situations. The bad news is that I'll need to drag you through the mire of how it acts before we talk about all the uses. Firstly, recall

decoding message

WAP TO PRINT SERIES FROM 1 TO 10 & FIND ITS SQUARE AND CUBE # include stdio.h> # include conio.h> # include math.h>   void main () { int a=1,sqr=0,cube=0;

Employ operator () instead of operator[]. While you have multiple subscripts, the cleanest way to do it is along with operator () instead of with operator[]. The reason is that