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

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

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