Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Thank you in advance! 14.1: Creating a virtual film information assistant Proble

ID: 3824534 • Letter: T

Question

Thank you in advance! 14.1: Creating a virtual film information assistant Problem Description As we learned in class, he MATLAB structure is particularly useful when we have an object or item that has several descriptive fields, such as a book (which may have the fields of Author, Publisher, Year, etc.). Here, weintend to create a MATLABfunction that contains a database of films, and, when queried for a particular film,reports information about that film in the form ofa text particular, we would like the function str filminfo(N) to report the text str on the film with inde following string The film "kname directed by

Explanation / Answer

function str = filminfo(N)
m='The film "'
name=Info(N).name
x='", directed by '
dir=Info(N).director
y=', won the Academy Award for Best Picture in '
year=Info(N).year
z='. The film stars '
actor=Info(N).actor
za='. '
str = [m,name,x,dir,y,num2str(year),z,actor,za]

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote