Answer:
#include <iostream>
#include <iomanip>
using namespace std;
int main() {
char choice;
cout << setprecision(12) << endl;
while(true) {
int sign = 1;
double pi = 0;
cout << "Enter number of terms: ";
long n;
cin >> n;
for(long i = 1; i < n; i += 2) {
pi += sign/(double)i;
sign = -sign;
}
pi *= 4;
cout << "value of pi for n = " << n << " is " << pi << endl;
cout << "Do you want to try again(y or n)? ";
cin >> choice;
if(choice == 'n' || choice == 'N') {
break;
}
}
return 0;
}
Explanation:
- The subnet mask would be a 32-bit integer which is formed by assigning the host bits to all 0's and the networking bits to so many 1's.
- In this method, the subnetting separates the IP address between host and network addresses.
- The subnet mask covers an IP address with its 32-bit number, thus the term "mask".
Given:
Network IP address
Subnet numbers
Calculating the borrow bits:
a)
Calculating the dotted decimal value for the subnet mask:
b)
The additional bits which will be needed to mask the subnet mask that is = 4.
Learn more: brainly.com/question/2254014
I think it would be the computer program will create a design with the exact dimensions
<span>The newest android os is:
Android 7.0 Nougat
</span>