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
Sloan [31]
3 years ago
12

2.4 Code Practice: Question 2 Write a program that accepts a number as input, and prints just the decimal portion. Example: Ente

r a number: 15.789 Output: 0.789 Hint: Make sure to account for negative numbers!
Computers and Technology
1 answer:
vfiekz [6]3 years ago
6 0

Answer:

Explanation:

Let's code it using python. We can take care of the negative number by placing an absolute function at the end. Basically the decimal part is calculated by subtracting the integer part from the original input number

def decimal_print(number):

    int_part = int(number)

    decimal_part = number - int_part

    return abs(decimal_part)

You might be interested in
What is the quotient of 8.16 ÷ 100​
Natalka [10]

Answer:

0.0816

Explanation:

8.16 ÷ 100 = 0.0816 (Ans)

6 0
3 years ago
We study computer ___________ to become familiar with how circuits and signals collaborate to create working computer systems.
Arisa [49]

Answer:

organization

Explanation:

We study computer organization to become familiar with how circuits and signals collaborate to create working computer systems.

6 0
3 years ago
Online companies typically have a(n) _________ on their websites that clearly states what information is collected from users an
Goshia [24]

Answer:

Privacy Policy

Explanation:

A privacy policy is a written a document which  tells visitors to company's website what information will be collected and what the information will be used for. Simply put, it is a short statement of what you are doing to observe visitors to your website through use of cookies and other third parties like google ads.

5 0
4 years ago
Which troubleshooting procedure is most useful when the operating system reports that a file cannot be opened? (A.)rebooting the
Sliva [168]

B: Running the hard disk drive utility.

7 0
4 years ago
Read 2 more answers
"which key do you hold down to select a group of contiguous files"
zloy xaker [14]
The "Ctrl" key is the answer.
4 0
3 years ago
Other questions:
  • Which of the following is a command shell with a built-in scripting language?1. The Server Manager’s Roles and Features wizard2.
    11·2 answers
  • In Marvel Comics, what imaginary rare metal is an important natural resource of Wakanda, the home country of Black Panther?
    15·1 answer
  • Consider the recursive method whose definition appear below. Why? public static String mysteryString (String s){ if(s.length()==
    10·1 answer
  • You press the F9 key to convert an object to a symbol true or false​
    12·1 answer
  • Assume that x and y are boolean variables and have been properly initialized. !(x || y) || (x || y) The result of evaluating the
    10·1 answer
  • What is the process of smaw welding​
    11·1 answer
  • Is Invader Zim gonna come back?
    7·1 answer
  • Digital Sep <br> helps as reimagine outcomes true or false
    9·1 answer
  • Difference between multi-national and global company​
    11·2 answers
  • 19. in the array implementation of a queue, the pop operation is most efficient if the front of the queue is fixed at index posi
    10·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!