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
lakkis [162]
3 years ago
5

Write a (java) program with a class called Sum1, using a while loop to add 10 numbers entered from the key-board.

Computers and Technology
1 answer:
Ainat [17]3 years ago
5 0

This is a java program with a class called Sum1.

Explanation:

While loop is used to add 10 number.

import java.util.Scanner;

public class Sum 1

{

   public static void main(String args[])

   {

       int number, count, sum = 0;

       Scanner s = new Scanner(System.in);

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

       number = s.nextInt();

       while(number > 0)

       {

           count = number % 10;

           sum = sum + n;

           number = number / 10;

       }

       System.out.println("Sum of Digits:"+sum);

   }

}

You might be interested in
In a typical system design specification, the _____ section describes the constraints, or conditions, affecting a system, includ
Lapatulllka [165]

Answer:

The answer is "Option B".

Explanation:

The system environment includes all software external areas, which may vary from user to user. The System may be different, but it is part of the System environment, depending on the level of available memory. This environment is a part of the System development life cycle. and other options that are not correct which can be described as follows:

  • In option a, Time and cost estimates are part of the SDLC. It is a part where we calculate the overall cost and time for making any new software.
  • In option c, It is not a use in system environment it is reported.
  • In option d, System Components are a hardware device that by system environment for making a system environment but it does not include systems security that's why it is not correct.
6 0
3 years ago
What is the controller in this image know as? Choose one
egoroff_w [7]

Answer:

mode dial

Explanation:

3 0
2 years ago
A company is in the middle of an operating system update to Windows 10 from Windows XP, Windows 7, and Windows 8.x. The diverse
Romashka-Z-Leto [24]

Answer:

Option A is the correct option.

Explanation:

The following option is true because when the user or any organization is installing the updates of an operating system and then, some technicians that its failure and they observe that 100% usage of the computer's CPU is done and the user takes the advice of the technicians regarding to the following queries then, they tell them the following problem is that there is an insufficient numbers of the physical processor cores.

8 0
3 years ago
Graphic designers create___to showcase their work​
BabaBlast [244]

Answer:

Possible Answer:

Start with the sites you use every day

Edit: That really doesn't answer the question

7 0
3 years ago
Read 2 more answers
Scannable résumés are: a. Written by hand and then scanned b. Typed on a typewriter c. Created in a word-processing program d. R
Rudiy27

The answer is : C. Created in a word-processing program.  Scannable Resumes are those that were created in a word-processing program.  It is much more presentable and one can use the file by sending thru email as an attachment to the application letter,

8 0
3 years ago
Read 2 more answers
Other questions:
  • Which of the following will most likely result in a decrease in population?
    11·2 answers
  • Explain Cascading Style Sheets and what they do. Describe their primary function, two effects that this function has on programm
    11·1 answer
  • Which of the following is a reason why the comments tool within PDF documents could be helpful? (Select all that apply.)
    5·1 answer
  • Technician A says that wheel speed sensors are a highly probable cause of illuminated EBC warning lamps. Technician B says that
    10·1 answer
  • Which of the following commands would I use to begin a new presentation?
    14·1 answer
  • With the range E2:E30 selected, create a new conditional formatting rule that uses a formula to apply yellow fill and bold font
    10·1 answer
  • How do you copy and paste plz let me know
    14·2 answers
  • Two types of formulas in Excel, what are they? A. Complex and simple, B. General and currency, C. Logical and Boolean, D. Trig a
    15·1 answer
  • Rectangular box formed when each column meet​
    11·1 answer
  • Currently, this program will add 6 and 3 together, output the math problem and output the answer. Edit this code so that a rando
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!