Menu

[Solved]Write Program Takes Survey Least 12 Persons Different Age Group Identify Favorite Movie Ge Q37225690

C++ Question

Write a program that takes survey of at least 12 persons from different age group and identify the favorite movie genres from

For example: Name of Student William Hart Lauren Vance Mary Hughes Steven Dyer Warren King Oliver Robertson 21 Una Hughes Jac

Write a program that takes survey of at least 12 persons from different age group and identify the favorite movie genres from each age group Specification Age Group Consider only 4 groups as shown below Group Group name Elementary School Students Middle School Students High School Students College Students. 10-14 15- 18 19-22 Movie Genres Consider only 4 categories Action. :An action story is similar to adventure, and the protagonist usually takes a risky turn, which leads to desperate situations (including explosions, fight scenes, daring escapes, etc.) Science Fiction: stories in this genre use scientific understanding to explain the universe that it takes place in Comedy: Comedy is a story that tells about a series of funny, or comical events, intended to make the audience laugh. History: Story about a real person or event For the completion of this program, Write a class named “Students” that has the following data attributes Name: a string that contains the full name of student .Age:a integer that holds the age information of student Movie genre: an Array that contains the values either “Like” or “Dislike” for each category Also write appropriate getter and setter functions. The Survey has to let all students enter the information either through standard input or from a Write function named “find_fav_genre” that takes age group name as input and finds the fa- vorite movie genre in that particular age group Write function named “calc_percentage_genre” that takes Age group name and specific movie genre as input and returns a list of percentages of students who like the movie genre in that particular age group For example: Name of Student William Hart Lauren Vance Mary Hughes Steven Dyer Warren King Oliver Robertson 21 Una Hughes Jack Peake Joanne Alan Bell Tim Buckland 14 Edward Poole Hannah. Watson 15 Olivia Short Penelope Morrison 22 iFi, Comedv Histo 6 Like, Like,Dislike,Like] 6 [Like, Like,Dislike,Dislike] 11 Dislike,Like, Dislike, Like] 12 Like, Dislike, Dislike, Like] 20 Like,Dislike, Dislike,Like] Like,Like, Dislike,Dislikel 9[Dislike, Like, Dislike,Like] 15 Dislike,Dislike, Like, Like] 16 Like,Dislike, Dislike,Like] 21 [Like,Dislike,Dislike,Like] Like,Dislike, Dislike,Like] 8 Like, Like,Dislike,Dislike] Like,Dislike, Dislike, Likel 18 Like,Dislike, Like, Dislike] Like,Dislike, Like, Dislikel King Age group: E Favorite Movie Genre: SciFi Age group: M Favorite Movie Genre : History Age group: H Favorite Movie Genre: Action Age group: C Favorite Movie Genre: Action Age group : E %of students who like SciFi-100 % of students who like Action movies-75 %of students who like Comedy movies-0 % of students who like History 50 Repeat for the other age groups as well Show transcribed image text Write a program that takes survey of at least 12 persons from different age group and identify the favorite movie genres from each age group Specification Age Group Consider only 4 groups as shown below Group Group name Elementary School Students Middle School Students High School Students College Students. 10-14 15- 18 19-22 Movie Genres Consider only 4 categories Action. :An action story is similar to adventure, and the protagonist usually takes a risky turn, which leads to desperate situations (including explosions, fight scenes, daring escapes, etc.) Science Fiction: stories in this genre use scientific understanding to explain the universe that it takes place in Comedy: Comedy is a story that tells about a series of funny, or comical events, intended to make the audience laugh. History: Story about a real person or event For the completion of this program, Write a class named “Students” that has the following data attributes Name: a string that contains the full name of student .Age:a integer that holds the age information of student Movie genre: an Array that contains the values either “Like” or “Dislike” for each category Also write appropriate getter and setter functions. The Survey has to let all students enter the information either through standard input or from a Write function named “find_fav_genre” that takes age group name as input and finds the fa- vorite movie genre in that particular age group Write function named “calc_percentage_genre” that takes Age group name and specific movie genre as input and returns a list of percentages of students who like the movie genre in that particular age group
For example: Name of Student William Hart Lauren Vance Mary Hughes Steven Dyer Warren King Oliver Robertson 21 Una Hughes Jack Peake Joanne Alan Bell Tim Buckland 14 Edward Poole Hannah. Watson 15 Olivia Short Penelope Morrison 22 iFi, Comedv Histo 6 Like, Like,Dislike,Like] 6 [Like, Like,Dislike,Dislike] 11 Dislike,Like, Dislike, Like] 12 Like, Dislike, Dislike, Like] 20 Like,Dislike, Dislike,Like] Like,Like, Dislike,Dislikel 9[Dislike, Like, Dislike,Like] 15 Dislike,Dislike, Like, Like] 16 Like,Dislike, Dislike,Like] 21 [Like,Dislike,Dislike,Like] Like,Dislike, Dislike,Like] 8 Like, Like,Dislike,Dislike] Like,Dislike, Dislike, Likel 18 Like,Dislike, Like, Dislike] Like,Dislike, Like, Dislikel King Age group: E Favorite Movie Genre: SciFi Age group: M Favorite Movie Genre : History Age group: H Favorite Movie Genre: Action Age group: C Favorite Movie Genre: Action Age group : E %of students who like SciFi-100 % of students who like Action movies-75 %of students who like Comedy movies-0 % of students who like History 50 Repeat for the other age groups as well

Expert Answer


Answer to Write a program that takes survey of at least 12 persons from different age group and identify the favorite movie genres… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *