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
never [62]
3 years ago
7

In python how do you write for prime factors

Computers and Technology
1 answer:
olasank [31]3 years ago
4 0

Answer:

The while loop is used and the factors of the integer are computed by using the modulus operator and checking if the remainder of the number divided by i is 0. 3. Then the factors of the integer are then again checked if the factor is prime or not.

Explanation:

google

You might be interested in
A job posting is the best way to find out what _____ are required for a position.A.aptitudes B.hard skills C.soft skills D.dress
GREYUIT [131]
C. hard skills as they are well defined and thus can be listed down on something like a resume or cv
7 0
3 years ago
Read 2 more answers
What is key for evaluating internal controls such as human resources, logistics, information technology, risk, legal, marketing
marishachu [46]

CoBIT Information Systems Audit and Control Association is key for evaluating internal controls such as human resources, logistics, information technology, risk, legal, marketing and sales, operations, financial functions, procurement, and reporting

A. CoBIT Information Systems Audit and Control Association

<u>Explanation:</u>

The key factor for evaluating the internal controls is CoBIT information technology ion are the best reporting tools. Where an organization can generate reports and do the analysis and take the right decision.

Since it has various departments t inside the organization some time performance of the department depends on another department.

The SWOT analysis can be achieved and management can give some input process to improve the department or individual performance in the departments the organization also need an audit log trail to improve internals in the organization.

5 0
3 years ago
2. Use inheritance to create a hierarchy of Exception classes -- EndOfSentenceException, PunctuationException, and CommaExceptio
Lelechka [254]

Answer:

See explaination

Explanation:

EndOfSentenceException.java

//Create a class EndOfSentenceException that

//extends the Exception class.

class EndOfSentenceException extends Exception

{

//Construtor.

EndOfSentenceException(String str)

{

System.out.println(str);

}

}

CommaException.java

//Create a class CommaException that extends the class

//EndOfSentenceException.

class CommaException extends EndOfSentenceException

{

//Define the constructor of CommaException.

public CommaException(String str)

{

super(str);

}

}

PunctuationException.java

//Create a class PunctuationException that extends the class

//EndOfSentenceException.

class PunctuationException extends EndOfSentenceException

{

//Constructor.

public PunctuationException(String str)

{

super(str);

}

}

Driver.java

//Include the header file.

import java.util.Scanner;

//Define the class Driver to check the sentence.

public class Driver {

//Define the function to check the sentence exceptions.

public String checkSentence(String str)

throws EndOfSentenceException

{

//Check the sentence ends with full stop,

//exclamation mark

//and question mark.

if(!(str.endsWith(".")) && !(str.endsWith("!"))

&& !(str.endsWith("?")))

{

//Check the sentence is ending with comma.

if(str.endsWith(","))

{

//Throw the CommaException.

throw new CommaException("You can't "

+ "end a sentence in a comma.");

}

//Otherwise.

else

{

//Throw PunctuationException.

throw new PunctuationException("The sentence "

+ "does not end correctly.");

}

}

//If the above conditions fails then

//return this message to the main function.

return "The sentence ends correctly.";

}

//Define the main function.

public static void main(String[] args)

{

//Create an object of Scanner

Scanner object = new Scanner(System.in);

//Prompt the user to enter the sentence.

System.out.println("Enter the sentence:");

String sentence=object.nextLine();

//Begin the try block.

try {

//Call the Driver's check function.

System.out.println(new

Driver().checkSentence(sentence));

}

//The catch block to catch the exception.

catch (EndOfSentenceException e)

{}

}

}

5 0
3 years ago
Joshua takes ownership of all his tasks. Which quality is he demonstrating?
Oxana [17]
Were these the choices?
A. Honesty B. Responsibility C. Approachability D. Confidence E. Resourcefulness 

If so, it would be Letter B - responsibility. He's taking responsibility for the tasks. He's taking the initiative to do the tasks rather than waiting passively for someone to do it.
8 0
3 years ago
Read 2 more answers
The bullet points above describe _____.
diamong [38]

Answer:

B

Explanation:

4 0
2 years ago
Other questions:
  • There are many differenttypes of models, but an individual DSS can consist of onlyone.
    15·1 answer
  • 20 Points!! Please hurry!!
    9·1 answer
  • Although you can use a dialog box to indent paragraphs, word provides a quicker way through the ____.
    7·1 answer
  • A keyboard is a/an _____. interconnector port packet NAS
    7·1 answer
  • This is not based on homework but I have a question. I am currently using a gtx 960 with a 6 core amd processor. Does anyone kno
    6·1 answer
  • 16. Which of the following wire gage sizes is the thickest? A. 14 B. 8 C. 0 D. -33
    14·1 answer
  • How do you freeze the total cell so that it doesn't change when copied?
    6·1 answer
  • Window frame will expand to fill the entire desktop when you
    12·1 answer
  • -) An attribute is a(n)?
    5·1 answer
  • 4.3 Code Practice: Question 1
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!