1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
algol [13]
3 years ago
14

Write an interface, PointingDevice, containing: an abstract method, getXCoord that returns an int an abstract method, getYCoord

that returns an int an abstract method, attentionRequired that returns a boolean an abstract method, setResolution that accepts a double and returns a double
Computers and Technology
1 answer:
vaieri [72.5K]3 years ago
4 0

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 .

You might be interested in
To add a picture file to a PowerPoint slide, a usor should first go to the
Murrr4er [49]

How to embed images in Powerpoint?

Click on the Pictures button to open the file browser. Now, browse to where your images are stored and click on them in the file browser. Choose Insert > Pictures on PowerPoint's ribbon, then browse to and choose the images you want to insert. Click on Insert to add them to your current slide

6 0
3 years ago
Tanya purchases a new pair of shoes for $45. The cashier asks her to pay $48. Which of these explains the difference in price?
harina [27]

Answer:

An indirect tax in the form of sales tax

Explanation:

This is certainly the sales tax, and that the shoe retailer is charging with the actual price And each retailer must charge this as they have to submit the sales tax on the number of goods they sell in a year. And these are indirect taxes. Hence, the $45s here is the price of the shoe, and the extra $3s is the sales tax on that shoe. The retailer collects this on behalf of the government, and remember this is an indirect tax.

8 0
4 years ago
Which activity is a case of identity theft?
vagabundo [1.1K]

Answer:

C, stealing someone else's personal data.

4 0
3 years ago
Read 2 more answers
Write a program that first gets a list of integers from input. The input begins with an integer indicating the number of integer
dalvyx [7]

Answer:

The program is as follows:

def output_ints_less_than_or_equal_to_threshold(user_values, upper_threshold):

   for i in user_values:

       if i <= upper_threshold:

           print(i,end=" ")

           

def get_user_values():

   user_values = []

   n = int(input())

   for i in range(n):

       num = int(input())

       user_values.append(num)

   

   upper_threshold = int(input())

   output_ints_less_than_or_equal_to_threshold(user_values, upper_threshold)

get_user_values()

Explanation:

This defines the output_ints_less_than_or_equal_to_threshold method

def output_ints_less_than_or_equal_to_threshold(user_values, upper_threshold):

This iterates through user_values

   for i in user_values:

For every item in user_values

       if i <= upper_threshold:

This prints all items less than or equal to the upper threshold

           print(i,end=" ")

           

This defines get_user_values method

def get_user_values():

This creates an empty list

   user_values = []

This gets the number of inputs

   n = int(input())

This iterates through n

   for i in range(n):

This gets input for every item of the list

       num = int(input())

This appends the input to the list

       user_values.append(num)

This gets input for upper threshold    

   upper_threshold = int(input())

This calls output_ints_less_than_or_equal_to_threshold method

   output_ints_less_than_or_equal_to_threshold(user_values, upper_threshold)

The main begins here; This calls get_user_values method

get_user_values()

4 0
3 years ago
Nyquist states that the bit rate of a noise-free digital transmission can be no more than one-half the bandwidth of the signal.
Travka [436]

Answer: False

Explanation:

Nyquist states that the bit rate of a noise-free digital transmission is shown by

                            C = 2 B log2 m bits/sec

where,

C is  the channel capacity

B is the bandwidth of the channel

and m is the number of discrete levels in the signal

8 0
3 years ago
Other questions:
  • PLZ HELPPPPPPPPPPPPPPPPPPPP
    9·1 answer
  • Why is it important to recognize web adress endings ?
    13·1 answer
  • What is the advantage of postfix notation?
    6·1 answer
  • As John develops the agenda, he wants to put the name of the appropriate person next to the agenda item. Whose name would he put
    12·1 answer
  • Colin Mackay Inc., a software company with its head office in Amsterdam, has employees across three continents. Certain project
    11·1 answer
  • PLZZZZ HELP!!!
    12·2 answers
  • What should you do if a headset plugged into your computer is not working properly.
    12·1 answer
  • Write the technical terms for the following statements: The repeated working capacity of computer.
    15·1 answer
  • Write a simple program that takes in a numerator and denominator and then computes the GCD for that fraction. You can assume tha
    14·1 answer
  • Characteristics of partial copy sandboxes versus full sandboxes? choose 2 answers
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!