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
Elza [17]
3 years ago
5

Write the definition of a method, dashedline, with one parameter, an int. if the parameter is negative or zero, the method does

nothing. 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:
Angelina_Jolie [31]3 years ago
7 0
# python 3.x
def dashedline(int n):
    if n > 0:
        print('-' * n)


If you wanted a different language, you should make sure to specify that in your question.
You might be interested in
How many passes will it take to find 30 using a binary search?
dimulka [17.4K]
Just wanna let you know I could be wrong but I think 4 passes
7 0
2 years ago
Which key must you press after you write into a cell?
fiasKO [112]
Hit the return key after you type in a cell
6 0
3 years ago
Know when the double, int, String, and char data types are best used. Example: I would store a social security number in a strin
lidiya [134]
A double is best used for numbers that are real, as in they have a decimal. Int is best used for numbers that are whole, as in no decimal. Strings are best used, as in the example you gave, when you have to represent a piece of information that isn’t strictly numbers
4 0
3 years ago
In order for a fault-block mountain to form, a ______ must take place along a fault line and one side must be ________.
Sav [38]
I think the correct answer from the choices listed above is the first option. In order for a fault-block mountain to form, a shift must take place along a fault line and one side must be elevated. Fault-block mountains form<span> when Earth's crust pushes material up and down near a </span>fault line<span>. Hope this answers the question.</span>
7 0
3 years ago
Kamal plans to offer new, more favorable contracts to business customers who are now receiving a discount and use wireless servi
raketka [301]

Solution :

'AND" operation is a logical operation and is used in logical connective combining two statements and in truth tables.

Using AND operation verifies whether the outcome P and Q is true only when both the P as well as Q are true.  If one of the P or Q is not true, then outcome result will be false.

In the context, Kamal wishes to offer a new and more favorable contracts to the business customers who use a wireless services and receive a discount.

Therefore, using the AND operation of the customers as :

Customer     Wireless     Discount     Outcome

   A                   N                   N             FALSE

   B                   Y                   N             FALSE

  C                   N                   Y              FALSE

   D                   Y                   Y             TRUE

   

8 0
3 years ago
Other questions:
  • Make the correct match.
    11·1 answer
  • What is a color that cannot be created by mixing other colors together?
    15·2 answers
  • Which ofthe following is the most correct statement about the interestsection of the indirect plan for persuasion?
    8·1 answer
  • Your textbook discussed a record store example where one user could perform a query to determine which recordings had a track le
    14·1 answer
  • What is the default font style of “Title” box in MS PowerPoint 2013?
    8·1 answer
  • State the functions of all the parts of the computer​
    14·1 answer
  • In a black box model are the customers told that they should be expecting to be haxked?
    13·1 answer
  • These days, a digital signature is just as legitimate and trusted as an old-fashioned John Hancock on paper.
    9·1 answer
  • Write a Java program that launches 1000 threads. Each thread adds 1 to a variable sum that initially is 0. You need to pass sum
    11·1 answer
  • How can you stretch or skew an object in paint
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!