Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Instructions You will be given three integers: , and (read in for you). Then you will be given two boolean values that tell you which

Instructions

You will be given three integers: , and (read in for you). Then you will be given two boolean values that tell you which way the numbers are going - if the numbers are in increasing order or in decreasing order, respectively.

 

Details

Input

  • The program reads in:

    • a sequence of three integers: , and

    • boolean isIncreasing: set to True if the sequence of integers is increasing, i.e. (note, we are reading in either 0 for False or 1 for True)

    • boolean isDecreasing: set to true if the sequence of integers is decreasing, i.e. >>

Processing

  • Based on the boolean values read in determine if the sequence of integers is increasing, decreasing or neither.

Output

  • The original order is output for you.
  • If the sequence of integers is increasing, output The numbers are increasing "The numbers are strictly increasing."
  • If they are decreasing, output The numbers are decreasing "The numbers are strictly decreasing."
  • Otherwise, output No obvious order "There is no strict order."

Sample input/output:

Input Output

1 2 4

1 2 4

The numbers are strictly increasing.

5

3

1

5 3 1

The numbers are strictly decreasing.

13 7 24

13 7 24

There is no strict order.

image text in transcribed

using python

I Exit Full Screen pod2.py New * BULLITUN. :: 6 value = int(input) 10 # PLEASE START YOUR WORK HERE # 11 EEE===== 12 14 #Calculate the number of tens needed 15 tens = 16 17 #Calculate the number of fiver's needed 18 fives = 1, 19 20 #Calculate the number of toonies needed 21 toonies = 2 22 23 24 #Calculate the number of loonies needed Loonies = 0 25 26 27 # PLEASE END YOUR WORK HERE 28 #======= # 29 30 print( tens, "$10 bills") 31 print( fives, "$5 bills") 32 print( toonies, "toonies") 33 print loonies, "loonies") 34

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

More Books

Students also viewed these Databases questions

Question

=+j Understand different types of regions in the world.

Answered: 1 week ago