Question: If necessary, create a new project named TryThis18 Project and save it in the Cpp8Chap11 folder. Enter the C++ instructions shown earlier in Figure 11-23
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,](https://dsd5zvtm8ll6.cloudfront.net/si.question.images/images/question_images/1599/6/2/7/7165f5861c4c90cc1599627713751.jpg)
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, 60, 15, 10, 25, 60, 100, 90, 10, 120, 5, 40, 70, 30, 25, 5}; 10 11 12 13 14 int minutes = 0; int numover = 0; 15 17 18 cout
Step by Step Solution
3.50 Rating (163 Votes )
There are 3 Steps involved in it
TryThis18cpp displays the number of people whose Facebook time exceeds a specific number of mi... View full answer
Get step-by-step solutions from verified subject matter experts
