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]
4 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]4 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 mass of nh3 can be made from 35g of n2?
Anton [14]
 <span>14 g N in 17 g NH3 
so 35 g N will make 17*35/14 = 42.5 g</span>
3 0
3 years ago
What is the difference between connecting link and missing link ?
JulijaS [17]
It's simple. Missing link is the connecting link which had been cut or extinct. The main example are extinct animal species.
8 0
3 years ago
WikiLeaks is a famous not-for-profit whistleblower website. MasterCard and Visa stopped payments to WikiLeaks after a series of
gayaneshka [121]

Answer:

Hacktivists

Explanation:

Hacktivists are individuals who gain unauthorized access to computer networks or information, then use unruly ways to effect social or political change. Hacktivism started as a way of protesting online to effect a change by pushing for a certain outcome. This saw the building of websites such as wiki leaks. Although hacktivists are not entirely driven by malicious intent they employ some tactics used by hackers to drive their message across.

5 0
3 years ago
In computer terminology, what is a network?
RSB [31]
It is like where two or more computers are connected and they exchange informations, (sharing) and also they can communicate. and also share their some softwares etc. etc... This is called network in computer terminology

4 0
3 years ago
im past 1000 pts and it still hasnt up my rank from VIRTUOSO to EXPERT can someone explain and yes i have brainly plus
FromTheMoon [43]

Answer:

GREAT!

Explanation:

give me crown please

6 0
3 years ago
Read 2 more answers
Other questions:
  • Which type of data in es changes least frequently?
    15·1 answer
  • Create a new file that contains a summary of the total consumption for three sectors: "Residential," "Commercial," and "Industri
    10·1 answer
  • The general who directed the project responsible for the "Fat Man” graduated from what alma mater in 1918? Hint: W___ P____.
    10·1 answer
  • The default ____ for a hyperlink is the folder location and the name of the file to which you will link.
    6·1 answer
  • The private field, which is known as the property‘s __________, holds any data that is assigned to the property.a. private datab.
    9·1 answer
  • Which key temporarily activates the Hand tool?​
    6·1 answer
  • Write a test program that prompts the user to enter three sides of the triangle (make sure they define an actual triangle), a co
    5·1 answer
  • Check ALL of the correct answers.
    13·1 answer
  • Can someone help me to write a python code to save list form python to CSV file please?​
    12·1 answer
  • Which statement best describes one reason why assembly language is easier
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!