Answer:
Following are the code in java language
abstract interface PointingDevice // interface PointingDevice,
{
// abstract method getXCoord()
public abstract int getXCoord();
// abstract method getYCoord()
public abstract int getYCoord();
// abstract method attentionRequired()
public abstract boolean attentionRequired();
// abstract method setResolution( )
public abstract double setResolution(double a);
}
Explanation:
In this code we have declared a abstract interface "PointingDevice" which contains the four abstract method getXCoord of type int , getYCoord() of type int , attentionRequired() of type boolean and setResolution() of type double .
These method have only declaration not definition any interface or class which inherit the inteface PointingDevice must define all these four method otherwise it also be abstract .
Answer:
public class Main
{
// required method
public static void fizzBuzz(){
// looping through 1 to 100
for(int i = 1; i <= 100; i++){
//if number is evenly divisible by both 3 and 5
if(i%3 == 0 && i%5 == 0){
System.out.println("fiz buzz");
}
// if number is divisible by 3
else if (i%3 == 0){
System.out.println("fizz");
}
// if number is divisible by 5
else if (i%5 == 0){
System.out.println("buzz");
}
// if number is not divisible by both 3 and 5
else {
System.out.println(i);
}
}
}
// main method
public static void main(String[] args) {
//calling function
fizzBuzz();
}
}
Explanation:
Answer:
The class of language the machines recognise is Regular Language (See Explanation Below)
Explanation:
Given
Form δ : Q × Γ → Q × Γ × {R, S}
From the above transition form, it can be seen that the machine cannot read square symbols passed to it.
Regarding the square the machine is currently reading, there are multiple movement of S and it shouldn't be so because any number of the multiple movement can be simulated by exactly one movement of S.
As stated earlier that sequence of moves can be simulated by just one movement.
Let R = the movement
This means the machine can only use right move efficiently.
With this, we can say that the machine only read input string.
This is a characteristic of DFA (Deterministic Finite Automata).
With this, we can conclude that some DFAs will simulate the Turing machine and that they only read regular language.
<u>I will advise Sara to do research about the problem on the Internet.</u>
<u>Explanation</u>:
Internet is a network that helps in connecting one computer with other globally. Communication between the computers is possible until the computers are connected with to the Internet. Internet helps in getting information from any computer and interacts with the users of the computer.
Sara finds some issue with her computer. She was troubleshooting, but she could not find the exact problem. She was not sure with the problem that she found. It is better for Sara to do research about her problem on Internet and find the solution.
Answer:
360 kilobytes
Explanation:
(Time × Bitrate) / 8
30 × 96 = 2880 / 8
360 kilobytes
8: kilobits in a kilobyte
Time is always in seconds to obey the kb*ps* rule
Bitrate is always on bits so thats kilobits not kilobytes purpose of conversion