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
belka [17]
2 years ago
15

Create a Python program as described below and save it in a file named bool. You should use IDLE or similar environment to creat

e your program. First develop a conceptual model and document it using either pseudo code or a flowchart to meet the requirements of the program described as follows.

Computers and Technology
1 answer:
Eva8 [605]2 years ago
8 0

PYTHON CODE

# function to compare a and b
def compare(a,b):

    # if a is greater than b , return 1
    if a > b:
        return 1

    # if a and b are equal, return 0
    elif a == b:
        return 0

    # if a less than b , return -1
    elif a < b :
        return -1


# testing
if __name__=="__main__":

    # calling the compare function with a and b
    print('compare(5,2) %d'%compare(5,2))
    print('compare(2,5) %d'%compare(2,5))
    print('compare(3,3) %d'%compare(3,3))

    # getting values for a and b
    a=int(input("Enter the value for a: "))
    b=int(input("Enter the value for b: "))

    print('compare(%d,%d) %d'%(a,b,compare(a,b)))

(see attachment for output)

You might be interested in
TQ Sustainability &amp; Technology
harkovskaia [24]

A way to make the metro system more sustainable is to use machine learning so as to optimize the frequency of train routes  using passenger load.

<h3>What is a sustainable transport system?</h3>

This sustainable transport system is known to be a kind of system that aids the basic access and growth needs of the society to be met rightly and safely.

This also should be meant in a way that is consistent with human and ecosystem health, and boast equity in all successive generations.

Other methods are the use of Cooling System to lower temperature and non waste of Energy and also lower the Noise Levels.

learn more about Sustainability from

brainly.com/question/25032305

4 0
2 years ago
Select the items that can be measured.
Slav-nsk [51]

Answer:

distance

capacity

smoothness

thickness

4 0
3 years ago
Read 2 more answers
What are some methods the researcher can use to avoid the impact of their recency bias?
dusya [7]

The methods that researcher do use to avoid the impact of their recency bias is that:

  • Option C. Record each interview that they conduct.
  • Option D. Take detailed notes during interviews.

<h3>What are some ways to lower the influence of bias when conducting user research?</h3>

The ways to lower the influence of bias when conducting user research include:

  • A person need to ask  open-ended questions. So not push people towards a given outcome.
  • Ask users to tell what is important to them.
  • Set your  objectively weight based on your findings.

Therefore, The methods that researcher do use to avoid the impact of their recency bias is that:

  • Option C. Record each interview that they conduct.
  • Option D. Take detailed notes during interviews.

Learn more about recency bias from

brainly.com/question/24491228

#SPJ4

See full question below

Consider the following scenario:

Imagine that a UX designer creates an app for saving, organizing, and streaming podcasts. To learn about user experiences with their product, the designer conducts interviews with a select group of target users: podcast enthusiasts. The researcher interviews 10 respondents and remembers the end of the last interview most clearly. The researcher uses this final interview to guide their thinking.

What are some methods the researcher can use to avoid the impact of their recency bias? Select all that apply.

A. Hire an outside research team to conduct the interviews

B. Survey large groups of people to supplement the interviews

C. Record each interview that they conduct

D. Take detailed notes during interviews

6 0
1 year ago
Describe psychographic differences among the past five generations of Americans that you learned about in this course. What type
Vlada [557]

Answer:

1

Explanation:

8 0
3 years ago
Read 2 more answers
To create a window, which of thefollowing classes has to be extended?ContainerJFrameJButtonJTextField
irga5000 [103]

Answer:

J frame class has to be extended for the creation of a window

Explanation:

J frame needs to be extended to create a window, this is because this class in windows has a title, support buttons components, a border or we can say it has decorations for windows.  

The rest of the classes like J button and J text fields lie within the J frame and the Container class is a super class and provides only outlines to J Frame class.

3 0
2 years ago
Other questions:
  • True or false: a cover letter accompanies a resume to showcase a job-seeker’s personal life
    6·2 answers
  • True / False<br> 1. A byte is a standardized unit of measure that is always 8-bits.
    7·1 answer
  • What do you call an unsolicited email message that masquerades as coming from a legitimate sender, and attempts to get you to di
    11·1 answer
  • How can I do a project with a model on the steam machine?
    14·1 answer
  • Write a program name Dollars that calculates and displays the conversion of an entered number of dollars into currency denominat
    11·1 answer
  • This project involves writing a program that encodes and decodes messages. The program should prompt the user to select whether
    15·1 answer
  • Write a function that reads from a file the name and the weight of each person in pounds and calculates the equivalent weight in
    12·1 answer
  • National ISPs usually offer fewer services and have a smaller technical support staff than regional ISPs.
    13·1 answer
  • The Self-Quiz gives you an opportunity to self-assess your knowledge of what you have learned so far.
    13·1 answer
  • Why is my internet slow even though the speed test says it is fast
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!