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
Sauron [17]
3 years ago
9

Test if the word mold is stored in the variable word. Computer science.

Computers and Technology
1 answer:
Andre45 [30]3 years ago
5 0

Answer:

word = str("Enter a word: ")

if "mold" in word:

 print("Mold is in the variable word.")

else:

 print("Mold is not in the variable word.")

You might be interested in
An online article in 2001 described a study in which twelve sixth-grade students who had not previously played chess participate
ipn [44]
Bdbxhdhdhdbxbdhdhxhxhdhdhdhdhdhdhdhdhdbdhdhdhdhdhdhrhrhrhrhrhdhdhdhdisisieiejjdidieieieieieiei
6 0
3 years ago
Which type of topology describes the physical arrangement, installation, and connection of cables, computer, and other devices?
Nutka1998 [239]
<span>The network topology describes the physical arrangement, installation, and connection of cables, computer, and other devices.
The network topology can be bus topology (a</span><span> network topology that uses a single cable or conductor to connect all nodes on the network.) ,</span>star topology (a network topology in which cables running from each node connect to a single point, such as a hub.), ring (a network topology that consists of a single cable that runs continuously from node to node), mesh, hybrid, hub topology,... according the arrangement of the nodes. 

8 0
3 years ago
Read 2 more answers
Suppose that a queue is implemented using a circular array of size 12. What is the value of last after the following operations?
otez555 [7]

Answer:

10

Explanation:

An enqueue operation is a function that adds an element(value) to a queue array. A dequeue operations removes an element from a queue array. Queue arrays follow a first-in-first-out approach, so elements that are first stored in the queue are removed/accessed first(enqueue operations add elements at the rear of the queue array).

The following operations leave 10 elements in the queue of array size 12 after its done:

10 enqueue operations= adds 10 elements

5 dequeue operations= removes 5 elements( 5 elements left in queue)

6 enqueue operations= adds 6 elements(11 elements in queue)

10 dequeue operations= removes 10 elements(1 element left in queue)

8 enqueue operations= adds 8 elements(9 elements in queue)

2 dequeue operations= removes 2 elements(7 elements left in queue)

3 enqueue operations= adds 3 elements(10 elements in queue)

Therefore there are 10 elements in the queue after enqueue and dequeue operations.

8 0
3 years ago
_______ is used to transmit high-bandwidth digital data over telephone lines.
slava [35]

A DSL is used to transmit high-bandwidth digital data over telephone lines.

<h3>What device is used to transmit data over telephone line?</h3>

DSL is known to be a kind of a technology that is made for high-speed network or is one that is used via Internet access over voice lines.

Therefore, A DSL is used to transmit high-bandwidth digital data over telephone lines.

Learn more about modem from

brainly.com/question/7320816

#SPJ11

7 0
2 years ago
Write a program that mimics a calculator. The program should take as input two integers and the operation to be performed. It sh
IgorC [24]

Answer:

The cpp calculator program is as follows.

#include <iostream>

using namespace std;

int main()

{

   //variables to hold two numbers and operation

   int num1;

   int num2;

   char op;

   char operations[] = {'-', '/', '*'};

   std::cout << "Enter first number: ";

   cin>>num1;

   std::cout << "Enter second number: ";

   cin>>num2;

   do

   {

       std::cout << "Enter the operation to be performed(-, /, *): ";

       cin>>op;

       if(op!=operations[0] && op!=operations[1] && op!=operations[2])

           std::cout << "Invalid operator." << std::endl;

   }while(op!=operations[0] && op!=operations[1] && op!=operations[2]);

   std::cout<< "Numbers are "<< num1 <<" and "<< num2 <<std::endl;

   std::cout << "Operator is " <<op<< std::endl;

   if(op==operations[0])

       std::cout << "Result is "<< num1-num2 << std::endl;  

   if(op==operations[1])

       if(num2==0)

           std::cout << "Denominator is zero. Division cannot be performed." << std::endl;

       else

           std::cout << "Result is "<< num1/num2 << std::endl;

   if(op==operations[2])

           std::cout << "Result is "<< num1*num2 << std::endl;

   return 0;  

}

OUTPUT

Enter first number: 12                                                                                                                    Enter second number: 0                                                                                                                         Enter the operation to be performed(-, /, *): +                                                                                                Invalid operator.                                                                                                                              Enter the operation to be performed(-, /, *): /                                                                                                Numbers are 12 and 0                                                                                                                           Operator is /                                                                                                                                  Denominator is zero. Division cannot be performed.

Explanation:

1. Declare two integer variables to hold the numbers.

int num1;

int num2;

2. Declare one character variable to hold the operation to be performed.

char op;

3. Declare one character array to hold all the operations.

char operations[] = {'-', '/', '*'};

4. User input is taken for the two numbers followed by the operation to be performed.

5. Validation is applied for incorrect operation entered by the user. This is done using if statement inside a do-while loop.

6. Once the correct input is obtained, the calculator program performs the required operation on the numbers. This is done using if statements.

7. If the denominator number is zero for division operation, a message is displayed to the user.

8. The numbers followed by the operation chosen by the user are displayed.

9. The result of the operation is computed and displayed.

5 0
3 years ago
Other questions:
  • Write a program in C++ to swap two variables usingfunctions?
    13·1 answer
  • Internet-filtering software that electronically blocks out websites in specific rating categories is called _____________ by tho
    9·1 answer
  • What is a written or electronic document that outlines etiquette policies for using networks and network resources?
    8·1 answer
  • Prompt the user to enter five numbers, being five people's weights. Store the numbers in an array of doubles. Output the array's
    5·1 answer
  • Create a function called howManyUntil(stopNum) where stopNum is an integer from 0 and 99
    12·1 answer
  • The advantage of a digital camera in taking nighttime photographs is that you can see
    10·1 answer
  • Which of the following statements about version control are true? Select 3 options.
    7·2 answers
  • Which of the following is the fastest computer processing speed?
    10·1 answer
  • Jjhb ft fv tuning Denise l Debbie
    9·1 answer
  • What is folded card publishing?​
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!