Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You have a structure array CD that stores information about your collection of 100 CDs. The first two fields are strings and the next two

image text in transcribed

You have a structure array CD that stores information about your collection of 100 CDs. The first two fields are strings and the next two fields are numbers (double precision by default). The last field is a single character. P for pop, R for rock, and C for country 100x1 struct array with fields: title artist duration tracks genre Assuming you collect only pop, rock, and country, which of these expressions evaluates to true for CD (1) when: (1) the CD has the genre pop or rock: or (2) the CD has a duration longer than 45 minutes but not exceeding 60 minutes and has 12 or more tracks? Select one: O a. (CD(i) duration 60)... Il CD (1) tracks >= 12 ... IL (CD(i).genre == 'P' && CD(i).genre == 'R') cross out b (CD(i) duration > 45 && CD(i) duration = 12) 11 CD(i)-genre ~= 'C' cross out 0 (CD(i) duration > 45 && CD(i) duration = 12) IL (CD(i).genre == '' && CD (i).genre == 'R') cross out O d (CD(i).duration 60 ... && CD(i) tracks > 12 && CD(i) tracks == 12 && CD(i)-genre == 'P' && CD(i).genre == 'R' cross out 0 (CD(i) duration > 45 || CD(i) duration 12 || CD(i).tracks == 12) && (CD (1) -genre == 'C' cross out

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

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

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions