Answer:
18, 13, 19
Explanation:
Number of computer programmers proficient only in Java = 45 - ( 1+1+6) = 37
Number of computer programmers proficient only in C++ = 30 - (6+1+5) = 18
Number of computer programmers proficient only in python = 20 - ( 1+1+5) = 13
Number of computer programmers are not proficient in any of these three languages = 100 - ( 37 + 18 + 13 + 1+ 1+ 5+ 6 ) = 100 - 81 = 19
In 1967, Ralph Baer and his colleagues at Sanders Associates, Inc. developed a prototype for the first multiplayer, multiprogram video game system, called "The brown box"
Answer:
#include <iostream>
using namespace std;
void askCat(int &cateto1, int &cateto2);
int AreaRett(int cateto1, int cateto2, int &area);
void stampaRisultato(int area);
int main()
{
int cateto1, cateto2, area;
askCat(cateto1, cateto2);
area = AreaRett(cateto1, cateto2,area);
stampaRisultato(area);
}
void askCat(int &cateto1, int &cateto2)
{
cout << "Inserisci lunghezza cateto1: ";
cin >> cateto1;
cout << "Inserisci lunghezza cateto2: ";
cin >> cateto2;
}
int AreaRett(int cateto1, int cateto2, int &area)
{
area = (cateto1*cateto2)/2;
return area;
}
void stampaRisultato(int area)
{
cout << "L'area del triangolo rettangolo e': " << area << endl;
}
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!