Answer:
// here is code in c++ to find the approx value of "e".
#include <bits/stdc++.h>
using namespace std;
// function to find factorial of a number
double fact(int n){
double f =1.0;
// if n=0 then return 1
if(n==0)
return 1;
for(int a=1;a<=n;++a)
f = f *a;
// return the factorial of number
return f;
}
// driver function
int main()
{
// variable
int n;
double sum=0;
cout<<"enter n:";
// read the value of n
cin>>n;
// Calculate the sum of the series
for (int x = 0; x <= n; x++)
{
sum += 1.0/fact(x);
}
// print the approx value of "e"
cout<<"Approx Value of e is: "<<sum<<endl;
return 0;
}
Explanation:
Read the value of "n" from user. Declare and initialize variable "sum" to store the sum of series.Create a function to Calculate the factorial of a given number. Calculate the sum of all the term of the series 1+1/1!+1/2!.....+1/n!.This will be the approx value of "e".
Output:
enter n:12
Approx Value of e is: 2.71828
Food and oxygen would be the answer
Answer:
Bus Topology
Explanation:
In local area networks (LANs), Bus topology is used to connect all the computers on the single cable. This cable is called backbone of the network. In this type of network when a computer sends data, it will be received on entire network.
For Example
In water line system, all the taps that are connected to single pipe. If the pipe or a single tap broken this will affect the whole system.
Entire system can be crash if any node or wire will break.
Topology refers to the physical or logical arrangement of a network.
Answer:
IN COMPUTER TERMS:
CPU is centrsl processing unit
RAM is random access memory