If necessary, create a new project named TryThis18 Project and save it in the Cpp8Chap11 folder. Enter

Question:

If necessary, create a new project named TryThis18 Project and save it in the Cpp8\Chap11 folder. Enter the C++ instructions shown earlier in Figure 11-23 into a source file named TryThis18.cpp. Change the filename in the first comment to TryThis18.cpp. Save, run, and test the program using the number 40. Now, modify the program to include a void function named getSearchResults. The function will determine the number of people whose Facebook time exceeds the number of minutes entered by the user. Replace the code on Lines 21 through 26 in the main function with a call to the getSearchResults function.

1 //Social.cpp - displays the number of people whose 2 //Facebook time exceeds a specific number of minutes 3 //Created/revised by  on  5 #include  6 using namespace std; 7 8 int main() 9 { int pollResults[25] = {35, 120, 75, 60, 20, 25, 15, 90, 85, 35,

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: