subject

11. given the following class import java. util. arraylist; public class rectangletester { public static void main(string[ ] args) { arraylist< rectangle > shapes = new arraylist< rectangle > (); shapes. add(new rectangle(1, 1)); shapes. add(new rectangle(2, 2)); shapes. add(new rectangle(3, 3)); shapes. add(new rectangle(4, 4)); rectangle datarecord; for(int index = 0; index < shapes. size(); index++) { datarecord = shapes. get(index); datarecord. calcrectarea(); datarecord. calcrectperimeter(); system. out. println(area = + datarecord.; system. out. println(perimeter = + datarecord.; } } } assume that getarea() returns the area of a rectangle and getrectperimeter() returns the perimeter of a rectangle. what will print when index = 3? (3 points) question 11 options: 1) area = 9 perimeter = 12 2) area = 4 perimeter = 8 3) area = 16 perimeter = 16 4) area = 25 perimeter = 20 5) area = 1 perimeter = 4

ansver
Answers: 1

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 24.06.2019 04:00
Brian has been working for a few years now and has saved a substantial amount of money. he now wants to invest 50 percent of his savings in a bank account where it will be locked for three years and gain interest. which type of bank account should brian open?
Answers: 2
question
Advanced Placement (AP), 24.06.2019 16:00
Choose the description that best matches each word. write the correct letter in the blank. 1. ostinato a. large, extended composition for chorus and orchestra 2. atonality b. full orchestra 3. musicology c. festive, march-like opening to a play or “semi-opera” 4. concerto d. small group of solo instruments 5. minimalism e. music contrasting a full orchestra and solo instruments 6. art song f. music played under the action to influence the mood 7. strophic form g. a vocal song focusing on artistic expression 8. incidental h. each stanza of a poem is set to the same music 9. oratorio i. repeated musical pattern that provides unity to a piece 10. dissonance j. steady beat; simple harmonies; short, repetitive melody 11. concertino k. harsh, unstable sounding of pitches; harmonic tension 12. tutti l. all 12 tones of chromatic scale, no tonal center 13. entrada m. the historical and scientific study of music
Answers: 3
question
Advanced Placement (AP), 25.06.2019 05:30
The probability of rolling a sum of 7 when rolling two dice simultaneously is 0.167. you decide to test that probability by rolling th dice 12 times. what is the probability that exactly 2 of the rolls is a sum of 7?
Answers: 1
question
Advanced Placement (AP), 27.06.2019 04:10
Most small cars a. more power than larger cars b. the same power as larger cars c. less power than larger cars
Answers: 2
You know the right answer?
11. given the following class import java. util. arraylist; public class rectangletester { public s...
Questions
question
History, 17.02.2021 16:10
Questions on the website: 13722363