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
zhannawk [14.2K]
3 years ago
6

Given that the array monthSales of integers has already been declared and that its elements contain sales data for the 12 months

of the year in order (i.e., January, February, etc.), write a statement that writes to standard output the element corresponding to October. Do not write anything else out to standard output.
Computers and Technology
1 answer:
SIZIF [17.4K]3 years ago
5 0

Answer:

       System.out.println("October is the "+monthSales[9]+"th Month of the year");

A complete Java program is given in the explanation section.

Explanation:

public class num4 {

   public static void main(String[] args) {

   int [] monthSales = new int[12];

   int i=0;

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

       monthSales[i] = i+1;

   }

       System.out.println("October is the "+monthSales[9]+"th Month of the year");

   }

}

In the code above, we created an an array of size 12 with this statement

int [] monthSales = new int[12];

using the for loop, the numbers 0-12 are added to the array corresponding to the twelve months in the year

The statement   System.out.println("October is the "+monthSales[9]+"th Month of the year"); outputs the corresponding number to October

You might be interested in
_______ is a form of crime that targets a computer system to acquire information stored on that computer system, to control the
postnew [5]

Answer: Computers as target

Explanation:

Whenever an authorized  access is made into a system it is a form of crime and it is called computers as target whereby one is able to access the system and get hands on unauthorized data and can also manipulate various activities which will have many dangerous effects.

8 0
3 years ago
In addition to regular watch features, which two features are often found on smart watches?
andriy [413]
Phone capabilities and fitness monitoring
5 0
3 years ago
Ví dụ sau sẽ in ra dữ liệu của x là kiểu gì ?
Virty [35]
Sjsjsjsjsjdhshshshshususs
7 0
2 years ago
How do you select a single cell, a single column, a single
Vedmedyk [2.9K]

Answer:

To select nonsequential cells, click the first cell, hold down the Ctrl key, and click each additional cell (or row or column) you want to select. To selectthe entire worksheet, click the small box located to the left of column A and above row 1. Optionally, you can selectall cells in a worksheet by pressing COMMAND+A......

To select all cells on a worksheet, use one of the following methods:

Click the Select All button.Press COMMAND+A. Note If the worksheet contains data, and the active cell is above or to the right of the data, pressing COMMAND+A selects the current region. Pressing COMMAND+A a second time selects the entire worksheet.

8 0
2 years ago
A company is more likely to lose current customers if:
Agata [3.3K]

Answer:

A

Issues can lead reoccuring costomers to not want to come back, resulting in this issue.

4 0
2 years ago
Other questions:
  • Describe the concepts of Defense in Depth and Detection in Depth. Compare and contrast. What's different? What's similar?
    9·1 answer
  • Briefly explain what is net neutrality and why is it important today
    15·1 answer
  • Select two netiquette guidelines. In three to five sentences, explain why these guidelines make professional online communicatio
    15·2 answers
  • Write a function called missing_letters that takes a string parameter and returns a new string with all the letters of the alpha
    7·1 answer
  • Want to.learn about computers​
    9·1 answer
  • What is normalization?
    7·1 answer
  • 100 POINTS. DO NOT SPAM. OR I WILL REPORT.
    13·2 answers
  • How do you code to find the surface area 6 s2, volume s3 in python
    6·1 answer
  • Question 1 (1 point)
    9·1 answer
  • You are creating a program that can add up the amount of money the user spent that day. Right down to the penny! What kind of va
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!