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
ozzi
3 years ago
5

Write a program that will prompt a user to input coordinates for all the corners for drawing a quadrilateral. The program should

draw the quadrilateral on AutoCAD screen and print out all the coordinates with x and y coordinates only. Use GETPOINT, CAR, and CADR for writing the following program. Make sure this program will work with any coordinates that a user may input. None of the numerical coordinates should be in the programming code; in another words, do not HARD CODE the coordinates.
Computers and Technology
1 answer:
aev [14]3 years ago
5 0

Answer:

See explaination

Explanation:

public class Drawquadrilatral

{

public void paintComponent(Graphics g)

{

super.paintComponent(g);

Polygon p = new Polygon();

for (int k = 0; k < 7; k++)

p.addPoint((int) (200 + 60 * Math.cos(k * 2 * Math.PI / 9)),

(int) (200 + 60 * Math.sin(k * 8 * Math.PI / 5)));

g.drawPolygon(p);

Polygon s = new Polygon();

for (int k = 0; k < 360; k++)

{

double m = k / 360.0;

s.addPoint((int) (150 + 50 * m * Math.cos(8 * m * Math.PI)),

(int) (150 + 50 * m * Math.sin(8 * m * Math.PI)));

}

g.drawPolygon(s);

}

public static void main(String[] args)

{

JFrame frame = new JFrame();

frame.setTitle("DrawPoly");

frame.setSize(350, 250);

frame.addWindowListener(new WindowAdapter()

{

public void windowClosing(WindowEvent e)

{

System.exit(0);

}

});

Container contentPane = frame.getContentPane();

contentPane.add(new DrawPolyPanel());

frame.show();

}

}

You might be interested in
Based on the unit content and your own ideas, how would you define a video game in your own words? What separates a regular vide
lara31 [8.8K]

Answer:

A video game would be a series of steps to produce or outcome / end in the form of controller a character or the how the game can be played and being able to play it at some level, but a good game would have multiple questions and a hard difficulty maybe even a customizable section for your character or object. In other words a Video game would be a series of steps to produce a outcome from controlling a character and a Good video game would be the same but added a level of difficulty and harder mechanics into the game.

Explanation:

Hope this helped :)

3 0
3 years ago
The use of computers in education is referred to as computer assisted instruction (CAI). Write a program that will help an eleme
dybincka [34]
I don't think some will write the whole program here, but which part are you having trouble with?
6 0
4 years ago
Angela works for an identity protection company that maintains large amounts of sensitive customer information such as usernames
aksik [14]

Answer: (B) An insider

Explanation:

 According to the question, an Angela is an insider as she maintain all the sensitive and confidential information of the customer like the password, username,SSN (Social security number) and the personal information.

Angela and her co-worker has the right for using the customer sensitive information and data. An insider is the person who keeps all the sensitive information of the organization or company.

5 0
3 years ago
How many bytes are in 1 kilobyte of storage
topjm [15]

Answer:

1000

Explanation I SEARCHED IT Up

5 0
4 years ago
An extranet is a restricted network that relies on Internet technologies to provide an Internet-like environment within the comp
DerKrebs [107]

Answer:

A) False

Explanation:

Extranet

An extranet acts as a shared network, disseminating information present on the intranet. That is, if a private intranet shares some of its content with other users (be they sellers, customers, etc.), this shared network is what we call the extranet.

Intranet

Today, companies are looking for tools and methods to align internal communication, reduce costs, and centralize information and files. The intranet is one of these tools, which works restricted to a specific audience, such as a company. This way, collaborators can access it with their specific username and password.

The intranet is, then, a closed and internal network, and still allows the use of more communication protocols besides HTTP. Intranet access is typically done on a local server and a local network, which we call LAN, which means Local Area Network installed within the company.

This internal network connects users, allowing information exchange, file and document management, centralizing communication between users. With this tool, you can quickly and securely and efficiently connect companies and departments.

4 0
3 years ago
Other questions:
  • Your friends know that you understand a lot about computers, both the technical details of how they operate as well as informati
    12·1 answer
  • A ____ is a collection of computers and users that are identified by a common security database. workgroup controller segment do
    7·1 answer
  • What is ucspi-tcp pakage in qmail??
    5·1 answer
  • pWhat macOS system application tracks each block on a volume to determine which blocks are in use and which ones are available t
    14·1 answer
  • San Diego broker Cal Abrams has avoided the technological trend of the past 20 years. Finally, he's jumped online and realized w
    14·1 answer
  • In your own words explain how to add footer and head in a word doc.
    10·1 answer
  • Please help Ill give you brainliest if I get 2 answers. Which is used to input information on a laptop?
    6·1 answer
  • This is 6th grade career class.
    10·1 answer
  • What is the best programing language to use for building video games?
    10·1 answer
  • What do you understand by storage devices ? Name any two storage devices.​
    11·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!