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
vampirchik [111]
3 years ago
9

Design a for loop that gets 6 integer numbers from a user, accumulates the total of them, then displays the accumulated total to

the user. Just write the code segment to show what is asked, not a complete program. However, declare any variables that you need to use. Use a semicolon (;) at the end of each line of code so I can tell when you use a new line in your code.
Computers and Technology
1 answer:
PSYCHO15rus [73]3 years ago
6 0

Answer:

Explanation:

The following loop code is written in Java and asks the user for the 6 integer numbers as mentioned in the question and sums them up. Finally putting them into a variable named total and printing it out.

       int total = 0;

       for (int x = 0; x < 6; x++) {

           Scanner in = new Scanner(System.in);

           System.out.println("Enter an integer: ");

           total += in.nextInt();

       }

       System.out.println("Your total is: " + total);

You might be interested in
Which type of footwear should be worn while working on a hybrid vehicle?
andriy [413]

Comfortable sneakers

7 0
4 years ago
Read 2 more answers
1. Which sentence best expresses the main idea
Neko [114]
B is the answer

Hope this helps




3 0
3 years ago
What does GEOSYNCHRONICE SATELLITE use for?​
Elanso [62]

Answer:

The Geosynchronous Satellite is mainly used for sending data and information to the spacecraft from one of the centers on Earth. It is also used for communication between the center on Earth and the spacecraft.

4 0
3 years ago
Read 2 more answers
Name the different tools used byMMDB.
Anastaziya [24]

Answer:

MMDB stands for the multimedia database as, it the process of collection of the multimedia data or datatypes like images and graphical objects. It basically manages the several types of the data or information and control the multimedia databases.

Different types of tools are:

  •  Video and audio processing system
  •   Artificial intelligence
  •   Graphic design system
  •    Mobile and wireless computing

7 0
4 years ago
A list that is not sorted by numbers is called a?
Feliz [49]

Answer:

An unordered list(HTML)

6 0
3 years ago
Other questions:
  • "If a VM is given exclusive access to hardware devices on the host computer, what new Windows Server 2016 feature is being utili
    14·1 answer
  • Which part of an I-statement involves a description of your needs or feelings?
    12·1 answer
  • Thetremendous diversity of the source systems is the primary reasonfor their complexity. Do you agree
    6·1 answer
  • HELP I WILL MARK BRAINLIEST!!! I NEED ASAP!!!
    5·1 answer
  • What is an internt?​
    10·1 answer
  • An alteration threat violates information integrity. <br> a. True <br> b. False
    13·1 answer
  • Create a Python program to solve a simple payroll calculation. Calculate the amount of pay, given hours worked, and hourly rate.
    12·1 answer
  • 1) List two hardware methods that can be used to secure data
    11·1 answer
  • Banks will pay you interest on your money based on the interest rate. True or false?​
    11·1 answer
  • The U.S. consumes lots of energy. Which fuel provides the most energy?
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!