create the integerarraymath class's integer division method(see the below code) the method: if the result of the division is an integer then print out a message indicating the result of the division such as 8/4 is 2.

Answers

Answer 1

We have created a method called integer_division within the integerarraymath class that performs integer division and prints a message if the result is an integer. The method can be used to perform integer division and get a message indicating the result of the division.

To create the integerarraymath class's integer division method, we can start by defining the method within the class. This can be done as follows:

class integerarraymath:
   def integer_division(self, num1, num2):
       result = num1 // num2
       if result == int(result):
           print(f"{num1}/{num2} is {int(result)}")

In this code, we define a method called integer_division that takes two parameters, num1 and num2. The method then performs integer division using the // operator and assigns the result to the variable result. We then check if the result is equal to an integer using the int() function and comparing it to the original result. If it is, we print a message indicating the result of the division using f-strings.

We can then test this method by creating an instance of the integerarraymath class and calling the integer_division method with some values:

iam = integerarraymath()
iam.integer_division(8, 4)

This would output the message "8/4 is 2" since the result of the division is an integer.

Learn more on integer arrays here:

https://brainly.com/question/15048840

#SPJ11


Related Questions

Whats the difference between Input and Output? Give and example of an example on a M:B​

Answers

Answer:

Entrar en algún lugar no es como irse de algún lugar, o qué tipo de pregunta significa para mi acción

Reading a news release about a product is an example of
research.

Answers

Answer:

Yes, it is true, because it informs you

Explanation:

Please help!!
The following are two different images that are encoded using the same algorithm. The images are each in a 5 by 5 grid of pixels where each pixel is black, white, red, green or blue.

The image on the left gets encoded and compressed down to 21 digits while the image on the right gets compressed down to 25 digits. Although the same algorithm was used to encode and compress these images, why are the end results a different length?


The algorithm was probably used improperly in the image on the right, causing it to be a longer length than it should have been.

Because this is a lossy compression, sometimes information is lost during the compression.

The amount of size reduction from compression depends on the amount of redundancy in the original data.

The image on the right uses more colored squares and therefore requires more digits to represent the pixels.

Answers

Answer: The amount of size reduction from compression depends on the amount of redundancy in the original data.

The reason why the end results have a different length is because: C. The amount of size reduction from compression depends on the amount of redundancy in the original data.

What is a lossy compression?

A lossy compression is also referred to as irreversible compression and it can be defined as a type of data encoding (data compression algorithm) in which the data in a file such as an image, is removed by using inexact approximations, in order to reduce the amount of size of a file after decompression.

Since the same algorithm was used to encode and compress these images, the reason why the resulting images have a different length is simply because the amount of size reduction from compression depends on the amount of redundancy in the original image file (data).

Read more on lossy compression here: https://brainly.com/question/17542014

what have very strong chemical bonds and cannot be reshaped when heated.​

Answers

Answer:

Thermosets

Explanation:

Which letter shows the ball when it has the maximum kinetic energy

Answers

Answer:

D.

Explanation:

Kinetic energy can be defined as an energy possessed by an object or body due to its motion.

Mathematically, kinetic energy is given by the formula;

[tex] K.E = \frac{1}{2}MV^{2}[/tex]

Where;

K.E represents kinetic energy measured in Joules. M represents mass measured in kilograms. V represents velocity measured in metres per seconds square.

Generally, when the final velocity at which a physical object moves is equal to zero (0), then it possess maximum kinetic energy.

Hence, the letter which shows the ball when it has the maximum kinetic energy in the graph attached is D.

How computer networking improve communication. ​

Answers

Answer:

Explanation:

How do computer networks communicate?

Networking computers can also help you improve communication, so that:

staff, suppliers and customers can share information and get in touch more easily.

your business can become more efficient - eg networked access to a common database can avoid the same data being keyed multiple times, saving time and preventing errors.

