Solved

Which Lines Would Need to Be Added to CarComponent to Put

Question 89

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

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents