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
answer:
1.The program comes to a line of code containing a "function call".
2.The program enters the function (starts at the first line in the function code).
3.All instructions inside of the function are executed from top to bottom.
4.The program leaves the function and goes back to where it started from.
5.Any data computed and RETURNED by the function is used in place of the function in the original line of code.
Answer:
The answer is B = 365
Explanation:
The following variable were initialized:
a = 1
b = 10
c = 100
x = 0
Then we store the value of 'c' times 3 in 'x'
x = 3 * c = 3 * 100 = 300
x = 300
Then we add the value of 'b' times 6 to the value already in 'x'
x = x + 'b' times 6
x = x + (b * 6) = 300 + (10 * 6) = 300 + 60 = 360
x = 360
Then we add the value of 'a' times 5 to the value already in 'x'
x = x + 'a' times 5
x = x + (a * 5) = 360 + (1 * 5) = 360 + 5 = 365
x = 365.
Therefore, the value of 'x' displayed is 365.
Answer:
<em>A checkbox</em>
Explanation:
A checkbox <em>(check box, tick box, tick box) is an User interface widget that allows the user to choose a binary option.</em>
Like a choice between any of two potential options that are mutually exclusive.
For instance, on a simple yes / no question, the user may have to answer ' yes ' (checked) or ' no ' (not checked).
Answer:
MIS (management information systems) is a computer system consist of hardware and a software that together serves as the backbone of operations for an organisation. It is an important tool for any business irrespective of its scale of operation and its size and frequency and usage may be vary with business. As, MIS tools help in move data and manage the information.
The technologies and tools are used in MIS have evolved over the time such as minicomputers, mainframe and server networks.