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_2

Step: 3

blur-text-image_3

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

Informix Database Administrators Survival Guide

Authors: Joe Lumbley

1st Edition

0131243144, 978-0131243149

More Books

Students also viewed these Databases questions

Question

What do you need to know about your students to motivate them?

Answered: 1 week ago

Question

gpt 3 9 9 .

Answered: 1 week ago