What is the output of the following code? Assume the Rectangle class exists and all the methods called below exist and work as expected.

ArrayList blah = new ArrayList ();
blah.add( new Rectangle(3,5) );
blah.add( new Rectangle(2,15) );
blah.add( new Rectangle(5,5) );
double x=0;

System.out.println(blah.size());
for(Rectangle s: blah) x+=s.area();
System.out.println(x);

Answers

Answer 1

Answer:

3

70.0

Explanation:

There will be 3 elements (Rectangle instances) in the list.

The sum of the areas x will contain 3*5 + 2*15 + 5*5 = 70 and will be printed as a double.


Related Questions

what is a similarity and difference of email and bulletin board?​

Answers

you can use both to write and the different is one is mobile ..

On what aspect of digital media do people often focus on at the expense of the important supporting roles?

creation

distribution

sales

development

Answers

Answer:

the answer would be creation

Answer:

creation

Explanation:

In the space below, list two or three of the basic classes of application software.

Answers

Answer:

business (database, accounting, analysis)

communications (e-mail, word processing)

entertainment (games, music, videos)

science and engineering (computer-assisted design or CAD, statistics)

development (software to make software)

emerging classes (robotics, translation)

Explanation:

The basic classes of application software that can be listed are as follows:

For business - database, accounting, analysis

For communications - email, word processing

For entertainment -  games, music, videos

Hence, these are the basic classes of application software.

What is an application software?

On a computer, there are many kinds of software that are needed by a person so that they can perform tasks easily and smoothly. The term "application software" is used to denote the kind of computer programme which is used to perform a specific kind of task or function by any individual.

It can be at a personal level, an educational level, or a business level. Whenever a person purchases any system, be it a computer or a laptop, the application software that is used by that person is also purchased.

This is dependent on their profession or the requirement, which is to be a full-flight software which is present in the world for easy and smooth working of day-to-day individuals.

Thus, some of the application software are business, communications, entertainment, development, and many more.

Learn more about application software from here:

https://brainly.com/question/14612162

#SPJ2

Pari needs to correct the information on a slide in her presentation and redo that recording. What is the best
approach to solve this problem?
O She should delete the recording of the entire presentation and start over.
She should delete the entire presentation and create a new PowerPoint file.
O She should delete the recording on that slide, revise the slide, and rerecord.
O She should delete all the slides in that section, create new ones, and rerecord.

Answers

she should delete the recording on that slide revise the slide and rerecord

Answer:

C

Explanation:

A robot as a barista or Not?

Answers

Answer:

robot barista

Explanation:

Yay so it doesn’t take 5 years for my coffee to be made

What happens when a user clicks Accept on a meeting request?

Other events at that time are canceled, and the meeting cannot be canceled by the organizer.
The agenda is updated with the user’s contact information, and other events at that time are canceled.
The meeting cannot be canceled by the organizer, and the agenda is updated with the user’s contact information.
The meeting organizer is notified, and a copy of the meeting is added to the user’s Outlook calendar.

Answers

Explanation:

Other events at that time are canceled, and the meeting cannot be canceled by the organizer.

The agenda is updated with the user’s contact information, and other events at that time are canceled.

The meeting cannot be canceled by the organizer, and the agenda is updated with the user’s contact information.

The meeting organizer is notified, and a copy of the meeting is added to the user’s Outlook calendar.

Answer:

the last one

Explanation:

just did it

How does password encryption primarily protect a presentation?
O It prevents other users from saving the presentation.
O It restricts other users from opening the presentation.
O It restricts other users from emailing the presentation.
O It prevents other users from copyrighting the presentation.

The answer is B.) It restricts other users from opening the presentation.

Answers

if you have the answer why...

Answer: B: It restricts other users from opening the presentation.

Explanation: I just got it right

Which of the following could be an example of a type of graphic organizer about jungle animals

A. A collection of photos with links to audio files of noises made by jungle animals

B. A paragraph describing different jungle animals

C. A picture of one jungle animal with no caption

D. A first person narrative about a safari

Answers

B) A paragraph describing different jungle animals

Answer:it’s a collection of photos with links blah blah blah

Explanation:just took it other guy is wrong

What is a working model used to test a design called?

Answers

A working model used to test a design is a prototype.

Answer:

mockup is the working model

Realizar una lista de las herramientas manuales que se utilizan en carpintería y otra en herrería, dibuja cada una de ellas y explicar su funcionamiento

Answers

Answer:

En carpintería se utilizan martillo, cinta métrica, escuadras, niveles de burbuja, navaja, herramientas de marcado, destornilladores y sierra circular.

Explicación:

Las herramientas manuales utilizadas en carpintería son martillos, cinta métrica, escuadras, niveles de burbuja, navaja, herramientas de marcado, destornilladores y sierras circulares, etc. Con martillos se pueden unir dos piezas de madera. La cinta métrica se utiliza para medir. Las herramientas manuales que se utilizan para la herrería son martillos de mano, mazos, cinceles, punzones, punzones y una selección de tenazas con brocas, etc. Estas herramientas se utilizan para cambiar la forma después de estar blandas debido al calentamiento.

A Hospital wants to store different types of data I need to find the best storage device for each type and why what is the best storage device to store the patient's data

Answers

Answer:

On-Premise Data storage

Explanation:

On-Premise Data storage prefers on-premise data to store and manage patient data. The main reason is straightforward and control over the in-house data. On-premise data centers do not need wireless connections, and no risk of downtimes. Healthcare can access the data from secure, making on-premise data storage choices.

