Answer:
Beeper
Explanation:
A buzzer pr beeper, as security device, converts electrical energy to sound energy.
Answer:
#include <iostream>
using namespace std;
void swap(int *a,int *b)
{
int temp;
temp=*a;
*a=*b;
*b=temp;
}
bool consecutive(int k1,int k2,int k3)
{
int arr[]={k1,k2,k3}; //storing these variables into an array
int i,j;
for(i=0;i<3;i++)
{
for(j=i;j<3;j++)
{
if(arr[i]>arr[j])
{
swap(arr[i],arr[j]); //swapping to sort these numbers
}
}
}
if((arr[1]==arr[0]+1)&&(arr[2]==arr[0]+2)) //checks if consecutive
return true;
else
return false;
}
int main()
{
int result=consecutive(6,4,5); //storing in a result variable
if(result==0)
cout<<"false";
else
cout<<"true";
return 0;
}
OUTPUT :
true
Explanation:
In the above code, it stores three elements into an array and then sorts the array in which it calls a method swap() which is also defined and interchanges values of 2 variables. Then after sorting these numbers in ascending order , it checks if numbers are consecutive or not, if it is true, it returns true otherwise it return false.
Optical Disc Drive (ODD) An optical disc drive (ODD)
for using CDs, DVDs, and Blu-ray discs to listen to music or watch a movie.
Most drives also allow you to write data to a disc, so you can create your own music CDs, video DVDs or even create of back-up copy of your important data files.
dell.com
Answer:
Looking at the website analytics helps you to optimize your content based on users’ interests, thus making your website more effective and also increasing your website traffic.
Explanation:
The website data analytics tools will provide me with a lot of information about the actual users of the site like their behaviors, age, demographics, gender. I will get to know:
- What they do on the website
- What they like about the site
- Features they don't use on the website.
These will help me to further optimize the website to meet the taste of the users, which will help boost more traffic on the website.
Answer:
Variables can represent numeric values, characters, character strings, or memory addresses. Variables play an important role in computer programming because they enable programmers to write flexible programs. Rather than entering data directly into a program, a programmer can use variables to represent the data.
Explanation: