word = whatever value you want.
if "mold" in word:
print("Mold is in the variable word.")
else:
print("Mold is not in the variable word.")
Find and replace is the answer
Answer:
Following are the program in the C++ Programming Language:
#include <iostream>//header file
using namespace std;//namespane
//set main method
int main() {
int a[100]; //set integer type array variable
int value, i = 0; //set integer variables
cout<<"Enter less than 0 to exit:"<<endl; //message for exit
cout<<"Enter the integer numbers:"<<endl; //message to enter numbers
do{ //set do while
cin>>value; //get input from the user
a[i++] = value; //append elements in array
}while(value>=0);
i--;
cout<<"\nArray are:"<<endl;//message for array
for(int k = 0;k<i;k++){ //set for loop
cout<<a[k]<<" "; //print array
}
return 0;
}
<u>Output</u>:
Enter less than 0 to exit:
Enter the integer numbers:
1
2
3
4
5
-1
Array are:
1 2 3 4 5
Explanation:
Here, we set the integer data type main method "main()" and inside it:
- we set integer type array variable with index value 100.
- we set two integer type variable "value" and "i" initialize value 0.
- we set the do-while loop in which we get the input from the user and and append in the array and pass condition if the value is greater then equal to 0.
- Finally, set for loop and print the elements of an array.
Answer:
Explanation:
The given parameters are:
Required
Determine the curved surface area of the big cone
The volume of a cone is:
For the big cone:
Where
R = radius of the big cone and H = height of the big cone
For the small cone:
Where
r = radius of the small cone and H = height of the small cone
Because both cones are similar, then:
and
Substitute values for Vbig and Vsmall
Recall that:
So, we have:
Take cube roots of both sides
Factorize
The curved surface area is calculated as:
Where
For the big cone:
For the small cone
Because both cones are similar, then:
and
This gives:
Recall that:
So, we have:
Make the subject
Substitute values for and
<em>Hence, the curved surface area of the big cone is 1143.33cm^2</em>
<h2>Piston rings help form a tight seal between the piston and cylinder.
Answer is A. Piston ring</h2>