<span>Artificial Intelligence is a huge field. </span>
Depends. Technically it is considered illegal. Especially if not given credit where it is due. Also if there is profit involved then it is not legal. If it not for profit or used for educational purposes you are allowed to do so if considered fair use. But I would say False as it is technically an infringement and someone can use it in court.
Answer:
As every processor works on same stages i.e. fetch , decode , execute.
Most of the computers executes ONE instruction at a time. But speed is very fast .
So let's move to memory
The fastest memory is cache (registers)
Then RAM , then hard disk.
Before an instruction can be executed, program instructions and data must be placed into memory from an input device or a secondary storage device .
Then
1)The control unit fetches (gets) the instruction from memory.
2)The control unit decodes the instruction (decides what it means) and directs that the necessary data be moved from memory to the arithmetic/logic unit. These first two steps together are called instruction time, or I-time.
3)The arithmetic/logic unit executes the arithmetic or logical instruction. That is, the ALU is given control and performs the actual operation on the data.
4)Thc arithmetic/logic unit stores the result of this operation in memory or in a register. Steps 3 and 4 together are called execution time, or E-time.
Explanation:
<h3>Here is the program~</h3>
/*Pattern.Java.*/
import java.util.*;
public class Pattern_Prog
{
public static void main (String args[ ])
{
Scanner input = new Scanner(System.in);
int length;
System.out.print("Enter a word : ");
String word = input.next( );
length = word. length( );
for(int i = 0; i<= length; i++)
{
for(int j = 0; j<i; j++)
{
System.out.print(" ");
}
System.out.println(word.substring(0,length-i));
}
input.close( );
}
}
<h3>Hope it helps you!!</h3>