Link to home
Start Free TrialLog in
Avatar of mijangos
mijangos

asked on

help please

as you know am trying to do a face using defferent methods please help me heres my code it wont compile it gives me this error message :

C:\Documents and Settings\Guicho\My Documents\My Files\HW05\SelfPortrait.java:39: drawArc(int,int,int,int,int,int) in java.awt.Graphics cannot be applied to (int,int,int,int)
      guicho.drawArc (X, Y, HWIDTH, HHEIGHT);


and this is my code :

import java.applet.*;
import java.awt.*;

public class SelfPortrait extends Applet
{
      
      private int HWIDTH=200;
      private int HHEIGHT=200;
      private int X=50;
      private int Y=50;
      
      private Color skinColor=Color.pink;
      private Color eyeColor=Color.blue;


      public void paint (Graphics guicho)
      {
            
            //This are the "methods"
            drawHead(guicho);
            drawNose(guicho);
                                drawMouth(guicho);
                                drawEars(guicho);
                                drawEyes(guicho);

            
            
      }
      
      public void drawHead (Graphics guicho)
      
      {
      guicho.fillOval(X,Y,HWIDTH,HHEIGHT);
      }
      
      public void drawNose (Graphics guicho)
      
      {
      int ancho = HWIDTH/5;
      int alto = HHEIGHT/10;
      int equis = X+HWIDTH/2-3*ancho;
      int igriega = Y+HHEIGHT/4;
      guicho.drawArc (X, Y, HWIDTH, HHEIGHT);
         }
}

please help me my assignment is due in less than an hour tell me what am doing wrong

mijangos
      
ASKER CERTIFIED SOLUTION
Avatar of zzynx
zzynx
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mijangos
mijangos

ASKER

thanks guys but is too late i cant submit my assignment anymore deadline is over , thanks for all the help , the only bad thing is that my grade went back to c i was hoping to keep it in b or finally go for an A .

thanks for trying i really appriciete

mijangos
What do you try to say? What does it mean for this Q?
I posted 27 minutes after you posted your Q and I'm too late???

>>thanks for trying i really appriciete
So?
Easy....easy......zzynx. However, your explanation does not really make sense mijangos. Explain to us!
>> Easy....easy......zzynx.
I was just asking a couple of questions I expect an answer to. That's all
zzynx it seem you are more upset than myself when i said too late i meant that it was too late for me to submit my assingment not like you guys were the ones , once again thank you for the help .

p.s by the way i think i was very clear at my last post but sometimes when you post some guys get wrong ideas  , and do i have to accept one of your replys even that i dont need help anymore with this question ? or can i leave it blank .
>> do i have to accept one of your replys even that i dont need help anymore
No, you don't **have to**.

If you want to delete this question, post a zero-point question in https://www.experts-exchange.com/Community_Support/

Subject: Moderator Please Delete
Body: Please delete this question:
https://www.experts-exchange.com/questions/21166180/help-please.html

>>zzynx it seem you are more upset than myself
My answer to that is:
>>when you post some guys get wrong ideas
;°)
:) next time better mijangos.

zzynx >> yes.....**have to**. Okay then, you are a great Java player :).
i think is fair to give split the points as you gave almost the same answer which solved my problem .
Thanks mijangos.
I see this acceptance as an appreciation of our tries to help you.
Much appreciated.
Thanks too mijangos,

My appreciation to you.