1. Write a java program which accepts input from user and draw two lines one in...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Write a java program which accepts input from user and draw two lines one in blue color and the other in red color. 2. Write a java program which accepts input from user and draw a square using appropriate vertex and give Green color to the edges. 3. Write a java program which accepts input from user and draw a rectangle using appropriate vertex and give Blue color to the edges. 4. Write a java program which accepts input from user and draw a star using appropriate vertex and give green color to one side and blue color to other side. 1. Write a java program which accepts input from user and draw two lines one in blue color and the other in red color. 2. Write a java program which accepts input from user and draw a square using appropriate vertex and give Green color to the edges. 3. Write a java program which accepts input from user and draw a rectangle using appropriate vertex and give Blue color to the edges. 4. Write a java program which accepts input from user and draw a star using appropriate vertex and give green color to one side and blue color to other side. 1. Write a java program which accepts input from user and draw two lines one in blue color and the other in red color. 2. Write a java program which accepts input from user and draw a square using appropriate vertex and give Green color to the edges. 3. Write a java program which accepts input from user and draw a rectangle using appropriate vertex and give Blue color to the edges. 4. Write a java program which accepts input from user and draw a star using appropriate vertex and give green color to one side and blue color to other side. 1. Write a java program which accepts input from user and draw two lines one in blue color and the other in red color. 2. Write a java program which accepts input from user and draw a square using appropriate vertex and give Green color to the edges. 3. Write a java program which accepts input from user and draw a rectangle using appropriate vertex and give Blue color to the edges. 4. Write a java program which accepts input from user and draw a star using appropriate vertex and give green color to one side and blue color to other side.
Expert Answer:
Answer rating: 100% (QA)
Here is a Java program that accepts input from the user and draws two linesone in blue color and the other in red color Java import javaawt import javaxswing public class LineDrawing extends JPanel pu... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
do the following,..... Write program that reads a person's first and last names, separated by a space. Then the program outputs last name, comma, first name. Create program that takes in user input...
-
answer the question clearly You are building a flight-control system for which a convincing safety case must be made. Would you assign the tasks of safety requirements engineering, test case...
-
To meet the demand for parking, your town has allocated the area shown here. As the town engineer, you have been asked by the town council to find out if the lot can be built for $11,000. The cost to...
-
What property of a diode enables it to convert ac to pulsed dc?
-
Find the first four terms of the indicated expansions by use of the binomial series. (1 2x) 9
-
Acne Medication and Gastrointestinal Injury Since 1999, Kamie Kendall had experienced ongoing abdominal pain, and she was eventually diagnosed with ulcerative colitis and irritable bowel syndrome...
-
Castle Leasing Company signs a lease agreement on January 1, 2014, to lease electronic equipment to Jan Way Company. The term of the noncancelable lease is 2 years, and payments are required at the...
-
rephrase.PCG REPORTED THAT THE FACILITY HAS REQUESTED THE FAMILY NOT VISIT FOR TWO WEEKS TO ALLOW PT TO ADJUT TO THE NEW FACILITY. PCG HARED HER CONCERNS ABUT NOT BEING ABLE TO VISIT PT AND PT...
-
Illustrate how fine-line inventory classification can be used with product and market segments. What are the benefits and considerations when classifying inventory by product, market, and...
-
You are interested in evaluating the performance of the Rastalos fund. You believe that the right factor model is a four-factor model: the Fama-French 3-factor model to which a momentum factor is...
-
QBI deduction(Obj. 2) Ken and Penny,husband and wife, le a joint return in 2022. They own a truck repair center. Their income from the business was $480,000 after subtracting all deductions...
-
Provide a detailed explanation about how the evaluation report should look like, what should be included in it, how should be the approval process, etc
-
A service-based company receives an upfront payment from a customer for a two-year service contract. What principle should guide the revenue recognition for this contract?
-
Which impairment model(s) is(are) used for cost/amortized cost investments? Select answer from the options below expected loss model under both IFRS and ASPE incurred loss model under IFRS; expected...
-
When cat saw the advertisement for coder 1 at the medical clinic, she quickly applied. While she didn't have her coding credentials she did have her certificate of completion from a community...
-
A steam turbine with rated capacity of 56.4 MW operates with steam at inlet conditions of 8.6 MPa and 500 o C, and discharges into a condenser at a pressure of 10kPa. Assuming a turbine efficiency of...
-
Hotel Majestic is interested in estimating fixed and variable costs so that the company can make more accurate projections of costs and profit. The hotel is in a resort area that is particularly busy...
-
In Exercise P9.16, add a method to the Filter interface that counts how many objects are accepted by the filter: static int count(Object[] values, Filter condition) Data from Exercise P9.16, Declare...
-
Write a program that carries out the following tasks: Open a file with the name hello.txt. Store the message Hello, World! in the file. Close the file. Open the same file again. Read the message into...
-
Write declarations for storing the following quantities. Choose between integers and floating-point numbers. Declare constants when appropriate. a. The number of days per week b. The number of days...
-
Consider the electrical circuit shown below where \(v_{i}(t)=\beta\), for \(t \geq 0\). Find the dynamic system response \(v_{o}(t)\). VC C ww R V;(t) R ww R3 A First-Order Electrical System Vo (t) +
-
Find the dynamic system response for the spring mass damping system shown in Figure 3.2, where \(f(t)=\beta, x(0)=0\) (i.e. there is no initial energy stored). b f(t) k Figure 3.2 A first-order...
-
Consider a first-order system with a forcing function \(f(t)\) such that input-output differential equation is given by \[\begin{equation*}\dot{y}+3 y=f(t) \text {, } \tag{3.7}\end{equation*}\] where...
Study smarter with the SolutionInn App