On-premise data storage stored and managed escalates and demand more physical space. When hospitals use on-premise data storage, they have to arrange the physical space within the premises of the host of the server.  On-premise data is connected to the local network and could consider the secure data option in upkeeping the security of premise healthcare with anti-virus software, firewalls, and multifactor authentication.

Hospital moves toward holistic data storage option. The on-premise to cloud data storage for healthcare affirms that challenges are nullified.

What would be a suitable device to transfer 12 photos from one PC to another?

Answers

Answer:

A memory stick.

Explanation:

A memory stick can be defined as a storage media device with flash memory. They are mainly used in smart or portable electronic devices such as mobile phones, digital cameras, mp3 players, camcorders, etc.

Memory sticks are usually small in size and as such are easily accessible for the transfer of digital files such as images, videos, audios from a portable device or computer to another device such as a computer.

Hence, a memory stick would be a suitable device to transfer 12 photos from one PC to another.

3. One advantage of online classrooms over physical classrooms is that:
A-You can usually take the classes on your own time.
B-It is easier to access class materials.
C-You can communicate with your teacher more effectively.

D-The quality of the teaching is usually better.


Answers

Answer:

c

Explanation:

You can communicate your teachers

After a security event that involves a breach of physical security, what is the term used for the new measures, incident review, and repairs meant to stop a future incident from occurring

Answers

Answer: Recovery

Explanation:

The term that is used for the new measures, incident review, and repairs meant to stop a future incident from occurring after a security breach has occured is known as recovery.

It should be noted that recovery helps in the protection of data after a data breach has occured. The incident that led to the day breach is reviewed and necessary security measures are put in place in order to prevent such from happening again.

Which of the following statements best describes the relative amount of content held by digital libraries vs. the amount held by traditional libraries?

Digital libraries have more access to fiction, while traditional libraries have more access to nonfiction and reference materials.

Traditional libraries tend to have access to more information because they have been around longer.

Digital libraries and traditional libraries both tend to have the same access to information.

Digital libraries tend to have access to more information because they can share with other digital libraries.

Answers

Answer:

Digital libraries tend to have access to more information because they can share with other digital libraries.

Explanation:

A digital library can be defined as an electronic or cloud-based library where informations and books about various things, places, people, animals, subjects, etc, are kept for readers to access over the internet.

On the other hand, a traditional library is a physical library that people can walk into to read.

The statement which best describes the relative amount of content held by digital libraries vs. the amount held by traditional libraries is that, digital libraries tend to have access to more information because they can share with other digital libraries because they are usually interconnected through network.

A director was fined heavily for shooting in his own house in New York. What do you think was his mistake?
A.
He forgot to get the location release approved.
B.
He forgot to get the filming permit.
C.
He forgot to apply for permission rights.
D.
He forgot to take consent for using a brand name.
E.
He forgot to apply for synchronization rights.

Answers

Answer: B. He forgot to get the filming permit.

Answer:

b he for got fillming permits

Other Questions
After a security event that involves a breach of physical security, what is the term used for the new measures, incident review, and repairs meant to stop a future incident from occurring What is Earth's major source of air pollution? change"they didn't let him go" to passive voice Fill in the missing number in this newspaper report:Houses cost 100 000 one year agoThey now cost This is a 25% increaseHow much does it now cost ? Elijah invested $280 in an account paying an interest rate of 2.1% compoundedcontinuously. Assuming no deposits or withdrawals are made, how long would ittake, to the nearest tenth of a year, for the value of the account to reach $360? Can anyone help me with this? PLEASE HELP I NEED THIS FAST PLEASE please explain what i am supposed to do, this is a biology assignment on black, blue, and black n white chickens. 50 PTS BRAINLIEST Use Desmos to graph the following system of equations. Paste a link to your Desmos graph.y = 2/3x-2y = 2/3x+5How many solutions does the graph have? What is the area of this quadrilateral?8 ft6 ft3.ftA. 33 square feetB. 42 square feetC. 17 square feetD. 66 square feet how would a constitutional monarchy weaken the power of the King? Ill mark u brainliest correct answer only Ralph Chase plans to sell a piece of property for $150000. He wants the money to be paid off in two ways a - short-term note at 11% interest and a long-term note at 8% interest. Find the amount of each note if the total annual interest paid is $15200. PLEASE HELP ASAP!!!!Sort the statements based on whether they are correct or incorrect.All waves have the samewavelength.Radio telescopes give usinformation about thebirthplace of a star.If the wavelength of a waveincreases, its frequencyalso increases.Visible light is a kind ofelectromagnetic wave.All objects emitelectromagnetic waves. help meh......please... what regions of dna are used In order, please describe the items you will see when first reading a line of music and describe the symbols used to organize it. Why does the author include this plot detail? O to show the narrator's sense of adventure O to reveal how the boys joke around to show how Jay is starting to change O to reveal the narrator's confusion Read the excerpt from act 1 of The Monsters Are Due on Maple Street. DON(picking up the cue)Sure. That's the kind of thing like sun spots. They raise cane with radio reception all over the world. And this thing being so close why there's no telling the sort of stuff it can do.(he wets his lips, smiles nervously)Go ahead, Charlie. You and Steve go into town and see if that isn't what's causing it all.What do the stage directions tell the reader about Dons feelings?He feels threatened by Steve and Charlie.He may be more worried about the flash than he is admitting.He is confident about the cause of the power outage.He knows that Tommy is right but is keeping his feelings a secret. a car takes 4 hours to cover a distance if it takes at a speed of 40mph. what should be it's speed to cover the same distance in 1.5 hours