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:
A form is closed
A form is resized.
A form is opened
A user presses a key
A user moves the mouse
Explanation:
There are different events in a form, and we can use them in different situations like:
- We can use On Resize to resize our form.
- If we On Load the form will be displayed.
- On Clicked, If there was a click in an object
- On Unload to close the form.
- On Mouse Enter and On Mouse Leave, in this case, the mouse enters or leaves the object.
Answer:
1940 – 1956: First Generation
1956 – 1963: Second Generation
1964 – 1971: Third Generation
1972 – 2010: Fourth Generation
2010- : (Present )Fifth Generation
Explanation:
- First Generation Computers (1940-1956):In this Generation the main component of computers were Vacuum Tubes.
- Second Generation Computers (1956-1963):In this generation the main component of computers were Transistors.
- Third Generation Computers (1964-1971):In this generation the main component of computers were Integrated Circuits.
- Fourth Generation Computers (1972-2010):In this generation the main component of computers were Microprocessor
- Fifth Generation (2010-Present):In this generation the main component of computers is Artificial Intelligence
Hello there,
How to drive more website traffic?
Answer: Advertise
Answer:
Using names in formulas makes it clearer to see what the function is.
Explanation:
Just answered this in my online course.