def input_values(): add description pass # replace this line with your logic def
Question:
def input_values():
"""add description"""
pass # replace this line with your logic
def output_line_one():
"""add description"""
pass # replace this line with your logic
def output_line_two():
"""add description"""
pass # replace this line with your logic
def output_line_three():
"""add description"""
pass # replace this line with your logic
def main():
pass # replace this line with your logic
. Create a Python program by providing an appropriate name for the file
Accept an integer from the user. Assume it's a 4 digit number. The 4 digit number input can be either positive or negative.
Use the available arithmetic operators to store the result in 4 variables. Name the variables as follows:
- ones
- tens
- hundreds
- thousands
Your final output must be in the following form:
The quotient when is divided by is .
The remainder when is divided by is .
Please test your script for multiple input values to ensure you are getting the correct results
Example execution
Input a number: 6803
using the appropriate arithmetic operators, the result is stored as follows:
ones = 3
tens = 0
hundreds = 8
thousands = 6
Final output
The quotient when 6803 is divided by 17 is 400.
The remainder when 6803 is divided by 17 is 3.
Vector Mechanics for Engineers Statics and Dynamics
ISBN: 978-0073212227
8th Edition
Authors: Ferdinand Beer, E. Russell Johnston, Jr., Elliot Eisenberg, William Clausen, David Mazurek, Phillip Cornwell