1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Mila [183]
3 years ago
15

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.

Learning Python
Computers and Technology
2 answers:
kramer3 years ago
8 0

Explanation:

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.

Learning Python

ExtremeBDS [4]3 years ago
3 0

I've included my code in the picture below. Best of luck.

You might be interested in
The control unit and arithmetic logic unit are part of which hardware component?
Liono4ka [1.6K]

Answer:

The control unit and arithmetic logic unit are part of which hardware component IS CPU

CPU IS THE ANSWER

Explanation:

7 0
3 years ago
Why are id thieves hard to catch?
Paladinen [302]
Because they will change their identity and therefore they will never have the same name for a long period of time . So when they commit a crime , they will be difficult to find and catch
5 0
3 years ago
A Von Neumann model for a computer system has a central processing unit (CPU) that makes
sammy [17]

Answer:

1. Calculation unit

2. control unit

3. storage

Explanation:

4 0
3 years ago
Determine whether the compound condition is True or False.<br> 1 2)
Greeley [361]

Answer:

<em><u>where is whole question</u></em>

<em><u>where is whole questionExplanation:</u></em>

<em><u>where is whole questionExplanation:.....,.............</u></em>

5 0
3 years ago
Type two statements that use rand() to print 2 random integers between (and including) 100 and 149. End with a newline.
blondinia [14]

Answer:

#include <iostream>

using namespace std;

int main()

{

   cout<< rand() % 50 + 100 <<endl;

   cout<<rand() % 50 + 100 <<endl;

   

   return 0;

}

Explanation:

The rand() gives you a random number. If you use rand() % 50, it will give you a random number between 0 and 49. Since we are required to have the numbers between 100 and 149, add 100 to this expression. This way, you will have a random number between 100 and 149. Type this expression two times and use "endl" to end with a new line.

5 0
3 years ago
Other questions:
  • The flowchart shape for input or output is an oval. <br> a. True <br> b. False
    6·1 answer
  • At which layer of the osi model is the entire message referred to as the payload
    15·1 answer
  • To create a small research essay (no more than 1 page) about coronavirus. You will need to have at least two sources and you wil
    15·1 answer
  • Assume the availability of a function called printStars. The function receives an int argument. If the argument is positive, the
    5·1 answer
  • Talia was a scientist whose research compared the birth rates of young
    12·2 answers
  • Which of the following describes an iteration in a computer program?
    8·1 answer
  • A computer projecter is an example of a(n):<br> Input Device<br> Output Device<br> Storage Device
    12·2 answers
  • kayah has created a website that explains what her business does. what type of computer program is needed to access/view kayah's
    7·2 answers
  • Which of the following is true of lossy and lossless compression techniques?
    13·1 answer
  • What action should you take if you become aware that sensitive compartmented information has been compromised
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!