# Please do it with C++. Thanks:) Write a program that reads a string and a character...

###### Question:

Please do it with C++. Thanks:)

Write a program that reads a string and a character from the keyboard. The program should output how many times the character appears in the string. Make the program run in a loop until the string finish is input.

Sample run:

$Input a string: alicia Input a letter: a The letter appears 2 times Input a string: felix Input a letter: x The letter appears 1 time Input a string: finish Good Bye.$

#### Similar Solved Questions

##### The opposite angles of a parallelogram are congruent
The opposite angles of a parallelogram are congruent. The adjacent angles are supplementary. If angle X measures 110 degrees, then what are the measures of angle Y and angle Z?...
##### Need help asap!!! A 23 kg body is moving through space in the positive direction of...
need help asap!!! A 23 kg body is moving through space in the positive direction of an x axis with a speed of 340 m/s when, due to an internal explosion, it breaks into three parts. One part, with a mass of 4.9 kg, moves away from the point of explosion with a speed of 51 m/s in the positive y direc...
##### Problem 5.27 The diffusion coefficients for species A in metal B are given at two temperatures:...
Problem 5.27 The diffusion coefficients for species A in metal B are given at two temperatures: T(°C) 1020 1260 D (m2/s) 8.09 x 10-17 7.96% 10-15 (a) Determine the value of the activation energy Od (in J/mol). J/mol (b) Determine the value of Do. m2/s (Use scientific notation.) (c) What is the m...
##### To prepare the protein sample, you need mix proteins and Laemmli buffer (5x) and then fuse...
To prepare the protein sample, you need mix proteins and Laemmli buffer (5x) and then fuse water to make up to 15ml . You have 4ml protein sample, calculate how many water and Lammeli Buffer you need to add? Laemmli final concentration should be 1x....
##### A sealed container with a volume of 2.00 L contains 30.0 atm of pure O2 and...
A sealed container with a volume of 2.00 L contains 30.0 atm of pure O2 and 1.35 g of methanol (CH3OH, 32.05 g/mol) at 25 °C. The combustion finishes, and the container is cooled back to 25 °C. What is the final partial pressure of CO2? What is the final total pressure? (20 pts) please give ...
##### Determine whether the given pair of graphs is isomorphic, if the graphs are not isomorphic provide...
Determine whether the given pair of graphs is isomorphic, if the graphs are not isomorphic provide an argument? A) F G B) 4) Consider the following weighted graph G below...