Question: QUESTION 2 ( 8 MARKS) a) Briefly explain the difference between array and struct. (1 mark) b) Define a struct movieType, to store the following

 QUESTION 2 ( 8 MARKS) a) Briefly explain the difference between

QUESTION 2 ( 8 MARKS) a) Briefly explain the difference between array and struct. (1 mark) b) Define a struct movieType, to store the following data about a movie: movie title, movie director, the year the movie was released, and number of copies in stock. (2 marks) c) Based on the struct definition at (b), declare a variable of type movieType to store the following data: movie title-Hantu Kak Limah Balik Rumah, director- Mamat Khalid, year the movie released2010, the number of copies in stock-50. (3 marks) d) Display a message "The item needs to be restocked." if the copies of stock are less than 10 units. (2 marks)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!