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:
A double is best used for numbers that are real, as in they have a decimal. Int is best used for numbers that are whole, as in no decimal. Strings are best used, as in the example you gave, when you have to represent a piece of information that isn’t strictly numbers
if its the same chart im looking at on this page, the answer is john.
Answer:
the software that manages and controls the activities and resources of the computer is OS
Explanation:
the software that manages and controls the activities and resources of the computer is OS
because here we know that CPU is hardware
and ALU is a digital circuit that is use to perform arithmetic and logic operations
and
GUI or Graphical User Interface controls the graphical interface of the applications
so here correct option is OS that is the software that manages and controls the activities and resources of the computer
The answer would be Assembly language as assembly language is not used for web development, but rather is a low level programming language.
Please mark branliest if this helped!!