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
Allisa [31]
3 years ago
10

Write an application that counts by five from 5 through 500 inclusive, and that starts a new line after every multiple of 50 (50

, 100, 150, and so on).
public class CountByFives {
public static void main (String args[]) {
// Write your code here
}
}
Computers and Technology
1 answer:
MArishka [77]3 years ago
5 0

Answer:

Replace the comment

//Write your code here

with

for(int i =5; i<=500;i++){

System.out.print(i+" ");

if(i%50 == 0){

System.out.println();

}

}

Explanation:

See attached for the full program

This line iterates from 5 to 500

for(int i =5; i<=500;i++){

This prints each digit

System.out.print(i+" ");

<em>The following if condition checks if current digit is a multiple of 5; if yes, a line is printed</em>

<em>if(i%50 == 0){</em>

<em>System.out.println();</em>

<em>}</em>

}

Download txt
You might be interested in
Why does a WEB photo have a smaller/lower resolution than a PRINT photo?
IgorC [24]

Answer:

So that the WEB photo will load faster on a website while a PRINT photo needs to look sharper and higher quality in a printed photo or book. ​

Explanation:

lower resolution = lower quality, load faster

7 0
3 years ago
Which browser do most web users use and why do you think that it is that way? Make sure you search online for statistics to conf
oksian1 [2.3K]

Answer:

2b2t

Explanation:

2b2t

4 0
4 years ago
When do programmers use If conditional statements? when they want a certain event to occur when a condition is met when they wan
lyudmila [28]

Answer:

when they want a certain event to occur when a condition is met

Explanation:

5 0
3 years ago
Read 2 more answers
Identity management programs often implement a _________system that facilitates the management of user accounts.
Trava [24]

Answer:

single sign-on

Explanation:

Identity management programs in computer operation involve an administrative process that is carried out by implementing a SINGLE SIGN-ON system that facilitates the management of user accounts.

The purpose is to identify, validate, and approve an individual or group of people to have permission to various applications, computer systems, or networks by linking user rights and limitations with created identities.

Hence, in this case, the correct answer is SINGLE SIGN-ON

6 0
3 years ago
Assume that the variables gpa, deansList and studentName, have been declared and initialized . Write a statement that both adds
Alborosie

Answer:

Following are the statement which is given below:

if (gpa > 3.5)  // check the condition if gpa exceeds 3.5.

{

deansList++;  // increment of 1 in the deansList variable

cout << studentName;  // display the studentName,  

}

Explanation:

The description of the statement

  • In the if statement we check the condition of "gpa" .if  "gpa"  is greater then 3.5 then it executed the statement inside the if block otherwise nothing will be executed.
  • if control moves to the if part it adds to 1 to the deansList.
  • Finally, display the value of studentName.
3 0
3 years ago
Other questions:
  • 1. A(n) ____ is a special type of inline image in which you define one or more areas as hotspots. *
    14·1 answer
  • Can any existing directory beneath the system root directory be used as a mount point?
    9·1 answer
  • Within the Differentiated Services (DiffServ) architecture, how many classes of service (CoS) are there?
    7·1 answer
  • What is the difference between primary storage, secondary storage and off-line storage?
    5·1 answer
  • What’s the best description of an opportunity cost
    5·1 answer
  • Using a windows computer, to make a window wider, you would move the pointer until it changes to the horizontal resize shape and
    6·1 answer
  • What is the difference between paper size and page margins in Word?
    10·1 answer
  • Have you ever watched Full House? Who is your favorite character and why? EXPLAIN AND ILL GIVE BRAINLIEST!
    12·1 answer
  • Several programmers write individual code modules that are used for different processes in a vehicle. Individual tests have alre
    13·1 answer
  • The \t and \n are examples of one of Python's escape characters.<br><br> A. True<br> B. False
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!