Answer:
#include <string>
#include <iostream>
using namespace std;
int main() {
string userInput;
getline(cin, userInput);
// Here, an integer variable is declared to find that the user entered string consist of word darn or not
int isPresent = userInput.find("darn");
if (isPresent > 0){
cout << "Censored" << endl;
// Solution starts here
else
{
cout << userInput << endl;
}
// End of solution
return 0;
}
// End of Program
The proposed solution added an else statement to the code
This will enable the program to print the userInput if userInput doesn't contain the word darn
The instructions that he microprocessor can execute each
second if the assembly line is present will be depending on the workload and
the architecture’s core because it is all depending on the speed of the CPU and
the multiplier that it acquires.
Answer:
0.119
Explanation:
50 independent fair games
Mean will be 50/2 = 25
Standard deviation of the loosing probability is :
* 10 = 33.536
we have to loose 33 times out of 50 games.
To find the approximate probability we use z- value table.
z value = 
z - value = 2.2659
Looking at the z-value table we get 0.119.