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
garri49 [273]
3 years ago
12

You do not need to use any functions beyond the main function in this problem. Initialize an array of int with the values: 4, 6,

9, and 12. Write a for loop to add the values in the array and find their sum. Write a second loop to print the values from the array and their sum in the following format: 4 6 9 12
Computers and Technology
1 answer:
zheka24 [161]3 years ago
4 0

Answer:

import java.util.Scanner;

public class Main

{

public static void main(String[] args) {

   

    int[] arr = {4, 6, 9, 12};

    int sum = 0;

   

    for(int i=0; i<arr.length; i++){

        sum += arr[i];

    }

   

    for(int i=0; i<arr.length; i++){

        System.out.print(arr[i] + " ");

    }

    System.out.println("");

 System.out.println("The sum of the numbers: " + sum);

}

}

Explanation:

* The code is written in Java.

- Initialize the array with the given numbers

- Initialize the <em>sum</em> variable as zero

- Calculate the sum in the first for loop

- Print the numbers in the second for loop

- Print the <em>sum</em>

You might be interested in
Which of the following Internet protocols is MOST important in reassembling packets and requesting missing packets to form compl
marishachu [46]

Answer:

A

Explanation:

TCP numbers the packets before sending them so that the receiver can correctly reorder the packets, and it can request missing packets be resent.

UDP- sends all the packets at once

IP- rules on the networks

HTTP- used for transmitting web pages over the Internet

4 0
4 years ago
Ms Access is spreadsheet software.True or false​
Doss [256]

Answer: I'd say false.

Explanation: An example of a spreadsheet software would be MS Excel. Access does have an option to create a spreadsheet but it also has other uses.

6 0
3 years ago
Read 2 more answers
By the 1990s, ______________ technology enabled one person operating a desktop computer to control most—or even all—of these fun
snow_lady [41]

Answer: D. Digital

Explanation:

By the 90s many changes were been seen in the global market where we had the digital technology glowing and the flourishing of digital devices which enabled a person to operate desktop computer and many others stuffs

one such contribution of digital technology can be seen in the field of printing machines where we had photooptical printing machines. These machines uses the energy of the photons to allow a beam of light to strike a material but as the digital age started it allowed using computer controlled lasers to photosensitize  printing drums whereby static electricity is laid on the surface of the drum. This technology enables full color press sheets possible.

8 0
4 years ago
Read 2 more answers
Which application requires knowlodge of html or javascript to produce a website
REY [17]

Answer:

Wordpress

Explanation:

WordPress (WP, WordPress.org) is a free and open-source content management system (CMS) written in PHP [source: Wikipedia].

Wordpress can be used to create websites, blogs, ecommerce sites.

HTML provides the basic structure of websites. It is enhanced and modified by other programs such as CSS and JavaScript. CSS is used to control presentation, formatting, and layout. JavaScript is used to control the behavior of different elements.

4 0
4 years ago
Twenty staff members will be doing data entry activities from 10 p.m. to 3 a.m. on a regular basis. You could check if a given o
Alex

Answer:

load testing

Explanation:

to see if the activity can handle under performance

5 0
3 years ago
Other questions:
  • Windows apps are also known as
    11·2 answers
  • what is the goal of technology A. to understand how the natural world functions B. to study the natural world C. to improve the
    9·1 answer
  • How do you choose the amount of points you give a person here on this brainless app...??.
    11·2 answers
  • Explain The main distinction between an ap course and a dual enrollment course.
    13·1 answer
  • In C++ Please :
    6·1 answer
  • Which of the following best explains the different between Cut and Copy? a. When you copy text you are permanently deleting it,
    5·2 answers
  • Write the name of the tab, the command group, and the icon that you need to use to justify
    14·1 answer
  • The word “Intrapersonal”means----------------------.Within the personSelf talkExtrovertOutgoing person
    10·2 answers
  • 3. What is the value of a 4-band resistor which has the first band - Green, the
    11·1 answer
  • List the caveats to this analysis and how they affect the research. How does this document define the ""typical game developer""
    7·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!