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]
2 years ago
12

Write a program that asks the user to type 5 integers

Computers and Technology
1 answer:
AnnZ [28]2 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
Products in which titanium is used
Lynna [10]

Answer:

It is used in jewelry, tennis rackets, scissors, bicycle frames, surgical tools, mobile phones and some other high-performance products.

Explanation:

Titanium is a familiar metal. Titanium is as strong as steel but weights about half as much.

6 0
3 years ago
Read 2 more answers
Suppose that a client performs an intermixed sequence of (queue) enqueue and dequeue operations. The enqueue operations put the
earnstyle [38]

Answer:

b, c and d can't occur.

Explanation:

Order is preserved in queue. Option A is order preserving so only it will occur.

8 0
3 years ago
Match the databse function to it's purpose
kodGreya [7K]

Answer:

Explanation:

Which database functions?

3 0
2 years ago
A company is building an expert system for use in stock trading. In which part will they have to invest the most if they have to
Korolek [52]
The answer is C because they need to store a massive amout of data
4 0
3 years ago
Integrated drive electronics devices are becoming more common on computers and are typically devices used for ___________.
Alenkinab [10]
<span>IDE but how old is this text you quote this passage from? Because IDE has had its day, and that day is over. SATA has replaced IDE as the connection of choice for storage (hard drives/SSD's/optical drives). You can't buy anything with IDE connections on the motherboard anymore, although you can still find IDE drives if you look hard enough.</span>
8 0
3 years ago
Other questions:
  • If robots can work 24 hours a day, 365 days of the year,how many hours and days can humans work.
    12·2 answers
  • What are issues to consider when deciding to build software in-house or purchase commercial off-the-shelf software (cots)?
    14·1 answer
  • You are given a class named Clock that has one int instance variable called hours.
    14·1 answer
  • Which one of the following statements is true regarding the fetch-execute cycle? Each step of the fetch-execute cycle is perform
    15·1 answer
  • Which of the following prefixes would be best to use when measuring your own mass?
    15·1 answer
  • Which are the best examples of cost that should be considered when creating a project budget
    14·1 answer
  • How do i dos someone? I wanna mess with my friend
    10·1 answer
  • Time-management techniques work most effectively when performed in which order?
    7·1 answer
  • HURRRY WILLL GIVE BRAINLIST!!!!!!
    12·1 answer
  • Who is responsible for the actions of autonomous systems? (please help me :C)
    14·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!