Thesaurus is a tool use to find the synonym of the of a word.
Here's the way to use the thesaurus in the word processor.
=> highlight the word, then right-click, Navigate to synonyms and the words will display.
Answer:
nrToCheck = int(input("How many numbers do you need to check? "))
nrEven = 0
nrOdd = 0
for i in range(nrToCheck):
number = int(input("Enter number: "))
if (number % 2):
nrOdd = nrOdd + 1
print("{} is an odd number".format(number))
else:
nrEven = nrEven + 1
print("{} is an even number".format(number))
print("You entered {} even number(s).".format(nrEven));
print("You entered {} odd number(s).".format(nrOdd));
Answer:
Companies want people who know more about them and rather have someone who is interested in the company than someone who is just looking for a way to get payed.
Explanation:
Answer:
False.
Explanation:
When we declare a variable as reference type we have to initialize that variable otherwise the compiler will give error that the reference variable is not initialized.You also cannot initialize the variable Foo& with NULL value because it is a reference variable and we have to initialize it.
On the other there is no need to initialize the variable Foo * since it is a pointer it can also store NULL value.
So the answer is only Foo* can store NULL value not Foo &.
Answer:
//here is code in c++.
#include <bits/stdc++.h>
using namespace std;
int main()
{
// variable
int temp;
cout<<"Please enter the temperature:";
//read temperature from user
cin>>temp;
int n;
// reduce the case for switch
n=temp/10;
// print output according to the switch case
switch (n) {
case 7:
case 6:
cout<<"tennis"<<endl;
break;
case 5:
case 4:
cout<<"golf"<<endl;
break;
default:
if(temp>=80)
cout<<"swimming"<<endl;
else
cout<<"skiing"<<endl;
break;
}
return 0;
}
Explanation:
Read the value of temperature from user and assign it to variable "temp".
Calculate n=temp/10, to limit the number of cases in the switch statement.
if temperature is greater or equal 60 & less than 80, it will print "tennis".
If temperature is greater or equal 40 & less than 60, it will print "golf".
in default case, if temperature is greater than 80, it will print "swimming".
if less than 40, print "skiing".
Output:
Please enter the temperature::67
tennis