Question
This will be done using Python in Linux Mint. The program should include a comment block at the top with your name, the program number,
This will be done using Python in Linux Mint. The program should include a comment block at the top with your name, the program number, and the name of the course. (Make sure to have the file that does have the extension .py) How to run the file in Linux Mint? Open a command prompt (e.g. terminal) Make sure you are in the directory where your file is saved (e.g. type "cd ~/Desktop" if your file is on Desktop) Type: python3 program_name.py Have the user enter a numeric value? For that number, tell if:
a) The value entered is a whole number (hint: cast to an int) e.g. 4.5 is not a whole number or 3 is a whole number
b) The value is, or is not, a multiple of 9
c) The value is positive, negative, or zero
d) The value is, or is not, within the range of 10 to 99 inclusive
e) The value is, or is not, within the 1000s, meaning is it a four-digit number which starts with 1.
Then ask for a second value. Using both values, tell:
f) Which of the two values is the smallest, or if they are equal (e.g. first value is smaller or second value is smaller or the two values are equal)
g) If the second value is, or is not, a multiple of the first value h) If the first value is, or is not, a multiple of the second value Each of the points listed above should generate one output statement
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started