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
- What economic conditions are relevant in managerial decision making? Carefully explain each condition by providing example.
- Kahn of Portland Oregon, sent a letter to Lischner of Los Angeles inquiring whether Lischner’s property in Humboldt County was for sale. Lischner replied
- The demand for salt is relatively price inelastic, while the demand for pretzels is relatively price elastic. How can you best explain why and elaborate your