How do “right to work” states impact workers? (Select all that apply.) They have strengthened unions. They have given unionized workers more protections. They have made it possible to fire workers for any reason or no reason, so long as they are not fired for federally prohibited reasons. They have increased dues-paying union membership by as much as two-thirds. They have banned union-security agreements.

Answers

Answer:

"Right-to-work" states impact workers through;

They have banned union-security agreements

Explanation:

"Right-to-work-laws" are state laws that ban union security agreements that allows the trade or labor union to demand employees of an establishment to join the trade or labor union including the obligation of the employer to collect union dues on the union's behalf to reduce the effect of the free-rider problem as the benefit of union negotiation benefits non-union members who are also employees

The "right-to-work laws" prohibits agreements between employers of labor and employees which are members of the unions from stipulating the requirement that the cost of union representation is to be payed for by the workers

PLS HELP ILL GIVE BRAINLY) enter the answer) desktop publishing software enables users to create products for print or __________ distribution

Answers

Answer:

Electronic

Explanation:

To keep your computer working efficiently, it is a good idea to _____ unnecessary files. delete defragment save archive

Answers

Hey the answer to this is delete or remove. because it is a good idea to remove old files that your not using.

Hope this helps

-scav

Which language gives instructions on how text should appear on a web page?
__Blank__ language gives instruction on how text should appear on a web page.

Answers

Answer:

HTML

HTML stands for HyperText Markup Language, so HTML gives you a way to “mark up” your text with tags that tell the browser how your text is structured.

Answer:

Markup language

Explanation:

what is the meaning of HML​

Answers

Answer:

Explanation:

Hit my line

Sam works in a real estate office. An offer comes in on a house but the homeowners are on vacation. He needs the homeowners to sign a document to accept the offer. What should Sam do?

Answers

Answer:

Sam should send a digital document and request a signature. The could be fax or even an image printed out, if neither is possible get in contact with eh owner and his lawyer for more help.

Explanation:

Answer:

Sam should call the homeowners’ cell phone to inform them of the offer and fax a copy of the document using the office fax machine. The homeowner should sign the document and fax it back. Sam may also conduct an Internet search to find the fax machine closest to the client.

Explanation:

got it right on edge

Select the correct answer.
What model defines data structures and expands software architecture and components?
OA.
architectural design model
OB.
data design model
O c.
interface design model
D.
component-level design model
Reset
Next

Answers

Answer: data design model

Explanation:

the ratio of boys and girls is 4:5 calculate the number of boys if the are 1080 learners in schools​

Answers

Explanation:

The ratio of Boys =  4x

The ratio of  Girls =  5x

The Number of Boys in the School = 4x + 5x = 1080

                                                          =         9x = 1080

                                                          =           x  = 1080/9

                                                          =           x  = 120

The ratio of Boys = 4x  = 4 x 120 = 480

The ratio of  Girls =  5x = 5 x 120 = 600

Answer :-   The ratio of Boys =480

                 

What is the result of the following code fragment?
BigInteger a = new BigInteger ("10");
BigInteger b = new BigInteger ("25");
a.multiply(b);
a.add(b);
System.out.println(a);


A. 10
B. 35
C. 250
D. 275

Answers

Answer:

D

Explanation:

I don't know the language, but it is clear what is going on.

It looks like you are defining a value for a in both commands.

a.multiply(b); looks like you take the value in a (which is 10) multiply it by 25 and put the result back in a. So so far we have 10 * 25 = 250

Note the next command

a.add(b)

looks like you take the current value in a(which is now 250)

and put the value of b (which has not been changed. It is still 25) and put that in a (which is 250).

The result is 250 + 25 = 275

The answer is D. Since I only understand the logic, if this answer is wrong, I wish you'd leave a note.

what can accommodate most file formats? btw there are no answer choices

Answers

Answer:.doc and .docx - Microsoft Word file.

.odt - OpenOffice Writer document file.

.pdf - PDF file.

.rtf - Rich Text Format.

.tex - A LaTeX document file.

