def computeGrade(float grade, str a){
a = "A" if a > 0.9 else a = "B" if a > 0.8 else "C"
return a;
}
print(a)
Microsoft company was founded in 1975
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: Could be subdivided into smaller and smaller units.
Explanation:
The continuous data are basically measured in the small units and can be easily subdivided into smaller parts without changing their actual meaning.
The continuous data also contain numeric value and can be divided into smaller and finer meaningful parts.
The continuous data can be measured according to the precision of the system. The size and volume are the example of the continuous data.