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
Lisa [10]
3 years ago
7

Write an algorithm which gets a number A, if it is even, prints even, and if it is odd prints odd.

Computers and Technology
1 answer:
juin [17]3 years ago
7 0

Answer:

The algorithm to find A is even or odd.

  1. input A.
  2. Check the remainder on diving by 2 by A%2.
  3. If remainder is 1 then A is odd Print(Odd).
  4. If remainder is 0 print(Even).

Explanation:

To check if the number is even or odd we use modulo  operator(%).Which gives the remainder on dividing.So if we do this A%2 it will give the remainder that will come out on dividing the value of A by 2.

So if the remainder comes out is 1 then the number is odd and if the remainder is 0 then the number is odd.

You might be interested in
The actual database of active directory shared resources is stored on one or more computers designated as:
Mila [183]

Solution:

It is done by Native Os X command line tool that can do this.

Active Directory, the data store contains database files and processes that store and manage directory information for users, services, and applications. A copy of the data store runs on each domain controller in the forest. The Active Directory data store is often referred to as the directory.

The ideal environment for the data store includes the following:

A domain controller running an operating system in the Windows Server 2003 family and containing hardware that meets the minimum hardware requirements of the edition of the operating system (Windows Server 2003, Standard Edition; Windows Server 2003, Enterprise Edition; or Windows Server 2003, Datacenter Edition)

For environments consisting of multiple domain controllers, the presence of a fully functioning Active Directory replication topology

For environments consisting of multiple domain controllers, the presence of a fully functioning File Replication Service (FRS) topology

A regular backup schedule

Regular monitoring of Active Directory, either through manual review of event logs or through an automated monitoring solution, such as Microsoft Operations Manager (MOM)

This is the required description describes the elements of the Active Directory data store, including its architecture, protocols, interfaces, logical structure, physical structure, processes and interactions, and network ports.


6 0
3 years ago
A(n ________ cpu has two processing paths, allowing it to process more than one instruction at a time.
Alik [6]
#1) A(n ________ cpu has two processing paths, allowing it to process more than one instruction at a time.
Answer: Multi-core. A multi-core processor is a single computing component with two or more independent actual processing units (called "cores"), which are units that read and execute program instructions. The instructions are ordinary CPU instructions, but the multiple cores can run multiple instructions at the same time, increasing overall speed for programs.
8 0
3 years ago
Read 2 more answers
Mightier than the waves of the sea is his love for you
Inessa05 [86]

cool but kinda creepy ngl

8 0
3 years ago
Flash drives plug into a(n) _
Alecsey [184]
A flash drive plugs into a USB Port
7 0
3 years ago
Read 2 more answers
A domain name points to a specific internet address known as a? A. Domain name B. User name C. URL D. IP address
hodyreva [135]
C, URL since the other options aren’t addresses at all
6 0
4 years ago
Other questions:
  • As you explore career options why is it important to take personal inventory is and assessments
    13·2 answers
  • The​ ________ is a​ c-shaped structure that curves around the pancreas and stomach
    9·1 answer
  • PLEASE HELP BRAINLIEST TO CORRECT ANSWER!!!
    14·1 answer
  • GUIs provide all of the following except _____.. a.command prompts. b.desktops. c.icons. d.menus
    5·2 answers
  • Please help.
    6·1 answer
  • Suppose a host has a 1-MB file that is to be sent to another host. The file takes 1 second of CPU time to compress 50%, or 2 sec
    12·1 answer
  • An example of hardware is a(n) _____.
    9·2 answers
  • Which of the following is true of a procedure? Check all that apply.
    10·2 answers
  • Modify the solution to PP 11.1 such that it catches and handles the exception if it is thrown. Handle the exception by printing
    5·1 answer
  • You want to read input from the user to know how many apples they would like
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!