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
WARRIOR [948]
3 years ago
8

Write the definition of a method dashedLine, with one parameter, an int. If the parameter is negative or zero, the method does n

othing. Otherwise it prints a complete line terminated by a newline to standard output consisting of dashes (hyphens) with the parameter's value determining the number of dashes. The method returns nothing.
Computers and Technology
1 answer:
ZanzabumX [31]3 years ago
5 0

Answer:

import java.util.Scanner;

public class DashLine {

public static void main(String[] args) {

// Declaring variables

int n;

/*

* Creating an Scanner class object which is used to get the inputs

* entered by the user

*/

Scanner sc = new Scanner(System.in);

// Getting the input entered by the user

System.out.print("Enter a number :");

n = sc.nextInt();

// calling the method by passing the user entered input as argument

dashedLine(n);

}

//This method will print the dashed line for number greater than zer

private static void dashedLine(int n) {

if (n > 0) {

for (int i = 1; i <= n; i++) {

System.out.print("-");

}

System.out.println();

}

}

}

Explanation:

You might be interested in
How can I get more views on my you tube channel "Braeden Eischen" without paying anything
ehidna [41]
I’m just post video and there
5 0
3 years ago
What happened if the offshore team members are not able to participate in the iterations demo due to timezone/infrastructure iss
UkoKoshka [18]

What happened if the offshore team members are not able to participate in the iterations demo due to timezone/infrastructure issues-(c) No Major issue. Since offshore lead and onsite members participate in the demo with the product owner, they can cascade the feedback back to the offshore members.

Explanation:

<u>No Major issue. Since offshore lead and onsite members participate in the demo with the product owner, they can cascade the feedback back to the offshore members.</u>

From the above statement it is clear that in case the offshore team members are not able to participate in the demo with the product owner due to timezone/infrastructure issues it want be a big issue since the onsite members of the team will participate in the demo and they can give all the valuable knowledge and feedback to the offshore members.As they all are part of the very same team

<u>Hence the option(3) is the correct option</u>

4 0
4 years ago
A bookstore owner wants to allow customers to pay for books using their mobile phones. Which version of iOS will support the boo
swat32
Answer is iOS 9 & Apple Pay
7 0
3 years ago
Read 2 more answers
Which of the following statement about device formatting is FALSE?
notsponge [240]

Answer:

The correct option is;

A) Device manufacturers store the initial file-system data structures in the device.

Explanation:

Before a storage device can be used for data storage, it is required to prepare the device for use and to make the device to become visible to the operating system by formatting of the device

New storage devices are not pre-formatted or come with a ready to use file system as there are different file systems specifically designed for particular  operating systems or operating environment.

Formatting creates partitions, makes the hard drive visible to the operating system and creates a file system that is new such that the storage device can be used for storing files.

4 0
3 years ago
Keyshia wants to add movement to her PowerPoint presentation. Which tab should she use to complete this task
jolli1 [7]

Answer: I belive transitions

Explanation:

6 0
3 years ago
Read 2 more answers
Other questions:
  • The use of quick styles is a great way to save _____.
    6·1 answer
  • What are 3 things that can make cyberbullying especially harmful​
    12·1 answer
  • If you want to adjust the width of a column manually, move your mouse over the _______ column boundary and click and drag until
    9·1 answer
  • In modern web design, color, font, font size, and style should be declared using:
    5·1 answer
  • In the forward chaining technique, used by the inference engine component of an expert system, the _____ condition is evaluated
    5·1 answer
  • Oliver is working for a team that uses object-oriented concepts to design software. Which language would they use to develop thi
    10·1 answer
  • When you type in text in an image in a photo-editing software, where is it created?
    8·1 answer
  • does anyone know the what the tuition fee is for UC Berkeley PER YEAR. My smooth brain can't find it ANYWHERE.
    10·2 answers
  • Guys please tell me which cable is this?
    12·2 answers
  • What would a good digital citizen do if he sees his classmate left her email account open on a school computer by mistake?
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!