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

Function fact explain how the process of recursion works in C++.In your answer assume that the function is called to calculate the factorial of 6?

What is abstraction? - Simplified view of an object in user's language is termed as abstraction. - It's the simplest, well-defined interface to an object in OO and C++ which


find area under the curve y=f(x) between x=a &y=b integrate y=f(x)

i need amibroker afl to dll plugin

flow chart for prime or not

There is a pebble merchant. He sells the pebbles, that are used for shining the floor. His main duty is to take the length of the room’s sides. But he sometimes mistakes doing that

Define the Bitwise-Exclusive-OR Operator: ^: The bitwise-exclusive-OR operator (^) compares every bit of its first operand to the corresponding bit of its second operand. If on

how would land elevation have changed if Coronado had traveled 150 miles due west from what is today Arizona instead of east toward New Mexico