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
serious [3.7K]
1 year ago
8

Write a java program to find the average of any three numbers.​

Computers and Technology
1 answer:
nikklg [1K]1 year ago
7 0

import java.util.Scanner;

public class JavaExample {

public static void main(String[] args)

{

Scanner scan = new Scanner(System.in);

System.out.print("Enter the first number: ");

double num1 = scan.nextDouble();

System.out.print("Enter the second number: ");

double num2 = scan.nextDouble();

System.out.print("Enter the third number: ");

double num3 = scan.nextDouble();

scan.close();

System.out.print("The average of entered numbers is:" + avr(num1, num2, num3) );

}

public static double avr(double a, double b, double c)

{

return (a + b + c) / 3;

}

}

<em>The </em><em>output </em><em>is </em><em>attached </em><em>to </em><em>the </em><em>answer. </em><em> </em><em>You </em><em>can </em><em>also </em><em>check </em><em>it.</em><em>. </em>

You might be interested in
चार फरक छुट्याउनुहोस् ।) 3. Write down any four provisions of cyber ethic साइबर नैतिकताका कुनै चार प्रावधानहरु लेख्नुहोस् ।​
Kruka [31]

Answer:

Five provisions of cyber ethics are:

Your computer or system should not be used to harm others. Your cyber knowledge should not be used to steal other people's resources. One should not use or copy softwares for which you have not paid. ... Never use other people's resources without their consent.

7 0
3 years ago
An object's state is defined by the object's
Eva8 [605]

Answer:

The right answer is option 2: instance variables and their values

Explanation:

Let us define what an object is.

An object is a blueprint of a real-world identity. The instances are the reference to the object. Multiple instances of an object type can be made.

The instance variables and their values help us to determine the state of the object.

Hence,

The right answer is option 2: instance variables and their values

6 0
3 years ago
Which type of element is , and what is the meaning of that element?
IrinaK [193]

Answer:

1. Semantic

2. modifies

Explanation:

Semantic HTML is understood by the traditional browser, and semantic tags are the one that ensures not just presentation, but also adds the meaning to the webpage. And hence, img here is both semantic as well as presentational. Hence, the first option is semantic. And the IMG modifies the meaning of the web page. The description is done by the text. And hence the second option is modified.

.

6 0
3 years ago
In addition to their full versions, some commercial software is available as a ____ or trial version.
Dimas [21]
Free version also know as the lite version that has less feature and but still allows the user to use the the core functionality
3 0
3 years ago
Who invented google​
babymother [125]

Larry Page and Sergey Brin

Are the persons that invented google. This is funny Because is was after googol. mathematically founded by Edward Kasner and James Newman.

Hopes this helps!

7 0
4 years ago
Other questions:
  • Spencer is a recent graduate who finds a dream car that costs $45,000. Even better, there's a 0% APR for 36 months offer from th
    13·1 answer
  • What type of selection can be used in leu of switch/case?
    13·2 answers
  • The steps for moving data from one cell to another are _____.
    14·1 answer
  • What is logical memory?
    15·1 answer
  • Explain the role of the network layer and Internet protocol (IP) in order to make internetworking possible.
    8·1 answer
  • What are the first steps in creating a business document
    6·2 answers
  • Saved
    5·1 answer
  • Ed-Only g - Last Modified: November 2 -
    14·1 answer
  • PLEASE I NEED HELP, WILL MARK BRAINLYEST!!! 50 POINTS!!!
    14·1 answer
  • When creating a storyboard, in which section do you mention how you move from one shot to the next?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!