Computers and Technology, 03.03.2020 06:00 lashayreed02
Write a program, which displays straight lines inside a rectangle from one side to a perpendicular side. The lines must be drawn in such a way that both the starting points of the lines on one side and the ending points on the other side are equidistant along the sides. The size of the rectangle is 980 pixels width by 630 pixels height.
For full points: repeat the entire process by drawing a small copy of the border inside the blank space of the design.
Code I have so far:
import java. awt.*;
import java. applet.*;
public class graphics extends Applet
{
public void paint(Graphics g)
{
int width = 980;
int height = 630;
//int x1 = 10;
//int y1 = 640;
//int x2 = 990;
//int y2 = 640;
int x1 = 990;
int y1 = 10;
int x2 = 490;
int y2 = 640;
g. drawRect(10,10,width, height);
// the x1, x2, y1,y2 coordinates
// add a for loop that increments
for (int i = 0 ; i < height; i++)
{
g. drawLine(x1,y1,x2,y2);
x1 += width/ 50;
y2 -= height/ 50;
// Draw bottom-right corner
//loop will run 51 times
//x increment or decrement by some number/50
//y increment or decrement by some number/50
// Draw bottom-left corner
//loop will run 51 times
//x increment or decrement by some number/50
//y increment or decrement by some number/50
// Draw top-right corner
// Draw top-left corner
}
}
}
Answers: 3
Computers and Technology, 23.06.2019 10:00
Now, open this passage to read about fafsa requirements. describe the information you will need to provide in order to complete a fafsa. list at least three of the required documents you must include.
Answers: 3
Computers and Technology, 24.06.2019 03:40
4. does the kernel phenotype distribution support the idea that the cob is the result of a dihybrid cross? what information supports your answer? if a dihybrid cross (i.e. f1 to f2 of standard mendelian crosses) is not indicated what conditions might contribute to this finding.
Answers: 2
Computers and Technology, 24.06.2019 08:30
@josethesolis i need can anyone text me and follow me
Answers: 1
Computers and Technology, 24.06.2019 14:30
In a home that has 120 v service, there is an electric appliance that has a resistance of 12 ohms. how much power will this appliance consume? a. 10 w b. 120 w c 1200 w d. 1440 w
Answers: 1
Write a program, which displays straight lines inside a rectangle from one side to a perpendicular s...
Mathematics, 18.08.2019 17:30
English, 18.08.2019 17:30
Mathematics, 18.08.2019 17:30
Mathematics, 18.08.2019 17:30
Mathematics, 18.08.2019 17:30
Biology, 18.08.2019 17:30
Business, 18.08.2019 17:30
Physics, 18.08.2019 17:30
Mathematics, 18.08.2019 17:30
Social Studies, 18.08.2019 17:30
Mathematics, 18.08.2019 17:30
Mathematics, 18.08.2019 17:30
History, 18.08.2019 17:30