class tvShow {
       public:
       string name;
       string dayofweek;
       int lengthInMin;
       double rating;
}

write a sequence of statements that will do the following:
If the show is scheduled for wednesday and the rating is above 20, print We Have a New Hit Show.
if this is not true subtract 5 from the number of minutes.

if ( ..... == "wednesday" && .... == 20.0)
             cout << "We Have a New Hit Show";
else 
            ..... = ..... - 5;

I don't know what to put in where you see the dots.

You can either:

1) declare object of type tvShow and use the dot operator (if you use static memory to declare the object) or the arrow operator (if you use dynamic memory) to access the member variables that you need to fill in the blanks.

2) you could declare and define a member function and access the variables directly without needing to use an operator.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.