Computers and Technology

Write a program whose input is a string which contains a character and a phrase, and whose output indicates the number of times the character appears in the phrase.
Ex: If the input is: n Monday
the output is: 1
Ex: If the input is: z Today is Monday
the output is: 0
Ex: If the input is: n It's a sunny day
the output is: 2
Case matters.
Ex: If the input is: n Nobody
the output is: 0 n is different than N.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 16:00, sdonachy7
You have inserted new slides based on a word outline. how do you format these new slides to match the powerpoint presentation formatting? a. select all slides in the presentation and click format on the home tab. b. select the new slides and click reset on the home tab. c. select all slides in the presentation and click reset on the home tab. d. select the new slides and click format on the home tab.
Answers: 3
image
Computers and Technology, 24.06.2019 20:20, jdkrisdaimcc11
Write python code that prompts the user to enter his or her age and assigns the user’s input to an integer variable named age.
Answers: 1
image
Computers and Technology, 25.06.2019 16:00, Onlytrillest
|the entire hostname has a maximum of
Answers: 1
image
Computers and Technology, 27.06.2019 04:30, goreeefk4939
What is your favorite setting for landscapes? for example do you prefer deserts, mountains, or forests? why?
Answers: 2
Do you know the correct answer?
Write a program whose input is a string which contains a character and a phrase, and whose output in...

Questions in other subjects: