Write a method that takes two circles, and returns the sum of the areas of the circles.

This method must be named areaSum() and it must have two Circle parameters. This method must return a double.

For example suppose two Circle objects were initialized as shown:

Circle circ1 = new Circle(6.0);
Circle circ2 = new Circle(8.0);
The method call areaSum(circ1, circ2) should then return the value 314.1592653589793.

You can call your method in the program's main method so you can test whether it works, but you must remove or comment out the main method before checking your code for a score.

Answers

Answer 1

Answer:

public static double areaSum(Circle c1, Circle c2){

 double c1Radius = c1.getRadius();

 double c2Radius = c2.getRadius();

 return Math.PI * (Math.pow(c1Radius, 2) + Math.pow(c2Radius, 2));

public static void main(String[] args){

 Circle c1 = new Circle(6.0);

 Circle c2 = new Circle(8.0);

  areaSum(c1,c2);

 }

Explanation:

Answer 2

The function calculates the sum of the area of two circles with their radius given. The program written in python 3 goes thus :

import math

#import the math module

def areaSum(c1, c2):

#initialize the areaSum function which takes in two parameters

c1 = math.pi * (c1**2)

# calculate the area of the first circle

c2 = math.pi * (c2**2)

#Calculate the area of the second circle

return c1+c2

#return the sum of the areas

print(areaSum(6.0, 8.0))

A sample run of the program is attached

Learn more : https://brainly.com/question/19973164

Write A Method That Takes Two Circles, And Returns The Sum Of The Areas Of The Circles.This Method Must

Related Questions

I really need help please help me

Answers

Mathematics because it's is the science of number

Jdhdhrjrjrjfjjf

navy use sonar method to locate the position of submarine under water .the waves used in sonar are

Answers

Ultrasonic Waves are used by Sonar systems

I’ll give brainliest
you don’t need to do the spreadsheet i just need something to write down i dont care if its 400 words or not.

Answers

Answer: ] Data moving to the cloud puts it at risk for malware. Increasing user mobility and results in data taken outside of an organization’s security perimeter, exposing their business to risk. Cloud services pose security challenges putting pressure on security teams, thus fueling the growth of . The basic pillars or features of  are Visibility, Access Control, Threat Protection, Data Security, and Compliance. Two camps are emerging: pure plays and large security vendors adding to a broad cloud security solution. Several startups are emerging and there has been intense M&A activity in recent years. Cloud apps are a new opportunity for hackers to gain access to an organization's data and its network.  has developed quickly from just being used for shadow IT. It is an important tool to monitor cloud usage and also implement security.  is a small but fast growing market in a state of flux.

Explanation:

What necessarily happens when a photographer chooses to give either the aperture or the shutter speed priority?


The other of the two settings stays as previously selected.

The other of the two settings is overridden.

The other of the two settings is automatically selected.

The other of the two settings is ignored.

Answers

Answer:

The other of the two settings is automatically selected.

Explanation:

Answer: The other of the two settings is automatically selected.

Explanation:

TRUST

What are three options that can be added to the Excel Ribbon?

tabs, hyperlinks, and groups

users, file names, and tabs

tabs, groups, and symbols for groups

groups, symbols for groups, and users

Answers

Answer:

C. tabs, groups, and symbols for groups

Explanation:

Generally, workbooks are known as Microsoft Excel files. Excel workbook can be defined as a collection of one or more charts and worksheets (spreadsheets) used for data entry and storage in an excel file. In order to create a project on Excel you will have to use a workbook.

A spreadsheet can be defined as a file or document which comprises of cells in a tabulated format (rows and columns) typically used for formatting, arranging, analyzing, storing, calculating and sorting data on computer software applications such as Microsoft Excel.

An Excel Ribbon refers to the row of tabs, icons and strip of buttons located at the top of the worksheet or work area.

The three options that can be added to the Excel Ribbon are tabs, groups, and symbols for groups.

anyone pls answer this!!!!!!thanks ^-^​

Answers

Answer:

True

False

False

False

Explanation:

HTML isnt a scripting a scripting language it's a markup language

