Answer:
Explanation:
import java.util.Scanner;
public class SquareDisplay {
public static void main(String []args){
// Scanner is used to get value from command line
Scanner console = new Scanner(System.in);
System.out.print("Enter an integer in the range of 1-15:");
int number = console.nextInt();
// check if number is greater then 15 or less then 1 then return error message
if(number>0 && number<=15){
System.out.println("Error :Wrong Input");
return;
}
for( int i=0; i< number; i++){
for( int j =0; j<number; j++){
System.out.print("X");
}
System.out.print(" ");
}
}
}
Code Explanation
As we want to show the square of X's we need to execute 2 nested for loop to achieve the target result. Outer for loop will determine that how many times we need to show the group of X's.
And the inner for loop will actually display's number of X's for every outer loop iteration.
Output
Case 1:
Enter an integer in the range of 1-15:5
XXXXX XXXXX XXXXX XXXXX XXXXX
Case 2:
Enter an integer in the range of 1-15:16
Error :Wrong Input
Case 3:
Enter an integer in the range of 1-15:2
XX XX
public colleges are cheaper for in-state residents
Answer:
<h3>Norman only likes to stuff birds, not other animals.</h3>
Answer:
int[] a = {10, 20, 30, 40, 50, 60, 70, 80, 90, 100};
Explanation:
//written in java
The left side <u>int[] a</u> Declare a variable(a) which is of type Integer array(<u>int[]</u>).
The equal sign(=) assign the right side to the left side.
The right side initialize the integer array(a) with ten element.
Answer:
A. With content-based filtering, users
receive recommendations for items
liked by similar users.
Explanation:
A database management system (DBMS) can be defined as a collection of software applications that typically enables computer users to create, store, modify, retrieve and manage data or informations in a database. Generally, it allows computer users to efficiently retrieve and manage their data with an appropriate level of security.
A data dictionary can be defined as a centralized collection of information on a specific data such as attributes, names, fields and definitions that are being used in a computer database system.
In a data dictionary, data elements are combined into records, which are meaningful combinations of data elements that are included in data flows or retained in data stores.
This ultimately implies that, a data dictionary found in a computer database system typically contains the records about all the data elements (objects) such as data relationships with other elements, ownership, type, size, primary keys etc. This records are stored and communicated to other data when required or needed.
Content-based filtering uses an algorithm to recommend to users what they like.
The statement about content-based filtering which is false is that, with content-based filtering, users
receive recommendations for items
liked by similar users.