string a = “My name is Fred. Is your name Fred?”;
string b = “I like fish and fries. Farewell.”;
int countF = 0;
Write a few lines of code (need not be a separate function) to:
(a) Concatenate strings a and b separated by a space into a string f. Print it.
(b) Assign countF the number of times that the uppercase F appears in string f. Print the value of countF.
(c) Print “Fred’s found” if string f contains the letters Fred.
Recently Asked Questions
- Why EBP is an essential component of the practice of a BSN-prepared RN. Two ways in which it can continue to integrate evidence into practice and encourage it
- how can incorporating an anticipated starting annual salary into managing student loan debt? please explain.
- How might temperament influence children's behavior in the classroom. What are some ways you can promote emotional development in the early childhood classroom