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
Snezhnost [94]
4 years ago
14

Given a positive real number, print its fractional part.

Computers and Technology
1 answer:
givi [52]4 years ago
8 0
<span>The modf() function will do this for you:

double x, y, d;
x = -14.876;
y = modf(x, &d);
printf("Fractional part = %lf\n", y);

</span>
You might be interested in
When two or more links need to pass traffic as if they were one physical link, which of the following would be used to satisfy t
leva [86]

Answer: C)LACP

Explanation: LACP(Link Aggregation Control Protocol) is the protocol that is responsible for the management of the physical ports present on a particular channel. The main purpose of this protocol is to improve performance by laying the network in the parallel structure so that traffic can be managed.

Other option are incorrect because they don't provide traffic management over the physical link. Thus, the correct option is option(C).

6 0
3 years ago
If you commit license fraud by using an altered or unlawful license:
Scorpion4ik [409]
<h2>Answer:</h2>

All of these

<h2>Explanation:</h2>

If someone is caught with a fake or altered or unlawful driving license, the law will come in action and the person can be sent to jail for it. He may be fined for an amount depending upon the state law. His driving privilege can also be suspended automatically in some states and the false license will be confiscated so that no one could be able to use it again in any circumstances.

5 0
3 years ago
Read 2 more answers
What is the Explicit Dependencies Principle? Explain why explicit dependencies are better than implicit dependencies.
Zanzabum

Answer:

Explanation:

Explicit Dependencies

<u>It states that the classes and methods should explicitly require , via constructor or method parameters all the collaborating objects that are required for the function to work properly .</u>

Classes with the implicit dependencies cost very high for the maintenance than the explicit dependencies .

Even , the implicit dependencies are difficult to test as they are tightly coupled to their collaborators .

8 0
4 years ago
When declaring the data type for a multidimensional array of strings, which statement would be most appropriate?
romanna [79]

Answer:

This question required option (See Explanation)

Explanation:

Required

How to declare 2D array

Using Java as a programming language of reference, the syntax to declare a 2D array is:

Data-Type [][] Array-Name = new Data-Type[Rows][Column]

From the question, the data type is String. So, the syntax becomes

String [][] Array-Name = new String[Rows][Column]

Assume the array name is: myArray; The above becomes

String [][] myArray= new String[Rows][Column]

<em>I will not assume values for Rows and Column, but it is worth saying that Rows and Columns are positive integers greater than 1 to make the array a 2 D array</em>

4 0
3 years ago
Assign testResult with 1 if either geneticMarkerA is 1 or geneticMarkerB is 1. If geneticMarkerA and geneticMarkerB are both 1,
OverLord2011 [107]

Answer:

Following python statement will give the assignment to testResult as specified:

if((geneticMarkerA == 1) or (geneticMarkerB ==1)):

   testResult = 1

if((geneticMarkerA ==1) and (geneticMarkerB == 1)):

   testResult = 0

if((geneticMarkerA == 0) and (geneticMarkerB == 0)):

   testResult = 0

Explanation:

In above statements or and and operator are used to check the conditions of set of values present in variable geneticMarkerA and geneticMarkerB.

Based on if the condition evaluate to true or false respective values to testResult varaible is assigned.

Following is sample run for above statements:

geneticMarkerA = 1

geneticMarkerB = 0

if((geneticMarkerA == 1) or (geneticMarkerB ==1)):

   testResult = 1

if((geneticMarkerA ==1) and (geneticMarkerB == 1)):

   testResult = 0

if((geneticMarkerA == 0) and (geneticMarkerB == 0)):

   testResult = 0

print(testResult)

Output

1

4 0
4 years ago
Other questions:
  • The first electronic networking technology widely used in the United States was the:
    6·1 answer
  • Suppose your friend, who is a small business owner, wants to computerize her business functions such as accounting, payroll, and
    7·1 answer
  • The tools that cyber criminals often use, including computer viruses, worms, trojan horses and spyware, are called __________. q
    5·1 answer
  • What is the difference between the audio mixer and meters panel.
    8·1 answer
  • Your corporation hosts a Web site at the static public IP address 92.110.30.123.
    13·1 answer
  • Choose the term that best matches the definition.
    9·1 answer
  • Who Invented Abacus!
    15·1 answer
  • Alguien que me pueda ayudar diciéndome las características de Visual Object en programacion porfavor?!
    6·1 answer
  • Terri brought a magazine for $5, and 2 bottles of nail polish. Write an expression to represent the total amount she spent. Then
    5·1 answer
  • Business Rules constraints falls into two categories:
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!