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
hammer [34]
3 years ago
9

Given a one-dimensional array named yearlySalesTotals that contains decimal values, code the first line of a for statement that

declares an index, a Boolean expression for ending the for loop, and an increment expression that lets you use the index to refer to each element in the array.
Computers and Technology
1 answer:
VashaNatasha [74]3 years ago
7 0

Answer:

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

Explanation:

The for statement in has the syntax as given above, it has an int variable indicating the starting index, then a boolen condition ensuring that you don't get out of the array bounds, and an increment operator.

See below a complete program in java that will output all elements of the array  assuming the array yearlySalesTotals contains only ten elements and all indexes has been assigned values.

public class ANot {

   public static void main(String[] args) {

double []yearlySalesTotals = new double[10];

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

   System.out.println(yearlySalesTotals[i]);

   }

}

}

You might be interested in
Traditional methods of business communication tend to mean paper-based messages such as formal letters, brochures, reports, prop
Mila [183]

Traditional methods of business communication tend to mean paper-based messages such as formal letters, brochures, reports, proposals, and notes.

There is no denying the fact that digital communication has a lot more advantages as compared to the traditional methods of business communication, but there are certain cases and situations where traditional methods and preferred over digital communication.

Paper-based messages provide objective evidence that a formal undertaking has been issued. The advantage of paper-based messages is that they can't be tampered with and not reproduced. They represent the signature of the concerned authority and are always treated above the digital signatures.

5 0
3 years ago
A power supply serves as both a rectifier and transformer to convert AC house current to DC and to step down voltage from 110 V
ohaa [14]

Answer:

True

Explanation:

A computer can be defined as an electronic device that is capable of receiving of data in its raw form as input and processes these data into information that could be used by an end user.

Generally, a computer is composed of five (5) main components and these include;

I. Input unit.

II. Output unit.

III. Central processing unit (CPU).

IV. Storage (memory) unit.

V. Power supply unit (PSU).

A power supply also referred to as power supply unit (PSU) can be defined as a hardware component of a computer that converts and step-down the domestic alternating current (AC) electrical power to a low-voltage regulated direct current (DC) power, so that the internal components of a computer can be supplied with power.

Hence, the power supply unit (PSU) serves as a rectifier by converting alternating current (AC) house current to direct current (DC) and as a transformer to step-down voltage from 220 Volts or 110 Volts to 50, 30, or 20 Volts depending on the requirements of a computer.

8 0
3 years ago
Malware is any malicious software installed on a computer or network without the owner’s knowledge.
Naya [18.7K]

Answer: True

Explanation: Malware is literally short for malicious software. The name that is given to any type of software that could harm a computer system or collect a user's data.

Hope it helped please mark as brainliest!

8 0
3 years ago
What is a office buttom?
SpyIntel [72]
The Microsoft button was exclusively used in the 2007 versions of word, excel, powerpoint, access and outlook. It has all of the different options like to save, print, open ect. It was located in the top left hand corner of the screen. It looked a bit like this (see attachment).

3 0
3 years ago
Quick!!! Brainliest
xxTIMURxx [149]
D. A technology-and creativity-driven world
7 0
3 years ago
Other questions:
  • Henry uploaded the photos of his birthday to a cloud storage system. He feels that it’s a safe option for data storage. His frie
    12·1 answer
  • Write a program that calls fork(). Before calling fork(), have the main process access a variable (e.g., x) and set its value to
    5·1 answer
  • What will happen with communication methods in five years?
    8·1 answer
  • Which function can you use to abbreviate the lengthy expression, A1+A2+A3+A3...+A19+A20?  MAX COUNT SUM ROUND
    10·2 answers
  • web pages within the same website often have different blank because they have different blank A) home pages, urls B) goals, sou
    12·1 answer
  • A ____ is a statement specifying the condition(s) that must be true before the function is called.
    6·1 answer
  • Excel files have a default extension of ?
    12·1 answer
  • The files in James's computer were found spreading within the device without any human action. As an engineer, you were requeste
    11·1 answer
  • ________ is the art of manipulating people into breaking normal security procedures or divulging confidential information.
    12·1 answer
  • Someone put malware on your computer that records all of your keystrokes. what aspect of security was primarily attacked? choose
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!