There are 6 levels of HTML

An empty tag only has a starting tag

What is Digital Etiquette? Explain in your own words

Answers

Answer:

rules about the best way to communicate

Explanation

rules about being proper and polite

2 features of mark i​

Answers

Answer:

Mark I was enourmous in size, measuring 8 feet high, 51 feet long and three feet deep. It weighed 5 tons, used 530 miles of wire and 730,000 separate parts. The operation of these parts was powered and synchronized by a long horizontal rotating shaft. A four horsepower engine drives the mechanical parts.

how do we make a acount

Answers

Press sign up and put your information in there. Then it should automatically make your profile.

Answer:

put your details in and chose your username and password and your account is made

Explanation:

Which output device would a teacher use to show a movie to the class? Check all of the boxes that apply.

Answers

Answer:

speaker and projector i think

Explanation:

Answer:

C & D

Explanation:

WILL MARK BRAIN LEST Feedback provides cues that can keep the player motivated.
true or falce

Answers

Answer:

True

Explanation:

The informational aspect of reward

Recieiving a reward that provides feedback concerning an athlete's sense of competence is an example of

Answer:TRUE

Explanation:

does anyone know how you would "hack" a school computer to go on other sites? answer fast its for a project

Answers

Answer:

go to settings, push screen time, and you get the hang of it after.

Explanation:

list three rational number between-1 and 1​

Answers

Answer:3 numbers are -0.9  0.25 0.26

Explanation:

Answer:

oh god heartburn oh wait wrong question

Explanation:

What are the types of text?

Answers

Answer: there are two main text types, factual and literary. Within these are many more narrowly defined text types. Factual text types include such types as factual description, recount, or persuasive. Literary text types include such types as poetry, narrative or personal response.

Answer:

Description sequeninstruction process cause-and-effect compare contrast problem and solution

Explanation:

there just soooo many types of texts bit theses are sum

What is the difference, if any, between a project manager and a producer on a digital media production team?


A. A project manager oversees the entire project, while the producer just oversees the creative element.

B. A project manager is in charge of the people involved in the project, while the producer secures the funds.

C. A project manager secures the funds for the project, while the producer is in charge of the people involved.

D. A project manager just oversees the creative element, while a producer oversees the entire project.

Answers

Answer:

A. A project manager oversees the entire project, while the producer just oversees the creative element.

Explanation:

i guess

WILL MARK BRIAN PLZ HELP PLZ I BEG YOU While levels often change in order to give a game some more variability, they might also change to tell more of the what?

Group of answer choices


game creation process


instructions


game story


animation

Answers

Answer:

Game story

Explanation:

Answer:

Game Story

Explanation:

Which option allows users to access the handout master to modify it?
Click Home and select the Handout Orientation tab in the ribbon.
Click View and select the Handout Master tab in the ribbon.
Click View and select the Slide Master tab in the ribbon.
Click Home and select the Slide Size tab in the ribbon.

Answers

Click View and select the Handout Master tab in the ribbon. The correct option is 2.

What is handout master?

The handout master in PowerPoint is used to change the appearance of printed handouts in a presentation.

Click View and select the Handout Master tab in the ribbon. This opens the Handout Master view, where users can modify the layout, formatting, and content of the handouts that will be printed or distributed to the audience.

The Handout Master view differs from the Slide Master view in that it is used to change the overall design and layout of the presentation slides.

Thus, the correct option is 2.

For more details regarding PowerPoint, visit:

https://brainly.com/question/14498361

#SPJ1

Your question seems incomplete, the probable complete question is:

Which option allows users to access the handout master to modify it?

Click Home and select the Handout Orientation tab in the ribbon.Click View and select the Handout Master tab in the ribbon.Click View and select the Slide Master tab in the ribbon.Click Home and select the Slide Size tab in the ribbon.

Answer:

B: Click View and select the Handout Master tab in the ribbon.

Explanation:

took the test

