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
Degger [83]
3 years ago
5

Modify the CountByFives application so that the user enters the value to count by. Start each new line after 10 values have been

displayed. Save the file as CountByAnything.java.public class CountByFives{public static void main(String args[]){for (int i = 5; i <= 200; i = i + 5) {System.out.print(i+",");if (i % 50 == 0){System.out.println();}}}}
Engineering
1 answer:
marishachu [46]3 years ago
5 0

Answer:

import java.util.Scanner;

public class CountByAnything

{

  public static void main (String args[])

  {

      int beginning = 5;

      int ending = 200;

      Scanner s = new Scanner(System.in);

      System.out.println("Enter the value to count by:");

      int valueToCount = s.nextInt();

      int counter = 0;

      for(int i = beginning; i <= ending; i += valueToCount)

      {

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

          if((counter+1) % 10 == 0)

              System.out.println();

          counter++;

      }

  }

}

Explanation:

  • Initialize the beginning and ending.
  • Loop through the value of ending variable.
  • Check if numbers per line is equal to ten  and Increment the counter .

         

You might be interested in
A gear train has two gears. The driver gear has 8 teeth and a diametral pitch of 6 teeth/inch. the follower gear has 24 teeth. W
Sliva [168]

Answer:

18 teeth/inch

Explanation:

Given that: i. driver gear has 8 teeth and diametral pitch of 6 teeth/inch.

                  ii. follower gear has 24 teeth.

Let the followers diametral pitch be represented by x.

Then,

8 teeth ⇒  6 teeth/inch

24 teeth ⇒ x teeth/inch

So that;

x = \frac{24 x 6}{8}

   = \frac{144}{8}

   = 18 teeth/inch

The diametral is 18 teeth/inch

3 0
3 years ago
Multiply. Write the answer in simplest form. 1 3/10×1/8
kicyunya [14]

9514 1404 393

Answer:

  13/80

Explanation:

The product is ...

  (1 3/10)×(1/8) = (13/10)×(1/8) = (13×1)/(10×8) = 13/80

4 0
2 years ago
Answer my question I will mark brainliest
Iteru [2.4K]

Answer:

150

Explanation:

Mark me Brainliest

6 0
3 years ago
Read 2 more answers
A tank with some water in it begins to drain. The function v ( t ) = 46 − 3.5 t determines the volume of the water in the tank (
olchik [2.2K]

Answer with Explanation:

Part a)

The volume of water in the tank as a function of time is plotted in the below attached figure.

The vertical intercept of the graph is 46.

Part b)

The vertical intercept represents the volume of water that is initially present in the tank before draining begins.

Part c)

To find the time required to completely drain the tank we calculate the volume of the water in the tank to zero.

0=46-3.5t\\\\3.5=46\\\\\therefore t=\frac{46}{3.5}=13.143minutes

Part d)

The horizontal intercept represents the time it takes to empty the tank which as calculated above is 13.143 minutes.

7 0
4 years ago
Urgent please help!<br> What are non-ferrous metal and ferrous metal?
m_a_m_a [10]
In metallurgy, non-ferrous metals are metals or alloys that do not contain iron in appreciable amounts. Generally more costly than ferrous metals, non-ferrous metals are used because of desirable properties such as low weight, higher conductivity, non-magnetic property or resistance to corrosion
8 0
2 years ago
Other questions:
  • The army has cars and boats etc right
    7·1 answer
  • Marcelo es muy bueno resolviendo adivinanzas y acertijos. Por eso, estaba totalmente disgustado cuando se dio cuenta de que no e
    12·1 answer
  • Question Set 22.1 Using the count method, find the number of occurrences of the character 's' in the string 'mississippi'.2.2 In
    10·1 answer
  • A non-entrepreneurship, work-based, agricultural type of SAE, in which a student learns and gains skills in a paid or unpaid pos
    15·1 answer
  • After the load impedance has been transformed through the ideal transformer, its impedance is: + . Enter the real part in the fi
    8·1 answer
  • Pipe (2) is supported by a pin at bracket C and by tie rod (1). The structure supports a load P at pin B. Tie rod (1) has a diam
    15·1 answer
  • Which option identifies the step of the implementation phase represented in the following scenario?
    9·2 answers
  • Three capillary tubes with different radius (r1=1.0mm, r2=0.1mm, r3=0.01mm) are inserted into the same cup of water. The surface
    14·1 answer
  • Okay bro let’s go man yes yes
    9·2 answers
  • Workplace bullying can cause_____hazards.
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!