Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Define a structure named 'Movie' which will contain the name of the movie, the name of the director, IMDB rating and year of release. Now,
Define a structure named 'Movie' which will contain the name of the movie, the name of the director, IMDB rating and year of release. Now, write a C program that will do the following - (a) Store the following information in a structure array - Movie 1: Don't Look Up, Director: Adam McKay IMDB Rating: 7.3, Year of Release: 2021 Movie 2: Fight Club, Director: David Fincher IMDB Rating: 8.8, Year of Release: 1999 Movie 3: Interstellar, Director: Christopher Nolan IMDB Rating: 8.6, Year of Release: 2014 (b) Write a user defined function that will take the array as input and print the information of the movies. (c) Then the function will ask the user - "Which of these 3 movies is your favorite?" - and store the reply in a string. If the reply is "Intersteller", the function will display "Mine too!" Otherwise, it will display "We have different taste in movies." (d) Use this function in the main function
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started