Answer:
c for the first one and d for the secound one
Explanation:
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
Answer:
true
Explanation:
this is true because technology is anything that is ment to help mankind. chairs and tables help people. something as simple as the wheel, or shows is also technology.
Answer:
inject, update
Explanation:
Dependency injection is a concept in object-oriented programming that links or transfers the functionality of an independent class to a dependent class.
Assuming two classes, Vehicle and Bus are created, the Bus class inherits from the Vehicle. The Bus class is dependent on the Vehicle class and its instances create instances of the Vehicle object.
It is easier and faster to update the Bus class and other classes that inherit from the Vehicle class by updating only the Vehicle class.
C. int, char
ints are usually at least 32 bits long, a char is 8 bits long, so the 24 bit question is