subject

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.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 19:30
Which of the following are types of formatting you can apply to a spreadsheet? choose all that apply.
Answers: 3
question
Computers and Technology, 22.06.2019 13:00
Which part of the cpu accepts data?
Answers: 1
question
Computers and Technology, 23.06.2019 21:50
Description: write function lastfirst() that takes one argument—a list of strings of the format "lastname, firstname" —and returns a list consisting of two lists: (a) a list of all the last names (b) a list of all the first names
Answers: 2
question
Computers and Technology, 24.06.2019 03:30
Auniform resource locator (url) is a formatted string of text that web browsers, email applications, and other software programs use to identify a particular resource on the internet. true false
Answers: 2
You know the right answer?
Write a program whose input is a string which contains a character and a phrase, and whose output in...
Questions
question
Mathematics, 24.10.2019 17:43
question
Arts, 24.10.2019 17:43
Questions on the website: 13722361