Answer:
program by INPUT statement
Explanation:
CLS
REM to find the area of rectangle
INPUT L
INPUT B
LET AOR = L * B
LET " AOR = "; AOR
END
Press F5
Answer:
See below:
Explanation:
AI is not embraced in every industry because of the type of industry and what it requires. In some situations, a human is needed since an AI cannot determine what to do and can sometimes even cause death.
AI isn't embraced everywhere because for some things we need a person, lets say for example, we need an AI to respond to 911 calls, that simply won't work due to the many situations and training the bot too will be a nightmare. For example, if a caller says a word that normal humans can understand, or a "code word" that every human knows but they haven't bothered to tell the bot, that will be the end of the line for them.
There are mutliple reasons to not use AI depending on the situation whether its life and death or just plain impractical.
Answer:
Physical and data link layer.
Explanation:
The ethernet cable is used at the physical layer. The physical layer consists of hardware components. This layer is responsible for transmission of data bits between two nodes via a physical wire. The data link layer provides the means in which data packets are transmitted from one node to another.
Suppose two computers (A & B) are directly connected through Ethernet cable. A is sending data to B, the packets would be sent from computer A to computer B if computer B is free if not it would wait until computer B is not transmitting before it can start sending data packets to computer B.
Answer:
import java.io.*;
import java.util.Scanner;
class divide {
public static void main (String[] args) {
Scanner num=new Scanner(System.in);//scanner object.
int userNum=num.nextInt();
while(userNum>1)//while loop.
{
userNum/=2;//dividing the userNum.
System.out.print(userNum+" ");//printing the userNum.
}
}
}
Input:-
40
Output:-
20 10 5 2 1
Input:-
2
Output:-
1
Input:-
0
Output:-
No Output
Input:-
-1
Output:-
No Output.
Explanation:
In the program While loop is used.In the while loop it divides the userNum by 2 in each iteration and prints the value of userNum.The inputs and corresponding outputs are written in the answer.
Answer:
See Explanation
Explanation:
I'll assume the question is about the use of constants in QBasic because consonants do not have any special function or usage in QBasic.
In simple terms: In QBasic, constants are used to represent elements that do not change in value during program execution.
Take for instance, you intend to use
in your program.
Its value is 
So, 3.142 will always be a constant in your program. One of the ways it can be used in a program is:
10 LET PI = 3.142
<em>The above represents a numeric constant. QBasic also have string constants.</em>