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
Yuri [45]
3 years ago
6

In processing, how do you make a line's end points move up and down when a certain button is pressed, like it makes a smile then

goes back to a horizontal line, repeatedly?
Computers and Technology
1 answer:
Viefleur [7K]3 years ago
6 0
This is called event driven programming. When a button is pressed, mouse moved or clicked or something happens, the event is caught by the main loop of the desktop GUI (Graphical User Interface) and passed to the main loop of your GUI program. Your program, if it's interested in this event (by registering this event with the desktop GUI), executes an event handler function which is called with the parameters of the event (mouse location, which key was pressed). In your case, the mouse-down event might trigger a function that draws a curved (smiley) line, and the mouse-up event might draw a straight line.
You might be interested in
Because of their reasonable cost and print quality ___ printers are used in homes and schools
serious [3.7K]

'INK-JET'
because of their reasonable cost and print quality ___ printers are used in homes and schools

7 0
4 years ago
. An exception is an error that occurs during the execution of a program at run-time that disrupts the normal fow of the Java pr
In-s [12.5K]

Answer: True

Explanation:Exception error ,which is also known as the fatal error that arises when there is the program execution going-on and the error occurs suddenly to stop the processing, resulting in the abortion of the execution.This erruptional error is responsible for disturbing the execution flow as well as there are chances of the data getting lost or deleted automatically.

5 0
4 years ago
Most P2P apps or services provide safety and privacy features such as verification of payment amount before payment is sent, a u
Vesna [10]

Most peer-to-peer (P2P) apps or services provide safety and privacy features such as <u>onetime password (OTP)</u>.

<h3>What is P2P service?</h3>

P2P service is an abbreviation for peer-to-peer (P2P) service and it can be defined as a decentralized platform through which two (2) individuals or business firms interact with each other directly, without any third-party or an intermediary  being involved.

Generally, most peer-to-peer (P2P) applications or services provide safety and privacy features to customers such as:

  • Verification of payment amount before payment is sent.
  • A user PIN
  • The use of a onetime password (OTP).

Read more on P2P here: brainly.com/question/26190446

8 0
2 years ago
The system log daemon, rsyslogd, creates a socket for other system processes to write to. what is the path to this socket?
Vlada [557]

If the system log daemon, rsyslogd, creates a socket, the path to this socket is known to be /dev/log.

<h3>What is the system log daemon?</h3>

The syslog daemon is known to be a kind of a server process that is known to often gives or provides a form of message logging tools that is made for application and system processes.

Note that the syslog daemon is said to be one that begins by the Internet Daemon and it is also one that tend to receives messages on well-known port such as  514.

Note that The syslog daemon must be on before any application program and as such, If the system log daemon, rsyslogd, creates a socket, the path to this socket is known to be /dev/log.

See full question below

The System Log Daemon, rsyslogd, creates a socket for other system processes to write to. What is the path to this socket?

Select one:

a. /etc/rsyslog.socket

b. /var/log.sock

c. /tmp/log

d. /dev/log

Learn more about system log from

brainly.com/question/25594630

#SPJ1

6 0
2 years ago
What is the difference between the web and the internet?
Naddika [18.5K]
The Web is just one of the ways that information can be disseminated over the Internet
4 0
3 years ago
Other questions:
  • All languages from the second generation on must be translated into machine language for the computer to be able process the inp
    8·1 answer
  • Xbrl taxonomy: is the document format used to produce web pages. is the final product (report. is a classification scheme. is a
    12·1 answer
  • A bicycle sharing company is developing a multi-tier architecture to track the location of its bicycles during peak operating ho
    11·1 answer
  • Change the shape fill color to Dark Red. It is the first option in the Standard Colors section of the color palette.
    13·1 answer
  • Which of the following is a windows feature that allows you to temporanily store text
    8·2 answers
  • Imagine that you have access to a class named MyCircle that has void setRadius(double r) and double getRadius() methods. Write a
    14·1 answer
  • What do customers use to access the internet, usually for a monthly fee?
    6·1 answer
  • What stage in the process of media production involves discussing the budget and timelines as well as identifying stakeholders?
    15·1 answer
  • Which alignment aligns text to the left and right side margins?
    15·1 answer
  • Yo need help can someone plz help
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!