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
Aubrey didnt like to use graphics or images on her slides. She preferred to use only a title for her slides and bullet-poinged t
Fed [463]

Hiya!


<u>Answer:</u>

Of the options given, your answer is A.) As long as you use it responsibly, it will enhance your slides and engage your audience.

<u>Why is this correct?</u>

While Aubrey may not enjoy using media, a visual aid is sometimes needed outside of text. Even if it's sometimes a graphic or a chart, it does wonders to  help it make sense; especially with a mixed bag of people and I'd suggest you google it yourself as well. This means B is out. Sayonara!

Secondly, there MUST be a balance between media and text. Too many images will, as Aubrey believes, have an adverse effect on the presentation. So much as a caption on your photos is good. C is tonight's big loser.

Finally, there is the split between A and D. What do we do now? Both make some lick of sense, right? Think again. Media may help entertain your audience, but that's not the point of presentations most of the time; It's to present information in both a graphical/verbal format without using a video. In fact, I'd say it's harder for a presenter to describe a photo on his own, meaning it will NOT take pressure off the presenter.


I hope my answer helped!

8 0
3 years ago
Read 2 more answers
Please help me please please
Leya [2.2K]
The light is shining on the left side of his face because the shadow is on the other side
6 0
2 years ago
Read 2 more answers
Which port must be open on your router to allow you to upload device configuration and firmware updates using trivial file trans
Vika [28.1K]

Answer:

UDP Port 69

<em>Trivial file transfer protocol (TFTP) operates over UDP port 69.</em>

Explanation:

UDP port 69 uses the Datagram Protocol, a communications protocol for the Internet network layer, transport layer, and session layer. This protocol when used over PORT 69 makes possible the transmission of a datagram message from one computer to an application running in another computer. UDP is used with <em>IP (the Internet Protocol)</em> and UDP Port 69 is <em>connectionless </em>which means it does not give reliable communication; it’s up to the application that received the message on Port 69 to process any errors and verify correct delivery.

3 0
2 years ago
Describe an application where a parallel circuit might work better than a series circuit
Mama L [17]
An application where you would prefer a parallel circuit over series would be a string of Christmas lights. If the light string is wired in parallel, when one bulb burns out, it would not effect the red of the string.
6 0
3 years ago
Read 2 more answers
CIST 1122 Project 2 Instructions
NikAS [45]

Answer:

it is suppost ro be at

least 20 tb

Explanation:

5 0
2 years ago
Other questions:
  • Which shortcut key aligns text to the center of a page?
    13·2 answers
  • If you are driving at night, you should not use high-beam headlights within _________ of oncoming vehicles. Florida Road Rules 4
    9·2 answers
  • Please help! (I cant figure out)
    13·1 answer
  • Which term refers to the blank areas surrounding a document page? *
    15·1 answer
  • A software package developed to handle information requirements for a specific type of business is called a(n) ____. A. outsourc
    10·1 answer
  • The elements in a long array of integers are roughly sorted in decreasing order. No more than 5 percent of the elements are out
    12·1 answer
  • Identify the angle.
    12·1 answer
  • Did brainly.com go down today? i coudlnt get in it
    15·2 answers
  • A(n) __________ structure is a structure that causes a statement or a set of statements to execute repeatedly.
    13·1 answer
  • What type casting mechanism should be used if you want to safely change (cast) a pointer type for pointing to a different object
    15·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!