Answer:
See explaination
Explanation:
#include<iostream>
#include<map>
using namespace std;
bool contains(int arr[], int size){
map<int,int> nums;
for(int i=0; i< size; i++) nums[arr[i]]=1;
int product;
for(int i=0; i<size-1; i++){
for(int j=i+1;j<size;j++){
product = arr[i]*arr[j];
if (nums[product]==1) return true;
}
}
return false;
}
int main(){
int arr[] ={6,4,-3,-2,0,5};
cout<<boolalpha <<contains(arr,5)<<endl;
return 0;
}
Yes it is a way. hope this helps
Answer:
A traffic controller is basically a system design to regulate traffic in a controlled manner with a set of traffic rules to follow so as to ensure public safety .
The main functions of a traffic light controller are listed below:
- To direct and regulate vehicular and pedestrian traffic
- To ensure safety of construction workers, emergency response team and public in general in order to avoid accidents
- These also uses CCTV and other monitoring system to manage flow of traffic and suggestion concerned with traffic congestion. These are provided by local or state authorities.
- To ensure smooth traffic flow in order to save time and chaos.
Matter. because matter surrounds us all and helps us move and change.
Answer:
To be able to explain what’s wrong and what needs to be done
Explanation:
So if your looking at a worksheet and the costumer needs help they are gonna ask you about it so your gonna need to be able to explain what’s going on and what needs to be/get done