Question #4
Multiple Select
Which of the following statements are true when addressing feedback? Select 3 options.
Most negative feedback should be ignored.
The feedback loop is not closed until action is taken to address the feedback.
Negative feedback that is addressed correctly can help build customer loyalty.
Analytics and other new technologies help developers evaluate feedback.
All feedback should be prioritized equally.

Answers

Answer:

Negative feedback that is addressed correctly can help build customer loyalty..

Analytics and other new technologies help developers evaluate feedback.

The feedback loop is not closed until action is taken to address the feedback.

Explanation:

Feedbacks are simply complaints, abuses, praise which service providers do get when customers allowed to respond or give commebts on the services rendered. It is an essential channel for consumers to channel Thor grievances and well as praise while also allowing service providers take adequate note of shortcomings and areas which could be improved upon in their products or service offering. Proper evaluation of feedbacks with regards to sensitivity and humor goes a long in molding good customer relationship and loyalty.

Prioritization of negative feedbacks by angry customers should be handled carefully and noted in other to proffer adequate fix and foster good future relationship.

4.8 Code Practice: Question 2 I need help on this one python

Answers

Answer:

for y in range(88, 43, -4):

  print(y, end=" "

Explanation:

yw

1) What are the six (6) core elements of developing a whole person? Explain
concisely its relationships.​

Answers

Answer:

Six component of whole person development are -

emotional, physical, spiritual, social, psychological, and professional

Explanation:

Six component of whole person development are -

emotional, physical, spiritual, social, psychological, and professional

1. Emotional – This shapes our reaction to any situation, adaption to change, establish connection with others and develop emotional intelligence

2. Physical – It is related to physical health and comprises of eating right food, exercising, taking sufficient sleep and managing stress.  

3. Spiritual – This helps in connecting ourself with the world and the nature around us. It makes a person compassionate, positive, optimistic and generate inner peace.  

4. Social – This helps to develop social relationship and maintain them  

5. Psychological – This helps in understanding inner self of an individual and promotes self esteem and acceptance

6. Professional – Professional stability and peace is essential to make a good work life balance.  

When you send large attachments, you are not
a. considering the needs of others
b. doing anything wrong
c. helping to maintain respectful communication
d. following social conventions
Please select the best answer from the choices provided
A
ОО
B
ОС

Answers

Answer:

c,becauses she is helping

Explanation:

thank me later

Answer:

A

Explanation:

i got a 100

please explain modem

Answers

Answer:

Router

Explanation:

Answer:

A modem is a portmanteau of "modulator- demodulator" – is a hardware device that converts data from a digital format, intended for communication directly between devices with specialized wiring, into one suitable for a transmission medium such as telephone lines or radio.

I hopes this help

Explanation:

If you know the unit prices of two diffferent brands of an item,you are better able to

Answers

Answer:

Compare the prices of the two brands.

Explanation:

Price can be defined as the amount of money that is required to be paid by a buyer (customer) to a seller (producer) in order to acquire goods and services.

In sales and marketing, pricing of products is considered to be an essential element of a business firm's marketing mix because place, promotion and product largely depends on it.

One of the importance associated with the pricing of products is that, it improves the image of a business firm.

Hence, if you know the unit prices of two different brands of an item, you are better able to compare the prices of the two brands. Subsequently, the buyer would be able to easily make a decision on which brand's product to purchase.

100 points if you can give me the correct answer .Sarah is working in Scratch and trying to access the code editor. What does Sarah need to click on in order to do this?
Group of answer choices

the Codetab at the bottom right of the screen

the Codetab at the top right of the screen

the Codetab at the bottom left of the screen

the Codetab at the top left of the screen

Answers

Answer:

the Codetab at the bottom right of the screen

Explanation:

because i am smart

Answer: D

Explanation: :) im a scratch expert

Overview Write a program that reads an integer from the user and then prints the Hailstone sequence starting from that number "What is the hailstone sequence?" you might ask. Well, there are two rules: • If n is even, then divide it by 2 • If n is odd, then multiply it by 3 and add 1 Continue this sequence until you hit the number 1.​

Answers

n=int(input("Enter number: "))

