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
castortr0y [4]
3 years ago
10

Complete the code, drawing a solid circle (with the current color, whatever it is) so that its diameter is 200, and the coordina

tes of its center are ( 250, 150 )
public void paint( Graphics g )

{

// your code goes here

}
Computers and Technology
1 answer:
maks197457 [2]3 years ago
4 0

Answer:

public void paint( Graphics g )

{

 g.drawOval(150, 50, 200, 200); //Draw a circle

}

Explanation

drawOval( int X, int Y, int width, int height ) this instruction draws an oval in the specified 'x' and 'y' coordinates, been this coordinates the left upper corner of a rectangle who perfectly fits the oval. The last two numbers are the width and height.

X coordinate from the upper left corner. From the center location, move half of the width of the circle. (minus 100)

Y coordinate from the upper left corner. From the center location, move half of the height of the circle. (minus 100)

You might be interested in
What is the datapath of add instruction?
alina1380 [7]

i dont have enough information to awnser this

6 0
3 years ago
Subana is writing a program which will calculate the mean average of a set of numbers by adding the numbers and dividing the res
marysya [2.9K]

Answer:

Data Type: Double (decimal)

Variable Name: avg

Explanation:

An average of numbers will typically give you a decimal answer. Therefore, you should use the Double data type.

8 0
3 years ago
Read 2 more answers
Which statement about the Weather Bar in the Outlook calendar is true?
NARA [144]

Answer:

C

Explanation:

3 0
3 years ago
It is a minor cereal of importance only in West Africa where it is eaten in place of rice during during famines. Used for salads
steposvetlana [31]
This is a list of notable dishes found in African cuisine, a generalized term collectively referring to the cuisines of Africa. The continent of Africa is the second-largest landmass on Earth, and is home to hundreds of different cultural and ethnic groups. This diversity is also reflected in the many local culinary traditions in terms of choice of ingredients, style of preparation, and cooking techniques.
8 0
3 years ago
#include #include int main( ) { int value = 10; int pid; value += 5; pid = fork( ); if (pid > 0 ) { value += 20; } printf(val
ss7ja [257]

Explanation:

To understand how this program is working let us print the variable value at different stages of the program so that we can understand how it is working.

Intitally, value=10 when it was declared.

Then we added 5 and it become value=15

then we used fork() function which creates a parent(orignal) and child(duplicate)

When fork() succeeds it returns the child pid to parent and returns 0 to the child. As you can see (pid > 0) condition is always true therefore the parent pid value becomes 35 ( 15+20) and the child pid value becomes 0.

#include <stdio.h>

#include <unistd.h>

int main( ) {

   int value = 10;

     printf("%d\n",value);

   int pid;

   value += 5;

     printf("%d\n",value);

   pid = fork( );

     printf("%d\n",pid);

   if (pid > 0 )

   {

       value += 20;

   }

   printf("%d\n",value);

   return 0;

}

Output:

10 (initial value)

15 (modified value)

5343 (pid when fork is used)

35 (final modified value)

0 (child value)

15 (the parent value when fork was used)

8 0
4 years ago
Other questions:
  • If we have an economy that operates with a minimum of government interference, why are there so many laws on the books about emp
    7·2 answers
  • Suppose you want to click up- and down-arrows on a "control" to change the value of the product price in cell C7. What form cont
    10·1 answer
  • The Go To feature can be accessed from which of the following dialog boxes?
    10·1 answer
  • I NEED HELP PLEASE!! I just wanted to upgrade my i3 processor to an i7. I bought new hardware (motherboard, fan, etc) and now th
    5·1 answer
  • The large capacity, high-definition optical discs designed to store hi-def video and video games are _______. Group of answer ch
    13·1 answer
  • What is a good starting point for data mining?
    5·1 answer
  • 3 uses of Microsoft word in hospital
    10·1 answer
  • Suppose you are given a relation R with four attributes ABCD. For each of the following sets of FDs, assuming those are the only
    13·1 answer
  • I need help 50 points and brainiest if you answer
    10·2 answers
  • Assume variable age = 22, pet = "dog", and pet_name = "Gerald".
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!