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
Gwar [14]
4 years ago
10

Write a program that reads three numbers and prints "increasing" if they are in increasing order, "decreasing" if they are in de

creasing order, and "neither" otherwise. here, "increasing" means "strictly increasing", with each value larger than its predecessor. the sequence 3 4 4 would not be considered increasing
Computers and Technology
1 answer:
Lemur [1.5K]4 years ago
7 0
You could assign values to variables and break it up into if else-if else statements.

<span>Pseudocode:</span>

if a < b and b < c:
    print("increasing")

else if a > b and b > c:
    print("decreasing")

else:
    print("neither")

Hope this helps.
You might be interested in
Write a method __repr__(self) that returns a string representing an AIPlayer object. This method will override/replace the __rep
STatiana [176]

Answer:

def __repr__(self):

   s = '' "

   for row in range(self.height):

       s += '|'

       for column in range(self.width):

           s += self.slots[row][column] + '|'  + '\n'  + (2*self.width +1)*'-'  + '\n' + ' '+str(column%10)

   return s

Explanation:

The __repr__(self) method in python's object-oriented programming is a magic method used to print an output that represent the object instance of a class.

8 0
3 years ago
Hola buenas tardes, mi problema es el siguiente, en Word quiero alinear los párrafos por separado, pero, así lo sombree una line
Rudik [331]


Usa el botón Tab :)

6 0
3 years ago
What is the difference between 1080p and 2k?
professor190 [17]
They have the same  vertical resolution. I can suggest you to watch the video in youtube .<span>https://www.youtube.com/watch?v=uluEEGBHyUE</span>
7 0
3 years ago
Write a method named addCommas that accepts a string representing a number and returns a new string with a comma at every third
pentagon [3]

Answer:

Locale unaware

'{:,}'.format(value) # For Python ≥2.7

f'{value:,}' # For Python ≥3.6

Locale aware

import locale

locale.setlocale(locale.LC_ALL, '') # Use '' for auto, or force e.g. to 'en_US.UTF-8'

'{:n}'.format(value) # For Python ≥2.7

f'{value:n}' # For Python ≥3.6

6 0
3 years ago
A drowsy cat spots a flowerpot that sails first up and then down past an open window. The pot is in view for a total of 0.50 sec
GaryK [48]

Answer:

2.342m

Explanation:

Given

Time = 0.5 s

Height of Window = 2m

Because the pot was in view for a total of 0.5 seconds, we can assume that it took the cat 0.25 seconds to go from the bottom of the window to the top

Using this equation of motion

S = ut - ½gt²

Where s = 2

u = initial velocity = ?

t = 0.25

g = 9.8

So, we have.

2 = u * 0.25 - ½ * 9.8 * 0.25²

2 = 0.25u - 0.30625

2 + 0.30625 = 0.25u

2.30625 = 0.25u

u = 2.30625/0.25

u = 9.225 m/s ------------ the speed at the bottom of the pot

Using

v² = u² + 2gs to calculate the height above the window

Where v = final velocity = 0

u = 9.225

g = 9.8

S = height above the window

So, we have

0² = 9.225² - 2 * 9.8 * s

0 = 85.100625 - 19.6s

-85.100625 = -19.6s

S = -85.100625/19.6

S = 4.342

If 4.342m is the height above the window and the window is 2m high

Then 4.342 - 2 is the distance above the window

4.342 - 2 = 2.342m

6 0
3 years ago
Other questions:
  • Paragraph: Read the following two e-mail messages. In three to five sentences, explain why E-mail B is the more appropriate work
    5·1 answer
  • What risks and safeguards are associated with wireless communication? what is “war driving” or “war flying”? are you comfortable
    14·1 answer
  • What are the reasons why is it necessary to evaluate online sources and content?
    6·1 answer
  • Write the definition of a function named timeOnHighway that receives three parameters, all of type double: mileEndingPoint , mil
    14·1 answer
  • Using a graphic organizer in the prewriting can do all of the following except what?
    9·1 answer
  • What is the purpose of the operating systems management function
    5·1 answer
  • Which would a student most likely do in a digital laboratory?
    13·2 answers
  • Unchecked exceptions require you surround the code that might throw such an exception with a try block or you must use a throws
    5·1 answer
  • Discuss briefly four types of websites and the criteria you will use to evaluate the content of a website
    8·1 answer
  • What is the output?
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!