Answer:
The correct code for this question:
g=float(input("Enter your English test grade:")) #take input from user.
#check conditions
if (g>=100 and g<=90):
print ("A")
#g greater then equal to 100 and less then equal to 90.
if (g>=89 and g<=80):
print("B")
#g greater then equal to 89 and less then equal to 80.
if (g>=79 and g<=70):
print("C")
#g greater then equal to 79 and less then equal to 70.
if (g>=69 and g<=65):
print("D")
#g greater then equal to 69 and less then equal to 69.
if(g<=64):
print("F")
#g less then equal to 64.
else:
print ("Not a grade")
#not a grade or fail.
Explanation:
In this program, we use to take a value from the user and check the value from the various conditions. To check all the condition we use if-else statement and AND operator that check to the range to together.
If -else is a conditional operator. In that, If block is used to check the true part and else part takes false value, and AND is a logical operator that check the two range together
Answer: Reach and frequency
Explanation:
The media strategy is the planning and action that basically involve high reach in the exposure by using the media vehicle. It basically improve the overall conversation rate of customers.
The conversation rate is refers to the total percentage of the users which involve using the website and various applications.
This strategy also involve with high frequency that limited the list of the media vehicle.
Answer:
b)void aNonclassFunction (Banana co);
Explanation:
In the function definition you have to pass the tell the function which type of argument it is taking.In our case we are taking a variable co of Banana type passing it to the function named aNonclassFunction having no return type.
So the definition will be like this.
void aNonclassFunction (Banana co);
Answer:
turnRight and turnaround
Explanation:
The regular karel does not know these commands
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