Solved

Which Lines Would Need to Be Added to CarComponent to Put

Question 12

Multiple Choice

Which lines would need to be added to CarComponent to put car3 at the middle of the left side of the window?


A) int y3=( getheight () -30) / 2;
Car car3 = new Car (0, y3) ;
car3.draw (g2) ;
B) int x3=( getheight () -30) / 2;
Car car3 = new Car (x3,0) ;
car3.draw (g2) ;
C) int y3 =( getWidth () -30) / 2 ;
Car car3 = new Car (0, y3) ;
car3.draw(g2) ;
D) int x3=( getWidth () -30) / 2 ;
Car car3 = new Car (x3,0) ;
car3.draw(g2) ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions