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
igor_vitrenko [27]
3 years ago
12

Write a program that asks the user to type 5 integers

Computers and Technology
1 answer:
AnnZ [28]3 years ago
5 0

import Java.util*

public class Average{
public static void main(String [] args){

int sum = 0;
int numbers = 0;

for(int i = 0; i < 5; i++){
Scanner sc = new Scanner(System.in);
System.out.println(“Please enter your integers: “);
numbers = sc.nextInt();

sum += numbers;
}
System.out.println(“The average is: “ + sum/5)”
}
}
You might be interested in
The primary reason for a company to outsource jobs is to
DedPeter [7]
The primary reason is to cut labor costs
7 0
4 years ago
Read 2 more answers
Which type of software coordinates the hardware and software of a computer to work efficiently and productively?
Mariana [72]
A. the operating system handles the I/O devices with the cpu, :)
7 0
4 years ago
Read 2 more answers
In 2-4 sentences, explain the difference between the “save” and the “save as” commands.
yuradex [85]
The "save" command means to save it again, or to save the changes you made to an already saved document. The "save as" command means to save it for the first time and you enter in what you want to name to document youre saving
4 0
4 years ago
Read 2 more answers
Your laptop doesn���t have a serial port. what type of connector will your laptop require?
hodyreva [135]
Order a disk to program the lap top to use Wi-Fi
6 0
3 years ago
Read 2 more answers
Running fewer applications at once is a way to resolve which type of bottleneck?
vichka [17]
The answer is <span>memory.  </span>Running fewer applications at once is a way to resolve the bottleneck in <span>memory.  </span>Run fewer programs at the same time and restarting a PC regularly, is a good way to clear out its memory.
6 0
3 years ago
Other questions:
  • Which directory in the FHS stores programs and configuration information that can only be executed and modified by the root user
    10·1 answer
  • What is the name of the malware included in CCleaner?
    11·1 answer
  • Which process refers to starting up a computer?
    13·2 answers
  • 2. Design a class named Sandwich with data fields for description and price. Include a constructor that requires arguments for b
    14·1 answer
  • Assume that an array of Integers named a that contains exactly five elements has been declared and initialized. In addition, an
    12·1 answer
  • 1) Open the file DiceSimulation.java attached below. Create a new project on NetBeans called DiceSimulation. Copy the code from
    13·1 answer
  • In a CSS document, within what must you enclose properties and values when you define a rule for a specified selector?
    13·1 answer
  • Write an algorithm that receives a number from the user (you can store the number in a variable called N). Then the algorithm sh
    8·1 answer
  • Visual Design includes 4 elements: shapes, texture, lines and form.
    6·1 answer
  • Gina, an IT professional, noticed that the servers were running very slowly. She evaluated the system and made a recommendation
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!