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:
Answer:
The port that should be set open to allow users to access this new server is:
TCP port.
Explanation:
Ports are openings or entrance doors through which data packages have access to a PC or server. TCP and UDP are transport protocols with port numbers. TCP means Transmission Control Protocol. They are used to connect two devices over the internet and other networks. UDP means User Datagram Protocol. They are used to connect applications and to speed the transfer of data. Comparatively, UDP is faster, simpler, and more efficient than TCP. TCP enables retransmission of lost data packets, which UDP cannot do.
Answer:
Car insurance
Explanation:
they are machines with ai
Answer:
Healthy plant growth follows from sufficient water.
Contrapositive: If water is insufficient, then there isn't healthy plant growth
Increased availability of information is a necessary condition for further technological advances
Contrapositive: Absence of further technological advances implies decreased availability of information.
Errors were introduced only if there was a modification of the program.
Contrapositive: If there wasn't any modification of the program then error was not introduced into the program
Fuel savings implies good insulation or storm windows throughout.
Contrapositive: The absence of good insulation or storm windows throughout implies that there is no fuel savings.
Explanation:
A contrapositive statement is formed from a conditional statement as we can see from the answers above.
In a contrapositive statement, we just interchange the hypothesis and the conclusion of the inverse statement.
This implies that, when the converse of the statement is true, then the inverse of the statement is also logically true.
<u>Answer:</u>
My suggestions are given below:
<em>Method 1:</em> Can create series of questions from book-inside and take an open-book test. Open-book test method is one of the best way to learn
<em>Method 2:</em> Written test is always necessary to really understand how much they remember the concept
<em>Method 3:</em> Participate in online quiz related to the learning outcome given in the question
<em>Method 4: </em>Answer questions from the reference books
<em>Method 5:</em> Go to library or review online books for further study.