Write code to concatenate strings separated by space

Assignment Help Programming Languages
Reference no: EM1387134

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 space into a string f. Print it.

(b) Allot countF number of times that uppercase F appears in string f. Print value of countF.

(c) Print "Fred's found" if string f contains letters Fred.

Reference no: EM1387134

Questions Cloud

Explain how a manager personal biases and stereotypes : Explain how a manager's personal biases and stereotypes may affect an organization's success in creating a workplace which is culturally competent.
Examine whether this trend is likely to continue over : Explain why do you think a large number of women are opting out of corporate management? Examine whether this trend is likely to continue over the next ten years.
Mttf and standard deviation : Failure times for a randomly failing component are 3.3, 14.3, 27.1, 41.3, and 92.2 hours. Find the MTTF and standard deviation using: a) moment estimation. b) maximum likelihood estimation.
Illustrate what differences acquiring revenue : Illustrate what differences acquiring revenue, accruing expenses and training of key personnel are there in a non-profit organization's inability to thrive and a for-profit organization's inability to thrive?
Write code to concatenate strings separated by space : Write a few lines of code (need not be a separate function) to: Concatenate strings a and b separated by space into a string f. Print it.
Find base of the parent plant : An oak tree will produce thousands of acorns that are buried or eaten by squirrels. Explain why would the tre require to make so many a corns? why might a plant whose seeds disperse far from the parent
Describe the primary system : Describe the primary system described in the story including the parts of the system, the system's purpose and the larger system in which it is embedded.
Explain the conditions under which decision trees : What should management do to achieve the highest expected payoff? Explain the conditions under which decision trees can be useful.
Illustrate what type of decision is ken facing : For example, if Ken purchases a Sub 100 and there is a favourable market, he will realize a profit of $300,000. On the other hand, if the market is unfavourable, Ken will suffer a loss of $200,000. But Ken has always been a very optimistic decisio..

Reviews

Write a Review

Programming Languages Questions & Answers

  Design of implementation codes-object oriented programming

Supporting document is required to reflect design of implementation codes and implementation details which utilises object oriented programming concepts.

  Program to inputs four numbers and graphs them as pie chart

Write down a program which inputs four numbers and graphs them as pie chart.

  Create design of very simple racing game

Create a very simple racing game of your own design. Making a game from the ground up is a lot of effort, so let's keep things basic.

  Create application to allow user to enter a five-dgit number

Create an application that allows the user to enter a five-digit credit card number; assume that the fifth digit is the check digit. The application should use the method.

  How to assess quality of computer program

These are generally done at macroscopic level, but how would you assess quality of computer program if you received the e-mail with source listing of a program?

  How recursion terminate in array

Continue in this fashion until entire array is read. Then recursively determine a candidate for B; this is  candidate for A (why?). How does the recursion terminate?

  Write advantages of external css and internal css

Write down the advantages of external CSS compared to internal CSS? Describe conditions in which each is suitable type.

  Write script to declare and sets variable equal to balance

Write a script that declares and sets a variable that's equal to the total outstanding balance due. If that balance is greater than $10,000.00, the script should return a result set consisting of VendorName.

  Explain about lexical analyzer

Explain about Lexical Analyzer

  Write a program that will generate an array

Write a program that will generate an array

  Appropriate for two classes to inherit from superclass

CDs and DVDs have several common characteristics. Would it be appropriate for these two classes to inherit from a common superclass?

  Create two global varibles to declare an empty array

Need to create two global varibles. The first currentTab, which will reference the current menu tab being dispalyed with a initial value of null, the second variable is maxZ which will store the z-index and it's initial value is 1.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd