Answer:
The function written in C++
int str(string word)
{
int count = 1;
for(int i =0; i<word.length();i++)
{
if(word[i] == ' ')
{
count++;
}
}
return count;
}
Explanation:
This line defines the function
int str(string word)
{
This line initializes count to 1
int count = 1;
This line iterates through the input string
for(int i =0; i<word.length();i++)
{
This line checks for blank space
if(word[i] == ' ')
{
Variable count is incremented to indicate a word count
count++;
}
}
return count;
}
<em>See attachment for full program</em>
Answer:
Explanation:
Relevance of Thrown Items:
- The thrown items mainly consist of the Windows NT training kit, outdated magazines and some written notes, etc. All these things can be used in the company for training the fresh talent.
- These things must be used for the purpose of training fresh people and the things like programs written in HTML must not be dumped like this because they consists of the raw code which can be harmful if gotten into wrong hands.
- Hence, the information like this must be taken care of seriously as these can be loopholes into companies down.
- Rest of the things like food wrappers, empty bottles, resume copies are all worthless to the company and can be thrown into the dump as soon as possible.The business cards must also be thrown if not important.
Recommendation To Management:
- The management must take these things seriously and must double check the company properties before throwing them into dump. There must be a committe build to check the things that are been going directly to the dump.
- They must have the responsibility for checking the things before going to the dump and must filter all the important things from the garbage back to the shelves of the office.
- Hence, these things must be taken care of so that no harm is to be done to the company.
cheers i hope this helped !!
Yes, click CTRL + F at the same time and a small search bar will pop up on the top right of your screen