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
Vera_Pavlovna [14]
3 years ago
11

Write the definition of a function that takes as input three numbers. The function returns true if the floor of the product of t

he first two numbers equals the floor of the third number; otherwise it returns false. (Assume that the three numbers are of type double.) (4)
Computers and Technology
1 answer:
SVETLANKA909090 [29]3 years ago
4 0

Answer:

Written in C++

bool checkfloor(double num1, double num2, double num3) {

   if(floor(num1 * num2) == floor(num3)){

       return true;

   }

   else {

       return false;

   }

}

Explanation:

The function written in C++

This line defines the function

bool checkfloor(double num1, double num2, double num3) {

The following if condition checks if the floor of num1 * num2 equals num3

   if(floor(num1 * num2) == floor(num3)){

       return true; It returns true, if yes

   }

   else {

       return false; It returns false, if otherwise

   }

}

See attachment for full program including the main

Download cpp
You might be interested in
1). What is the proper name of the healing agent?
VLD [36.1K]

Answer:

1. Hydroxychloroquine is the healing agent

2. Chloroquine does not have a hydroxyl group attached    

Explanation:              

Chloroquine and  Hydroxy chloroquine have been in use for many decades for malaria treatment and prophylaxis.    

It was found that there was a high possibility of being poisoned when treatment of chloroquine was administered. In 1946 the hydroxyl group replaced the CH3₃  (methyl) group with an ⁻OH (hydroxyl) group as indicated by the attachment. Toxicity by chloroquine was reduced to 40% when the ⁻OH group was attached.

Later chloroquine was added to formulas that are used for cleaning pools and fish tanks.

Both of these chemicals should be used by following the guide lines and under medical supervision if taken for any illness.

3 0
4 years ago
Susan is excited to learn various safe ways to browse the Internet. She is looking for suggestions that would help her. Which ar
a_sh-v [17]

Answer:

a

Explanation:

5 0
3 years ago
Which of these statements correctly defines source code?
Ksju [112]

Answer:

B.  code written in a high-level language

Explanation:

8 0
4 years ago
As which printers are ink-jet printers or band printers classified?
Anestetic [448]
I think character printers
5 0
3 years ago
3. Which of the following is most likely fake news?
ahrayia [7]

Answer:

C. An article that tries to sell you miracle weight loss pills

7 0
3 years ago
Other questions:
  • Assume that word is a variable of type String that has been assigned a value. Assume furthermore that this value always contains
    13·2 answers
  • Which of the following would allow for more data to be stored on a CD?
    11·2 answers
  • The term _______ is used to refer to programs that attackers install after gaining unauthorized access to a system, ensuring tha
    15·1 answer
  • You store sensitive data on your computer and need to restrict access to this data by others who use your computer. What will yo
    15·1 answer
  • NMCI is the name used for a large-scale effort to link Navy and Marine Corps computer systems on bases, boats, and in offices ar
    15·1 answer
  • What is a hash function? A. A function that computes the location of the values in the array B. A function has allocated memory
    7·2 answers
  • What is the term that refers to an Internet marketing technique in which you pay for high search engine results by advertising o
    12·1 answer
  • I’m quitting this thing so I’m giving all my points away which are 218!!! I’m still gonna have more tho just in case I ever need
    15·2 answers
  • 9. The monumental failure of Atari's E.T Extra-terrestrial was, among other things, due to the fact that ______________
    5·1 answer
  • How do hand tools,Farm implements and farm equipment differ from one another
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!