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
Jobisdone [24]
2 years ago
6

A program is required to three (3) numbers. calculate and print their total

Computers and Technology
1 answer:
podryga [215]2 years ago
5 0

A program that is required to three (3) numbers. calculate and print their total is given below:

<h3>The Program</h3>

import java.util.Scanner;

public class SumAndAverage {

public static void main(String[ ] args) {

System.out.println("Enter three numbers - ");

// Accepting and finding sum of numbers.

int sum = 0;

Scanner sc = new Scanner(System.in);

for (int i = 0; i < 3; i++)

sum += sc.nextInt( );

// Printing sum and average.

System.out.println("Sum - " + sum);

System.out.println("Average - " + (sum / 3f));

}

}

The output would request three different numbers, then add them up, and display the output of the sum and then display or print their total


Read more about programming here:

brainly.com/question/23275071

#SPJ1

You might be interested in
When creating a report,you can mske groups and subgroups by?​
Mnenie [13.5K]

Answer:

content of the report

Explanation:

  • you must clarify all things
  • the report would be clean and clear
7 0
2 years ago
Internet transportation exchanges brings together shippers who post __________ and carriers that post __________ in order to arr
zmey [24]

Answer:

Internet transportation exchanges brings together shippers who post LOADS and carriers that post their AVAILABLE CAPACITY in order to arrange shipments. Group of answer choices capacity, capacity loads, loads capacity, loads loads, capacity

7 0
2 years ago
Please help me answer this question
Korolek [52]

Answer:

the arrow goes counter clockwise

Explanation:

In the battery symbol, the large line represents + and the smaller, thick line represents -. Since current flows from + to -, the direction is counter clockwise.

7 0
3 years ago
If your earning potential is higher than the cost of your higher education,<br> you will have a
igor_vitrenko [27]

Loans take for Higher education does have a positive ROI because you are building skills and work experience that can increase your future earnings.

If your earning potential is higher than the cost of your higher education,

you will have a positive return of investment.

  • The more education is linked with higher lifetime. Based on U.S. Bureau of Labor, college graduates earn an average of 61% more than non-college graduates.

The likelihood of earning more income over the course of a lifetime with a college degree is the main factor in considering if or not to pursue a diploma.

The higher income that is gotten from a college degree is known as the "college wage premium."

Learn more from

brainly.com/question/21069873

7 0
3 years ago
What does place value mean with binary?
mestny [16]

Explanation:

the largest number you can write in binary using only 6 places or 6 digits

7 0
4 years ago
Other questions:
  • I am having trouble with logic gates(AND NOR,etc)
    8·2 answers
  • Suppose in a class of 100 students, there is a homework due every week. The professor wants to encourage students to hand in the
    8·1 answer
  • Percy is a lighting technician in a film production. For a shot, the chief lighting technician instructs Percy to get the kind o
    15·1 answer
  • PLZ HURRRYYYYYY
    15·1 answer
  • Help me for this question
    8·1 answer
  • Which of the following is true of how packets are sent through the Internet?
    7·1 answer
  • Item 3
    15·1 answer
  • 1. Choose a real or made up company, and describe at least three ways in which the company uses technology. (1-3 sentences. 3.0
    13·1 answer
  • Draw a chart showing the crossing between red and white flowered pea plants till F2 generation. Find out the genotypic and pheno
    6·1 answer
  • Write a line of code that declares a variable called shipName and set it equal to the string SpaceX3000.
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!