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
insens350 [35]
3 years ago
13

Write the Python programs for the

Computers and Technology
1 answer:
ArbitrLikvidat [17]3 years ago
4 0

Answer:

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

if (num % 2) == 0:

print("{0} is Even number". format(num))

else:

print("{0} is Odd number". format(num))

You might be interested in
Write the SQL statements that define the relational schema (tables)for this database. Assume that person_id, play_id, birth_year
Sunny_sXe [5.5K]

Answer:

  • SQL statement that defines table for Actor

CREATE TABLE Actor(

person_id integer primary key,

name varchar2(40) not null,

birth_year integer check ((birth_year) <= 2019)

);

  • SQL statement that defines table for Play

CREATE TABLE Play(

play_id integer primary key,

title varchar2(60) not null,

author varchar2(60) not null,

year_written integer check ((year_written) <= 2019)

);

  • SQL statement that defines table for Role

CREATE TABLE Role (

person_id integer,

character_name varchar2(60) not null,

play_id integer,

constraint fk_person foreign key (person_id) references actor(person_id),

constraint fk_play foreign key (play_id) references play(play_id),

primary key (person_id, character_name, play_id)

);

Explanation:

Other information that were not added to the question are as below:

The following database contains information about three tables i.e. actors, plays, and roles they performed.

Actor (person_id, name, birth_year)

Play (play_id, title, author, year_written)

Role (person_id, character_name, play_id)

Where: Actor is a table of actors, their names, and the year they were born. Each actor has a unique person_id, which is a key.

Play is a table of plays, giving the title, author, and year written for each play. Each play has a unique play_id, which is a key.

Role records which actors have performed which roles (characters) in which plays.

Attributes person_id and play_id are foreign keys to Actor and Play respectively.

All three attributes make up the key since it is possible for a single actor to play more than one character in the same play

Further Explanation:

In SQL, in order to define relational schema (Tables) for a database, we use CREATE TABLE statement to create a new table in a database.  The column parameters specify the names of the columns of the table.  The datatype parameter specifies the type of data the column can hold (varchar, integer, date)

4 0
3 years ago
The Joint Photographic Experts Group developed the ___________ graphic format.
jolli1 [7]
1. <span>The Joint Photographic Experts Group developed the jpeg graphic format. 
2. </span><span>It is important to include the alt attribute of the tag because some people use text-only Web browsers. </span>
4 0
3 years ago
Read 2 more answers
Write a full class definition for a class named Counter, and containing the following members: A data member counter of type int
vfiekz [6]

// making the class

class Counter {

int counter;

int limit;

// Constructor

Counter(int a, int b){

counter = a;

limit = b;

}

// static function to increment

static increment(){

if(counter<limit)

nCounter+=1;

}

// Decrement function

void decrement(){

if(counter>0)

nCounter-=1;

}

int getValue(){

return counter;

}

static int nCounter;

int getNCounters(){

return nCounter;

}

};

// Initializa the static

int Counter::nCounter = 0;

4 0
3 years ago
How to build aeroplain pls tell me I want to go to amereeca
damaskus [11]

Answer:

lol i think it would be cheaper to but a ticket or drive there

8 0
3 years ago
Which of the following is NOT used to describe rhythm?<br> Beat<br> Pitch<br> Tempo<br> Meter
PtichkaEL [24]

Answer:

pitch

Explanation:

Rhythm is, by definition, a strong, regular, repeated pattern of movement or sound. This means that it's a pattern of one thing.

Out of beat, pitch, tempo, and meter, three of them have one thing in common when corresponding to rhythm: monotony. Monotony is the same thing, unchanged in sound and movement.

For example, drawing a straight line continuously.

Beat is a main accent or rhythmic unit in music or poetry.

Pitch is the degree of highness or lowness of a tone.

Tempo is the speed at which a passage of music is or should be played.

Meter is  the rhythm of a piece of poetry, determined by the number and length of feet in a line.

When you listen to music, a rap, or poetry, you can "feel the beat." This means you can pick out the main sound being accentuated, like the "boom-boom-boom" or a clapping track.

Tempo is how fast something goes. A slow song played at a ballet may be different than a rap song, which is fast. Tempo is the speed.

Meter is the rhythm, usually in poetry. It's like a beat and other patterns in the poem.

Pitch is the one that is different. It changes the tone. For example, a high note vs. a low note. That's pitch. When someone swallows helium and talks, their voice is now "high-pitched" because it has a higher-sound tone.

Rhythm does not change—it's a pattern of beats, tempos, and rhythms. Unlike pitch, pitch is musical. Rhythm is not—it's just the pattern.

4 0
2 years ago
Read 2 more answers
Other questions:
  • OSHA requires that employers pay for most required personal protective equipment (PPE), including: A. Hard hats B. Logging boots
    5·1 answer
  • When you are shopping online and finalizing your order, you usually fill in forms for your name, address, email, and payment met
    6·1 answer
  • Given the variables isfulltimestudent and age, write an expression that evaluates to true if age is less than 19 or isfulltimest
    12·1 answer
  • Which software is used to play, create, and modify audio and video files?
    7·2 answers
  • The ________ contains the central electronic components of the computer. select one:
    14·1 answer
  • Moderate changes to existing processes falls under the _________ analysis. Business Process Automation (BPA) Business Process Im
    5·1 answer
  • What is the term for the era created by the digital revolution?
    5·1 answer
  • The ____ class act as a switchboard between the view layer and the domain layer.
    14·1 answer
  • What are the steps for adding an action button to a slide? Choose the correct answers from the drop-down menus. 1. First, go to
    5·2 answers
  • Write a factorial method that takes in an integer as input, recursively computes its factorial using BigInteger and return a Big
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!