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
alexandr402 [8]
2 years ago
10

Write a python program to accept a number and check whether it is divisible by 4 or not​

Computers and Technology
1 answer:
Alenkasestr [34]2 years ago
5 0

Answer:

number = int(input("Enter number: "))

if (number % 4):

 print("{} is not divisible by 4".format(number))

else:

 print("{} is divisible by 4".format(number))

Explanation:

If the %4 operation returns a non-zero number, there is a remainder and thus the number is not divisable by 4.

You might be interested in
Rishilaugh I would like to change my username
allsm [11]

Answer: just text them through their help thing or settings.

Explanation:

3 0
3 years ago
Read 2 more answers
Which program is commonly used to verify a new piece of hardware?
NeX [460]
<span>In the current software market, the most commonly used desktop operating systems fall into three groups: Microsoft Windows, Apple Mac OS, and Linux. Before upgrading the operating system, check the minimum hardware requirements of the new OS to ensure that it can be installed successfully on the computer. </span>
6 0
3 years ago
Write code to print the location of any alphabetic character in the 2-character string passCode. Each alphabetic character detec
Mars2501 [29]

Answer:

for (int i=0; i<passCode.length(); i++) {

           if ((passCode.charAt(i) >= 65 && passCode.charAt(i) <= 90) || (passCode.charAt(i) >= 97 && passCode.charAt(i) <= 122)) {

               System.out.println("Alphabetic at " + i);

           }

}

Explanation:

The rest of the code should be as above.

In order to check if the character is alphabetic or not, we need to use ASCII table. Characters are represented as integers in the ASCII table. For example "a" equals 97, "A" equals 65.

Then all we need to is to check if the character value in ASCII is in alphabetic ranges. If it is, print the index of the character.

5 0
3 years ago
The ____________ is the part of the microprocessor that performs arithmetic operations, such as addition and subtraction.
navik [9.2K]

Answer:

ALU

Explanation:

Arithmetic Logic Unit (ALU) is the part of the microprocessor that performs arithmetic operations, such as addition, subtraction, AND, OR, NOT, XOR etc. ALU is also used for comparison of input numbers.

<u>HOW IT WORKS:</u>

When the code is compiled, the code is converted first to assembly language and then assembly language is converted to machine code.

In Machine language, each arithmetic or logic operation has a specific code known as OPCODE. This opcode tells ALU which operation to perform on the inputs.

6 0
3 years ago
How to hook your bluetooth to your computer?
natali 33 [55]
Your computer needs to have a bluetooth interface, built-in or in the form of a USB dongle. Then you need to go into a process of discovering, connecting, pairing and bonding.

This means that typically your BT device starts emitting its presence (this is called advertising), and in your BT manager software you pick this up and pair with the device. Sometimes without a "secret", sometimes by entering a passcode, depending on the device.
3 0
3 years ago
Other questions:
  • The system administrator in your office quits unexpectedly in the middle of the day. It's quickly apparent that he changed the s
    10·1 answer
  • Where could identity theft access your personal information?
    12·2 answers
  • WILL UPVOTE ALL plz
    13·1 answer
  • What are the three fundamental principals of mnemonics? <br><br>HELP FASTTT!
    15·1 answer
  • Write pseudocode to represent the logic of a program that allows a user to enter three values then outputs the product of the th
    8·1 answer
  • Hi need help on this <br> what is cyberspace
    14·1 answer
  • What is the output?<br> &gt;&gt;&gt; password = "sdf#_356"<br> &gt;&gt;&gt; password.isalnum()
    8·2 answers
  • What facilitates the automation and management of business processes and controls the movement of work through the business proc
    9·1 answer
  • 1. Open command prompt
    5·1 answer
  • How has the internet improved business communication worldwide
    11·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!