.txt - Plain text file.

.wpd - WordPerfect documen

Explanation:

Which of the following is an example of a prediction:

Answers

Answer:

You need to include the examples so we can answer :)

Explanation:

Pls help I’m not trying to fail this

Answers

Answer:

B makes the most sense to me

Explanation:

Which activity is performed during high-level design in the V-model?
A. gathering user requirements
B. understanding system design
C. understanding component interaction
D. evaluate individual components
E. design acceptance test cases

Answers

Answer:

B or E don't sure which one

what are the two types of commennts of java​

Answers

Answer:

Do you mean components??

Explanation:

If yes then then,

The components are

1. The java Virtual machine.

2.The java application programming interface

Help me, I'll mark brainiest

Answers

Answer:

i believe the answers that you are looking for are c and c

Explanation:

again im not 100% sure that is right but i hope they are!

How many decimals should we keep in electrical calculations?

Answers

Answer:

2 I think

Explanation:

What is the best way to beat someone on starve.io? with a lava sword, or a pirate sword.

Answers

Answer:

Lava sword all the way

Explanation:

fo sho

HELLLP PLEASEEEEEEEEE

Answers

Answer:

torque

a twisting or turning force.

Hope it will help :)

Convert 1100 1001 to a decimal number.
Need help

Answers

Answer:

-28 and 1001 1010 = -26. Got to love. binary

Mediante el contacto de las ruedas dentadas un engranaje transmite un movimiento a. Rectilíneo b. Circular c. Ondulatorio

Answers

Answer:

La respuesta es b: circular

Explanation:

Las ruedas dentadas tienen dientes que rodean a todo el perímetro de la rueda , esto logra que las ruedas dentadas entren en contacto entre ellas sin causar fricción,el movimiento que realizan es circular.

characteristics of the printer​

Answers

Important printer characteristics include resolution, speed, color, and cache memory.

Explain• Explain the Inputs and tools and techniques for determine budget with an example of London eye project and burj khalifa

Answers

Answer:

Cost baseline

Project funding requirements

Project resources

Updated project documents

Explanation:

London Eye project and Burj Khalifa are two of finest projects that have been successful in the world. The main reason for their success was well defined planning and accurate budgeting. The input and tools for budgeting are formulation of resource requirements. These resources are financial and human capital which is required to complete the project. The project resources allocation is a major point of concern. Inappropriately allocated resources progress towards failure of project.

Write a statement to declare a variable x with data type int and initialise with the value 10​

Answers

Answer:

int x = 10;

Explanation:

