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:

Verified
Correct Answer:
Verified
Q7: We want the toString method to return
Q8: When are local variables initialized?<br>A)Local variables are
Q9: What is a parameter variable?<br>A)A variable that
Q10: We want to create a class that
Q11: Why is it a good idea for
Q13: You should provide documentation comments for _.<br>A)only
Q14: Assuming the following code is the body
Q15: Choose the method header that goes with
Q16: Choose the method header that goes with
Q17: Which line of code is part of