*USING C++ PROGRAMMING* TUTORIAL CHAPTER 4(STRUCT) Most of people especially teenagers like to watch movies in cinema. There are variety of movies available currently such

Answered step by step
Verified Expert Solution
Question
61 users unlocked this solution today!

image text in transcribed

*USING C++ PROGRAMMING*

TUTORIAL CHAPTER 4(STRUCT) Most of people especially teenagers like to watch movies in cinema. There are variety of movies available currently such Avengers: The Endgame, Detective Pikachu, BTS: Burn the Stage, Paskal and etc. Each movie has its characteristics, which are title, genre, duration (in seconds) and classification (such as U,P13 and 18). 1. Write a struct definition for the movie based on the characteristics given. (1 Mark) 2. Create an array named MovieList to store 5 movies in main (1 Mark) 3. Write the function definition for each of the following : (3 Marks) a. Function inputData( ): This function receives two parameters; an array of movies and the size of the array. It then reads data from the user and stores them into the array. b. Function longestDuration( ): this function receives two parameters; an array of movie and the size of the array. It then determines and then display all information of the movie that has the longest duration. (5 Marks) c. Function Count(): This function receives two parameters; an array of movie and the size of the array. It then count how many movies that are classified as "18" then return the value to the main. (3 Marks) d. Write the main function : (2 Marks) i. Call inputData() fucntion to get the value form the user. ii. Call longestDuration( ) function

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Link Copied!

Step: 1

blur-text-image
Question Has Been Solved by an Expert!

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

100% Satisfaction Guaranteed-or Get a Refund!

Step: 2Unlock detailed examples and clear explanations to master concepts

blur-text-image_2

Step: 3Unlock to practice, ask and learn with real-world examples

blur-text-image_3

See step-by-step solutions with expert insights and AI powered tools for academic success

  • tick Icon Access 30 Million+ textbook solutions.
  • tick Icon Ask unlimited questions from AI Tutors.
  • tick Icon Order free textbooks.
  • tick Icon 100% Satisfaction Guaranteed-or Get a Refund!

Claim Your Hoodie Now!

Recommended Textbook for

Database Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books
flashcard-anime

Study Smart with AI Flashcards

Access a vast library of flashcards, create your own, and experience a game-changing transformation in how you learn and retain knowledge

Explore Flashcards

Students Have Also Explored These Related Databases Questions!

Q:

2.5 Describe a social audit.

Answered: 3 weeks ago