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
Sonbull [250]
3 years ago
6

Post a Python program that accepts at least two values as input, performs some computation and displays at least one value as th

e result. The computation must involve calling one of the predefined functions in the math library. Include comments in your program that describe what the program does. Also post a screen shot of executing your program on at least one test case.
Computers and Technology
1 answer:
Black_prince [1.1K]3 years ago
8 0

Answer:

In Python:

#The program calculates and prints the remainder when num1 is divided by num2 using the fmod function

import math

num1 = int(input("Input 1: "))

num2 = int(input("Input 2: "))

print(math.fmod(num1, num2))

Explanation:

This program begins with a comment which describes the program function

#The program calculates and prints the remainder when num1 is divided by num2 using the fmod function

This imports the math module

import math

The next lines get input for num1 and num2

<em>num1 = int(input("Input 1: "))</em>

<em>num2 = int(input("Input 2: "))</em>

This calculates and prints the remainder when num1 is divided by num2

print(math.fmod(num1, num2))

You might be interested in
I don't know what to do for these two questions
Rainbow [258]
我沒有看到問題?如果您可以在此問題上發布問題,那將非常有幫助!
6 0
3 years ago
A ____ is several programs simultaneously processing the same I/O stream.
Sonja [21]
Concurrent multiple program execution, opposite to pipeline execution where it needs to in a sequential or in order of execution. You can also say parallel process programming.
6 0
3 years ago
Read 2 more answers
Which of the following is not a type of bank?
andreyandreev [35.5K]
Where is the following banks that is listed?
3 0
3 years ago
Read 2 more answers
When you record a macro, you can assign it to run from a button or from the _____.
arsen [322]
Depends on what software you use and how you set it up. But yea it’s possible
3 0
4 years ago
Read 2 more answers
Which generation is characterized by conspicuous consumption?
yulyashka [42]

Answer:

The is the type of consumption is typically associated with the wealthy but can also apply to any economic class.

Explanation:

7 0
3 years ago
Other questions:
  • In a non-formatted/standard template, if the number 25 is converted to text format, the
    14·1 answer
  • _____emphasizes on proper breathing and the mind-body-spirit connections.​
    6·2 answers
  • Write a method named hopscotch that accepts an integer parameter for a number of "hops" and prints a hopscotch board of that man
    15·1 answer
  • The Analytics tracking code can collect which of the following? (select all answers that apply) (1)-Language the browser is set
    15·1 answer
  • 1. Define what grasslands are ?
    14·2 answers
  • 3.2 code practice question 2. Not in a rush.​
    15·1 answer
  • Spoderman memes<br> im scared-
    15·2 answers
  • Select the correct text in the passage.
    15·1 answer
  • A classic game, Wario Land, has an invincible main character who reacts to the environment in order to solve puzzles. So, for ex
    11·1 answer
  • what technique, in which multiple phones take turns sharing a channel, does the global system for mobile communications (gsm) us
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!