Answer:
Answered
Explanation:
function from S_1 to S_2 (functions have unique mapping
each element in S_1 has 2 elements to map to in S_2 and there are 3 elements in S_1
therefore number of functions = 2^3 = 8 (2 choices for each of 3 elements)
a) relations between S_1 and S_2 are subset of S_1 x S_2
there are 6 elements in S_1 x S_2 therefore relations would be 2^6 = 64
(no of subsets of set of n elements = 2^n)
b) By above explanation functions from S_2 to S_1 = 3^2 = 9
and relation from S_2 to S_2 = 2^4 = 16
A robot may have to avoid an obstacle without coming to a complete stop before turning. If the robot is able to make a wide enough, long turn. instead of stopping, then turning sharply. For example if the robot were to come across an object and can sense said object before hand. it can then take action into turning before it is close enough.
I think it's wait until you get started to decide on the props and camera settings...
Answer:
// here is code in C++.
#include <bits/stdc++.h>
using namespace std;
// main function
int main()
{
// variables
int n;
double average,sum=0,x;
cout<<"enter the Value of N:";
// read the value of N
cin>>n;
cout<<"enter "<<n<<" Numbers:";
// read n Numbers
for(int a=0;a<n;a++)
{
cin>>x;
// calculate total sum of all numbers
sum=sum+x;
}
// calculate average
average=sum/n;
// print average
cout<<"average of "<<n<<" Numbers is: "<<average<<endl;
return 0;
}
Explanation:
Read the total number from user i.e "n".Then read "n" numbers from user with for loop and sum them all.Find there average by dividing the sum with n.And print the average.
Output:
enter the Value of N:5
enter 5 Numbers:20.5 19.7 21.3 18.6 22.1
average of 5 Numbers is: 20.44