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
xeze [42]
4 years ago
15

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

does nothing. otherwise it prints a complete line terminated by a new line character to standard output consisting of dashes (hyphens with the parameter 's value determining the number of dashes. the function returns nothing.
Computers and Technology
1 answer:
GalinKa [24]4 years ago
5 0
Static void DashedLine(int n){     if (n>1) Console.WriteLine(new String('-', n));}
You might be interested in
How do you create code on scratch?
lina2011 [118]
On scratch they feature a drag and drop form of coding to visualize it. You can create an account and drag and drop puzzle ties in the order. The first tile you’ll want to drag into the area is the “start program” tile and then you’ll need to connect tiles from there.

Hope this helped!
3 0
3 years ago
Read 2 more answers
A user has reported that their workstation is running slowly. You perform a reboot of their workstation and receive a S.M.A.R.T.
abruzzese [7]

The  actions that one need todo or perform FIRST is to backup the hard drive.

<h3>What causes a SMART error?</h3>

A composition of bad blocks can be a tool that can  lead to a SMART error, or when the drive of the system's temperature is known to have gotten too high as a result of poor ventilation or other environmental factors.

Note that The  actions that one need todo or perform FIRST is to backup the hard drive. because by doing so, one can be able to retrieve information back.

Hence the answer is correct.

Learn more about S.M.A.R.T. error from

brainly.com/question/26985946

#SPJ1

5 0
2 years ago
Ugh these are hard questions
SVEN [57.7K]
9 is B, and 10 is D I think ... brainliest pls
8 0
3 years ago
Write a java program for the following
Veseljchak [2.6K]

Answer:

import java.util.Scanner;

public class Main

{

public static void main(String[] args) {

 

 Scanner input = new Scanner(System.in);

 

 int classesHeld, classesAttended;

 double percentage;

 

 System.out.print("Enter number of classes held: ");

 classesHeld = input.nextInt();

 

 System.out.print("Enter number of classes attended: ");

 classesAttended = input.nextInt();

 

 percentage = (double) classesAttended / classesHeld;

 

 if(percentage < 0.75)

     System.out.println("You are not allowed to sit in exam");

 else

     System.out.println("You are allowed to sit in exam");

}

}

Explanation:

Import the Scanner to be able to get input from the user

Create a Scanner object to get input

Declare the variables

Ask the user to enter classesHeld and classesAttended

Calculate the percentage, divide the classesAttended by classesHeld. You also need to cast the one of the variable to double. Otherwise, the result would be an int

Check the percentage. If it is smaller than 0.75 (75% equals 0.75), print that the student is not allowed. Otherwise, print that the student is allowed

6 0
3 years ago
Your computer is crashing on a regular basis. Which of the following is an operation available to the user that should help rese
Gwar [14]
System restore application. Hopefully it helps.
6 0
4 years ago
Read 2 more answers
Other questions:
  • why do programs include keyboard shortcuts for certain actions? do you prefer the mouse or the keyboard/ why?
    7·1 answer
  • Which of the following payment types require you to pay upfront?
    9·1 answer
  • Today's Apple Mac computers run with the same I-Ternal hardware as the Windows based PC true or false
    5·1 answer
  • State reasons why new version of application packages are released often?​
    11·2 answers
  • Steps in the systems development life cycle​
    15·2 answers
  • hen a computer user stored data in computer memory, it required 1,024 bytes. How many KB does this represent?
    8·1 answer
  • News writers get story leads from____.
    8·1 answer
  • A) Write a program that asks the user for the amount of money they will take on holiday and convert this into the equivalent amo
    14·1 answer
  • 4. In Drag and Drop method of Excel , to copy the data , you need to press __________ key while dragging the cells.
    7·1 answer
  • DOES ANYONE KNOW COMPUTER SCIENCE?
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!