Answer:
public class TicTacToe //Defining TicTacToe class
{
char board[3][3] ; //Creating a 2D array instance variable
TicTacToe() //Constructor to initialize the array with " - "
{
for( int i = 0;i<3;i++) //Loop for the row of array
{
for(int j = 0;j<3;j++) //Loop for the column of array
{
Board[i][j] = '-'; //Assigning "-" in each cell
}
}
}
public char getter() //Defining getter() method to return the array
{
return Board; //returning the array
}
}
<u> C++ Program to Print Pascal's Triangle</u>
#include<iostream>
//header file
using namespace std;
//driver function
int main()
{
int r;/*declaring r for Number of rows*/
cout << "Enter the number of rows : ";
cin >> r;
cout << endl;
for (int a = 0; a < r; a++)
{
int value = 1;
for (int b = 1; b < (r - a); b++)
/*Printing the indentation space*/
{
cout << " ";
}
for (int c = 0; c <= a; c++)
/*Finding value of binomial coefficient*/
{
cout << " " << value;
value = value * (a - c) / (c + 1);
}
cout << endl << endl;
}
cout << endl;
return 0;
}
<u>Output</u>
<u>Enter the number of rows : 5</u>
1
1 1
1 2 1
1 3 3 1
1 4 6 4 1
Answer:
Resources
Explanation:
Carlie certainly requires to review the resources. It is important to find out how many software engineers, testers, etc. are available. And only then Carlie can find out the exact deadlines as required here. And hence, she must have look at the resources while determining the specific deadlines. Hence, resources are the correct option.
Answer:
13.0
Explanation:
The method doubleVal() is created to accept a single parameter of type double.
It multiplies what ever the value of the parameter is and returns the resulting value.
In this question The method is called within this output statement System.out.println(doubleVal(val)); (Note that val had already been declared and assigned the value of 6.5)
The value 6.5 is doubled and outputed to the screen
Answer:
Folksonomy.
Explanation:
A system of classifying and organizing online content into categories by the use of user-generated metadata such as keywords is called a folksonomy.
This ultimately implies that, folksonomy is a user-generated system which is typically used for classifying and organizing online content into various categories through the use of metadata such as keywords, electronic tags and public tags in order to make it easier to find in the future.
Hence, folksonomy is highly beneficial in areas such as collaborative learning, teacher resource repository, collaborative research, educational platforms, e-commerce etc.