This would work in many languages (C/C++/C#/Java).

Larry has created a web page using HTML 4.01. He hasn’t included the declaration in the file. When he opens the page in a browser, Larry sees a page load error. Why does Larry need to use the declaration in an HTML file?
A.
to define the HTML version in which the page is written
B.
to define the web language in which the page is written
C.
to tell the browser what the content is
D.
to check whether the code is error-free

Answers

Answer:

To define the html version in which the page is written.

Other Questions
What does the author of "Soda's a problem but... think about the argument that "people are helpless in the face of sugar"? pls help asap i will give branilest Shauna and Danielle decided to liquidate their jointly owned corporation, Woodward Fashions Inc. (WFI). After liquidating its remaining inventory and paying off its remaining liabilities, WFI had the following tax accounting balance sheet:FMVAdjusted BasisAppreciationCash$200,000$200,000Building50,00010,00040,000Land150,00090,00060,000Total$400,000$300,000$100,000Under the terms of the agreement, Shauna will receive the $200,000 cash in exchange for her 50 percent interest in WFI. Shauna's tax basis in her WFI stock is $50,000. Danielle will receive the building and land in exchange for her 50 percent interest in WFI. Danielle's tax basis in her WFI stock is $100,000. Assume for purposes of this problem that the cash available to distribute to the shareholders has been reduced by any tax paid by the corporation on gain recognized as a result of the liquidation. (Leave no answer blank. Enter zero if applicable. Negative amounts should be indicated by a minus sign.)10.value:1.00 pointsRequired informationa. What amount of gain or loss does WFI recognize in the complete liquidation?ReferenceseBook & ResourcesProblemDifficulty: 2 MediumLearning Objective: 19-05 Calculate the tax consequences that apply to the parties to a complete liquidation of a corporation.Check my work11.value:1.00 pointsRequired informationb. What amount of gain or loss does Shauna recognize in the complete liquidation?ReferenceseBook & ResourcesProblemDifficulty: 2 MediumLearning Objective: 19-05 Calculate the tax consequences that apply to the parties to a complete liquidation of a corporation.Check my work12.value:1.00 pointsRequired informationc. What amount of gain or loss does Danielle recognize in the complete liquidation?ReferenceseBook & ResourcesProblemDifficulty: 2 MediumLearning Objective: 19-05 Calculate the tax consequences that apply to the parties to a complete liquidation of a corporation.Check my work13.value:1.00 pointsRequired informationd. What is Danielles tax basis in the building and land after the complete liquidation? Which of the following is an advantage angiosperms and gymnosperms have over mosses?1. they are seed producing so can populate more areas2. they can photosynthesize3. they can use oxygen4. they do not need water The track team sold 40 t-shirts. Short sleeve t-shirts sold for $9.90 and long sleevet-shirts sold for $12.75. In all, $421.65 was taken in.How many short sleeve t-shirts were sold? How does a human arm compare with an iguana's? I could use some help with question please. Thank you. Drag the tiles to the correct boxes to complete the pairs.Match each rhetorical device to its definition.logosethospathosan appeal to the readers emotionsan appeal based on facts and logican appeal based on the credibility of the speaker A Computer Programmer who wants to be surrounded by a large number of like-minded coworkers should take a job with one of the nations largestretail sellers of computers and related accessories.in-store computer repair and service companies.developers of computer operating systems.makers of computer networking equipment. whats Tommy's favorite color is his dads is green and moms is yellow A. lime greenB. yellow snowC. redD. naruto To choose the 8 songs, the director writes the name of each of the 12 songs on a slip of paper, puts them in a hat, and draws 8 slips. What is the probability that the set s/he chooses contains two of the four songs that have soprano solos? Once again, Im wasting points to dazzle you all with my hand drawn cardboard cutouts of hanako and tsukasa. If you dont know who they are then just admire the art and pretend Im picasso. Bring up the mistakes and Ill laugh along and criticize my art with you Which sentence about flexible spending accounts (FSAs) is true?O A. The funds in the account remain for as long as you're employed by the company sponsoring the FSA.O B. Contributions are taxed when funds are withdrawn to use on qualifled expenses. C. Contributions are made with pretax dollars. D. There Is no contribution limit. Hurry Im being timed !!! I need this to be correct plzzzz What is the fundamental problem in a society and the reason we study economics?a) scarcityb) lack of capital18c) the factors of productiond) labor shortage Help with this plzThanks. :) Visualizing yourself crossing the finish line and how'd you'd feel isa method of blocking unwanted feelingsa way to cope with stressutilizing positive valuesO a method of influence on others what happened to thebeak depth of finches born in 1978 compared to those born in 1976? Explain why youthink this occurred. can you please help me (FASHION AND INTERIOR DESIGN)Now that you have learned the basic kinds of equipment that you will need, it is time to go shopping (virtually, anyway). Go online and find 5-7 important items that you will need. Make sure that you have a price for each item, and if you are going to drop some serious cash on a high-quality pair of dressmaking shears, be prepared to explain why you absolutely must have the pricy ones. When you have selected your items, create an inventory complete with images. Next to the image, write the price, what you will do with the tool, and why you selected this model.When you have finished your inventory, write a paragraph explaining how you will store and care for your equipment. You want to be able to have it accessible, but it is important to show that you know how to protect your investment by making sure that your materials last as long as possible.