Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PYTHON 3.6 Question 13 Part A. (1e point:s) Write a function named getInt). The function getInt) takes two parameters: i an int, minInt ii an

PYTHON 3.6

image text in transcribed

Question 13 Part A. (1e point:s) Write a function named getInt). The function getInt) takes two parameters: i an int, minInt ii an int, maxInt The function getInt) should prompt the user for an integer that is no less than minInt and no greater than maxInt. You may assume that the user responds with an integer in this range. (Hint: user input is always a string.) getInt) should return the number provided by the user. For example, if getInt) is the called with parameters 5 and 7, the following would be correct input and output: >Please give me a number no less than -5 and no greater than 7 Question 13 Part B (10 points) Write code that calls getNumber(), using a negative value for minInt and a positive value for maxInt. Your code should than print out the returned integer and whether it is positive, negative or zero

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

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students also viewed these Databases questions

Question

How does complete writing improve ease of reading?

Answered: 1 week ago

Question

What are the purposes of collection messages? (Objective 5)

Answered: 1 week ago