1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Basile [38]
3 years ago
12

Write a method named circleArea that accepts the radius of a circle as a parameter (as a real number) and returns the area of a

circle with that radius. For example, the call of area(2.0) should return 12.566370614359172. You may assume that the radius passed is a non-negative number.
Computers and Technology
1 answer:
lions [1.4K]3 years ago
6 0

Answer:

  public static double circleArea(double radius){

       double area = 3.142*Math.pow(radius,2);

       return area;

   }

Explanation:

Find the complete program in java that prompts the user to enter a value for radius, stores it in a variable, calls the method circleArea() and passes the value for the radius, then displays the area.

import java.util.Scanner;

public class CocaColaVendingTest {

   public static void main(String[] args) {

       Scanner in = new Scanner(System.in);

       System.out.println("Please enter the value for radius");

       double r = in.nextDouble();

       //Calling the method circleArea()

       double calcArea = circleArea(r);

       System.out.println("The Area is: "+calcArea);

   }

   public static double circleArea(double radius){

       double area = 3.142*Math.pow(radius,2);

       return area;

   }

}

You might be interested in
After you design and write your help-desk procedures to solve problems, what should you do next?
vichka [17]

<em>After you design and write your help-desk procedures to solver the problem, the next step would be, testing and implementation. </em>

<em> </em>

<em>Basically, in any problem-solving process, after planning and designing the solutions, the next process that should be implemented next is: testing and implementation. In the testing phase, staff and employees would implement the solution softly, meaning everything is not advertised yet and not formal yet. They would execute the plan and design and would evaluate if it is really effective. A documentation will prepare as the basis of the evaluation. After the testing, the project team would determine if the offered solution is possible or if there are more improvements to make.</em>

7 0
4 years ago
Does woman hair grow over time in dayz?
zhenek [66]
It grows but not drastically but you’ll be able to see the difference of length in a few months or even years depending on the person.
6 0
3 years ago
In what order does the Cascade look at factors to determine which CSS rule to follow?
Vinil7 [7]

Answer:

In other words, the CSS rules can "cascade" in their order of precedence. Where the rules are located is one factor in the order of precedence. The location order of precedence is: browser default rules, external style sheet rules, embedded styles, and inline style rules.

5 0
3 years ago
Which TWO choices are NOT examples of productivty software (choose two)
Svetradugi [14.3K]

Productivity Software

Norton Antivirus and Instant Messenger are not example of productivity software

Explanation:

Google docs, Excel and Presentation software are categorized as productivity software. Productivity software include word processing programs, spreadsheet,  presentation software ,graphic design programs.Among the given choices, Norton Antivirus is a type of antivirus and security software for PC and laptops. Instant Messenger is an example of communication software used for text-based communication between two or more participants over the Internet or other types of networks. It allows efficient as wells effective communication, allowing immediate receipt of reply or acknowledgment.

So Norton Antivirus and Instant Messenger are NOT examples of Productivity software.

3 0
3 years ago
When reviewing the tracked changes in a document, what are some options for addressing edits? Check all that apply. Remove all e
sineoko [7]

Answer:

1. reject all changes

2. accept all changes

3. accept and move to next

Explanation:

In Microsoft Word, when reviewing the tracked changes in a document, there are some options for addressing edits that are available to the computer users.

These available options are:

1. reject all changes

2. accept all changes

3. accept and move to next

To access tracked changes in a Microsoft Word document, a user will have to

> click on the Review tab,

> then go to Tracking and

> select Track Changes.

6 0
3 years ago
Read 2 more answers
Other questions:
  • What will be displayed after the following statements have been executed? int x = 15, y = 26, z = 32; x = x + 12; y = y/6; z -=
    15·1 answer
  • What bit position in an ascii code must be complemented to change the ascii letter represented from uppercase to lowercase and v
    14·1 answer
  • When measuring an unknown voltage with an analog VOM, you should first A. ground the circuit. B. set the switch to the lowest ra
    5·1 answer
  • Which one of the following rules for selecting a password is the best?
    5·2 answers
  • Which of the following was the name of the first generation of cell phone networks?
    14·1 answer
  • Suppose we have two String objects and treat the characters in each string from beginning to end in the following way: With one
    14·1 answer
  • I created a brainly account and forgot everything I mean everything so I cannot log back on and my debit Card is currently about
    11·2 answers
  • Is mayonnaise technically an instrument?
    9·1 answer
  • Robert is risk manager at TPT Bank has been asked to implement an updated badge reader system for addressing access control risk
    8·1 answer
  • At Greenwood ATCT, arrival information need NOT be forwarded while FDIO is operational unless the sequence of aircraft changes a
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!