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
What most distinguishes projects with a strong need for computer animation from projects without such a strong need?
dsp73
<span> Computer animation is the process used for generating animated images with computers. </span>It is also referred to as CGI (Computer-generated imagery or computer-generated imaging).
If you understand the basic film processes (editing, sound, continuity) you could make an animated film either by making one drawing after another, moving an object frame by frame in front of the camera, or using some animation software. However, when it comes to big project what most 
<span>distinguishes projects with a strong need for computer animation from projects without such a strong need is the size of the budget, because people that know the animation industry and work well should be additional included in the project and paid.</span>
8 0
4 years ago
6. 6. While printing a document, what are the options available in the Settings section?
elixir [45]

Answer:

The answers to questions is given below in explanation section

Explanation:

6.6:

While printing a document, the following options are available in setting sections.

Document

In this section the following setting options are available:

  • Print All Pages: This option is selected if you want to print all pages in document
  • Print Selection: This option is printing a section in a document
  • Custom Print: Allow custom print
  • Document Info: print document information
  • List of Markup: print all the listed markups
  • Print Markup: print mark up in your document
  • Only print odd pages: Print odd pages in document
  • Only print even pages: Print even pages in document
  • Pages: In this option, you can provide custom pages to print i.e. combination of both odds and evens. e.g. 1-5,7,9,10-12. This will print page 1 to 5, the print page 7 and 9, and then print page 10 to 12.
  • Print one sided: if you want to print on one side of paper
  • Manually print on both sided: if you want to print both sides of the paper
  • Collated: If you want to print more than one copy, then this option will print all document and then start printing from first page to last page and continue to your number of print copies.
  • Uncollated: If you print 3 copy of document, this option will start printing first page 3 times, then second page 3 times and so on.

<em>Orientation</em>

  • Portait Orientation: this option is used for printing portrait page
  • Landscape orientation: this option is used to print on landscape of page

  • Page size: in this option, you can select different page sizes for printing.
  • Margins: This option allow you to set the margin of your printing page
  • Pages per sheet: This option allow you to print multiple page per sheet.

Answer (7)

A cell is an intersection between row and column in Excel on a spreadsheet. A cell in Excel starts from A1. A cell can contain different types of values for example string values, date values, text values, and numerical values, etc.

Cell also contains a reference to other cells in a spreadsheet.

To insert the value into a cell, first you have to select the particular cell, then click on it, and then enter a value in it. If you want to modify the cell value. for example, you may wrongly enter the number, 23456 instead of 24456. Then you may edit it in the formula bar because if you directly selected the cell, and start inserting value, you cant and you may lost the cell values.

Answer (8)

The following options are available in the Insert Cells Dialog Box.

To appear the insert cells dialog box, click any particular cell, where you want to insert the cell. Then click right-click, a window will open, in it, you can select the insert cell option. As you click on this option, a dialog box will appear with the following option.

  • Shift Cell Right: It will shift the selected cell to the right
  • Shift Cell Down: It will shift the selected cell to left
  • Entire Row: It will insert row below the selected cell
  • Entire Column: It will insert the column to the right of the selected cell

Answer (9)

Border and Shading dialog box appears after inserting a table. Insert table in a document, then select the table and right-click on it, then click on the table properties. A new dialog box will appear, in under table tab at the bottom, border and shading button is shown. Click on this button, as you click this button, Border and Shading dialog box will appear. In this option, you have different settings for the border.

Border: under this option, you can select different border style, color, and width for table, text, paragraph, and cell.

Page Border: In this option, you can select different border styles, border sizes, border arts and apply these to all documents or sections of the document. In this option, you have different settings for the border.

Shading: In this option, you can fill the table with color and also you can apply different patterns with color.

Answer (10):

The default orientation in MS word is portrait. Using this layout, the width of the document is smaller than the height of the document.

Answer (11)

The difference between the print layout and outline is given below:

  • The print layout shows the document in a way that how it would look like after printing, while outlook layout doesn't show how your document looks like on the page
  • In print layout, you can easily customize and modify your document, while in the layout you need to adjust the layout of the document and it is hard to do that
  • In print layout, you can easily adjust while inserting a new line while in layout it is quite difficult and each line is inserted with a bullet.
  • The print layout shows how the final print of the document looks like while the outline layout only shows the outlines of the document. Outline layout makes possible to collapse and expand different sections of the document to easily move blocks of text around the document. It is useful when you are looking at a document that has a large number of pages and sections.

Please find the rest of the solution is in attached word document.

Download docx
5 0
3 years ago
What is the difference between requirements and controls in the security process? Give examples of each.
konstantin123 [22]

Answer:

Security controls are those measures taken to prevent, identify, counteract, and reduce security risks to computer systems, whereas, Security Requirements are guidelines or frameworks that stipulates measures to ensure security control.

Explanation:

Security controls encompass all the proactive measures taken to prevent a breach of the computer system by attackers. Security requirements are those security principles that need to be attained by a system before it can be certified as safe to use.

Security controls are of three types namely, management, operational, and technical controls. Examples of technical controls are firewalls and user authentication systems. A statement like 'The system shall apply load balancing', is a security requirement with an emphasis on availability.

4 0
3 years ago
चार फरक छुट्याउनुहोस् ।) 3. Write down any four provisions of cyber ethic साइबर नैतिकताका कुनै चार प्रावधानहरु लेख्नुहोस् ।​
Kruka [31]

Answer:

Five provisions of cyber ethics are:

Your computer or system should not be used to harm others. Your cyber knowledge should not be used to steal other people's resources. One should not use or copy softwares for which you have not paid. ... Never use other people's resources without their consent.

7 0
3 years ago
What does it mean when the lottery machine says function suppressed after scanning a ticket
WARRIOR [948]

When a machine  says function suppressed after scanning a ticket, it implies that you have won some certain amount.

<h3>What is lottery  wins?</h3>

This term connote that a person has  a winning ticket in a lottery that is often owned by a government.

Note that  if a winning ticket is scanned, the terminal often shows a message just for you and that suppress function implies  that your the ticket has won something.

Learn more about lottery  from

brainly.com/question/9216200

6 0
2 years ago
Other questions:
  • Which of the following refers to applications and technologies that are used to gather, provide access to, and analyze data and
    8·2 answers
  • Fundamental types of data, such as strings, integers, and real numbers, are known as
    5·1 answer
  • If you have a long title for a table and need it to span several cells, you can use A. Merge Cells. B. Split Cells. C. Insert Co
    5·1 answer
  • Having one password for all accounts is an easy way to remember passwords, but it will expose you to what risk?
    15·1 answer
  • _______is a network of physical objects embedded with sensors, processors, software and network connectivity capability to enabl
    6·1 answer
  • You use a 1200 watt hair dryer for 10 mintues a day.
    7·1 answer
  • Trading stock or selling stock, selling real estate for profit, and selling other assets that gain value over time.
    13·1 answer
  • Which programming paradigm focuses on abstraction to the level of math and the elimination of side-effects and state based progr
    14·1 answer
  • What are the nuclear codes?
    14·1 answer
  • What is the destination ip address when an ipv4 host sends a dhcpdiscover message?
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!