Answer:
public void printAttitude(int n){
if(n == 1){
System.out.println("disagree");
}
else if(n == 2){
System.out.println("no option");
}
else if(n == 3){
System.out.println("agree");
}
else {
}
}
Explanation:
The above code has been written using Java syntax. The first line denotes the method header which contains the access modifier(public), followed by the return type(void), followed by the name of the method(printAttitude). The method name is followed by a pair of parentheses in which the parameter to the method is written - in this case - an int parameter, n.
Note: When a method does not return a value. It has a return type of void as shown on the first line of the code.
In the method body, a nested if...else statement is written to test for the value of the parameter. If the parameter value of n is 1, the string "disagree" is printed to the console. Else if the parameter value of n is 2, the string "no option" is printed to the console. if the parameter value of n is 3, the string "agree" is printed to the console. For other values of n, nothing is printed. This is shown in the body of the else statement.
Hope this helps!
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:
more than one safeguard may be necessary.
Explanation:
The conceptual framework can be used to developed as well as construct through a process of the qualitative analysis. The approach includes the in the frameworks for identifying and evaluating the threats to compliance with the rules.
But since the rules formed cannot always address all the circumstances, the Code includes to evaluate the threats to the compliance of more than one safeguards that are necessary.
In order to start a part time job first we have to do some research in particular criteria they are Research your degree and occupational information and industry information.
Explanation:
There are many part- time jobs, they are web developer, sales representative, interpreter and translator and content writer.
There are various websites for this kind of jobs. For example in Quicker, Monster and indeed .com are some of the websites.
The we developer job is creating website for the customer based on the requirements. Example school management, library management.
Then comes data entry job it is a simple job that is to enter the captcha and correcting errors in files and copy pasting job.
Content writer is a job in which the different types of questions are answered for the U.S based companies.
Answer:
The wireless adapter to use is the Wireless USB 2.0 Extender
Explanation:
The Wireless USB 2.0 Extender is a USB component that enables a computer to connect to and communicate with other computers on a network, or even to connect to the internet.
It uses an IEEE 802.11g radio platform and communicates within a radio frequency range of 2.4GHz.
Therefore, in cases where a notebook computer does not have a built-in wireless LAN card or PC card interface, you can use the Wireless USB 2.0 Extender as the best solution to that problem.