while n != 1:

   print(n)

   if n%2==0:

       n//= 2

   else:

       n = (n*3)+1

print(n)

I wrote my code in python 3.8. If you want to print the 1, keep the last line of code otherwise delete it.

In the human digestive system, which mechanism is responsible for cutting and grinding food?

A) organ

B) stomach

C) teeth

D)
intestines

Answers

Answer:

teeth

Explanation:

the mechanism is teeth

to use appropriate personal protective equipment we should​

Answers

Answer:

We should use a computer or mobile phone with a strong password...

isn't it?....how many of you will agree with this

Explanation:

Help me please. I'LL MARK BRAINIEST

Answers

Answer:

A and B

Explanation:

yes

why are my images blocked on brainly

i just see gray and on every avatar and image

Answers

Answer:

they are not its just that people haven't changed their profile picture. i haven't yet lol

Explanation:

Answer:

Mines the same way.

Explanation:

A keyboard, mouse, and microphone are examples of ________.

Answers

Answer:

A keyboard, mouse, and microphone all are examples of peripheral devices.

Explanation:

hope this helps

they’re all input devices
Other Questions
How is Jonas from The Giverand Harrison from Harrison Bergeron similar in the way they disagreed with their governments actions Three tigers have different parents and were raised in different environments. They all have the same proteins for stripe pattern in their cells. What can you say about their stripe patterns? Write an equation for a line perpendicular to h(t) = -2t +4 and passing through the point (-4, -1). In which of the following sentences is the word 'fast' used as a noun?The fast car sped around the racewayThe car was fast as it sped around the racewayMany doctors encourage a patient to fast before surgeryMany patients complete a fast before surgery PLZZZ HELP ME OUT........................ PLZZ 3 tickets to the museum cost $12.75. At this rate, what is the cost of:A: 1 ticket?B: 5 tickets? The direction of younging is the direction in which the top layer is the largest particles and the bottom layer is the finest particles?True False Two of the known angles in a trianglemeasure 120 and 22 What is the measure of the third angle? i know it a bit of questions but i will give you 15 points and branlyest plzzzzzz oh this for sience and DO NOT SEAL MY POINTS thx 1) % of the cells of most living things are made of water.2) All organisms need a to live.3) Organisms living on get oxygen from the air.4) Organisms living in get oxygen from the water.5) Green plants, algae and some bacteria need both and carbon dioxide.6) eat other organisms to get food. a triangle has a side length of 13 cm and 5 cm. Which could be the value of the third side. 19 cm or 13 cm? what the square root of 2000 Read the excerpt from Sir Gawain and the Green Knight.Gawain, sitting next to the Queen,Bowed to the King then:"I will keep my words plain.I ask for this battle to be mine."If you please, glorious lord, Gawain said to the King,"I will turn from this table and stand by you there,If I may do that without discourtesy,And without displeasing my liege lady,I would come to your counsel before your great courtWhat chivalric value does Gawain display in the excerpt?A. honestyB. loyalty to his kingC. physical strengthD. religious devotionANSWER: B. loyalty to his kingEdge 2021, putting this up for future use Match the Protestant Reformation leader with his country.1.John Knox Switzerland 2,Martin Luther Scotland3.John Calvin Germany4.John Wycliffe England What does scope mean? Find the missing length indicatedI WILL GIVE BRAINLIEST TO CORRECT ANSWER How many molecules are in 15 moles of CO2? Thomas has constant speeds for both running and walking. When a down-escalator is moving, Thomas can run down it in 15seconds or walk down it in 30seconds. One day, when the escalator was broken (and stationary), it took Thomas 20seconds to run down it.How long, in seconds, would it take Thomas to walk down the broken escalator?HELP ME ASAP what is the name and classification of a six sided molecule with oh attached E-Wisdom, a publishing company, implements a new business strategy to keep both talent and information within the organization by creating their own content instead of outsourcing it. In the given scenario, which of the following factors has most likely influenced the company's new business strategy?a. The potential for role ambiguityb. The potential for data lossc. The potential for employee burnoutd. The potential for intragroup conflict *starts to calm* .....