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

How to write a function template A function template should be written at the beginning of the program in the global area, or you may place it into a header file. All function

You have to write a subroutine (assembly language code using NASM) for the following equation.

The Switch Construct The switch statement is a multi-way decision-making construct that tests an expression matches one of a number of constant values, and branches accordingly

Description - The TR-069 CPE WAN Management Protocol (CWMP) is a protocol that was created by the Broadband Forum (formally the DSL Forum) which sets out a common method for CPE de

a program to determine whether a number is an odd or even using recursive function

expression and its types with example programs

Write a Program to illustrate the Call by Reference? Here is an illustration: #include . int compute_sum(int *n); int main( void) { int n=3, sum; printf("%d\n",n); /

Explain about the Variables in c language? The Variable is an identifier that is used to represent some specified kind of information within a designated portion of the program

A: Name mangling is the rule according to which C++ modify function's name into function signature before passing that function to a linker. It is how the linker differentiates amo