Write the definition of a function that takes as input three numbers. The function returns true if the floor of the product of the first two numbers equals the floor of the third number; otherwise it returns false. (Assume that the three numbers are of type double.) (4)

Answers

Answer 1

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


Related Questions

What type of governments exist in Command economy countries?

Answers

controlling governments. they have ownership of major industries, control the production and distribution of goods, etc.

How can you compute, the depth value Z(x,y) in
z-buffer algorithm. Using incremental calculations
find out the depth value Z(x+1, y) and Z (x, y+1).
(2)

Answers

The Depth-buffer approach, usually referred to as Z-buffer, is one of the methods frequently used to find buried surfaces. It is a method in image space and pixel.

Thus, The pixel to be drawn in 2D is the foundation of image space approaches and Z buffer. The running time complexity for these approaches equals the product of the number of objects and pixels.

Additionally, because two arrays of pixels are needed—one for the frame buffer and the other for the depth buffer—the space complexity is twice the amount of pixels.

Surface depths are compared using the Z-buffer approach at each pixel location on the projection plane.

Thus, The Depth-buffer approach, usually referred to as Z-buffer, is one of the methods frequently used to find buried surfaces. It is a method in image space and pixel.

Learn more about Z buffer, refer to the link:

https://brainly.com/question/12972628

#SPJ1

Select the correct answer.
Ergonomic principles suggest minimizing pressure points while working on a computer. What will help to minimize pressure points while doing
sedentary work?
O A. use handles on boxes
O B.
take regular breaks
O C.
use cushioning while sitting
arrange your work area
O
D.
Reset
Next

Answers

I think the third option C

The answer here is hh b

Are dogs are dangerous. the golden retriever is a dog. there for the golden retriever is dangerous. is this argument sound or unsound?

Answers

The argument is unsound.

Which of the following is NOT a function of a Web Browser?
O Provide a platform that users can use to access web pages and sites
O Access a Web server and request a page on the Internet so the right information shows up
O Crawl through the World Wide Web searching for words and terms to index in Web Databases
O Interpret Web page's HTML tags and display the Web page's information in a way that is intended/easily readable for you

Answers

A web browser is used to gain access to the contents of a website, displaying the information in a readable and easily understandable format. Hence, an option which isn't a function of a web browser is Crawl through the World Wide Web searching for words and terms to index in Web Databases

A web browsers allows users to access web pages and sites, by accessing web servers and requesting access to display the contents.

Web pages are written in Hypertext Markup Language (HTML). Browsers interpret these document format and tags so that it is displayed in an understandable format.

Learn more : https://brainly.com/question/17130932

You sometimes hear, “You can’t add apples and oranges.” Show that we can and do add apples and oranges in the national accounts. Explain how.

Answers

The reason for the statement of You can’t add apples and oranges.” Show that we can and do add apples and oranges in the national accounts is that the expression "apples and oranges can't be added" is used to highlight the differences between two objects that economists believe are incomparable.

What is the expression about?

Due to the lack of an acceptable unit of measurement, it is particularly challenging to measure the national income in practice. Three approaches are used in economics to measure national income:

The Product Method, also known as the Value Output Method.The Income Method.The Expenditure Method.

Which are not enough. The national income or GDP is immaterial. Therefore, Real GDP includes thousands of other items and services that cannot be directly added in economics, in addition to apples and oranges, computers, as well as power, transportation, and also education.

Learn more about national accounts from

https://brainly.com/question/1098565
#SPJ1

music class
1. Fill in the chart showing the development of Western musical notation by describing which
elements of music were represented by each type of notation. Examples might include exact pitch,
melodic shape, rhythm, meter, or other musical parameters. (5 pts.)
Earliest
Most Recent
Type of Notation
.
• Neumes above text
.
• Neumes
Colored lines
• Neumes
.
• 4-line staff

F, C, or G clef
- Notes on 5-line staff with
clef
• Mensuration (longas and
breves)
. Time signature (perfect or
half circle)
• Notes on 5-line staff
• Modern clefs
.
. Modern note values
(whole, half, quarter, etc..)
. Modern time signature
Italian words and
abbreviations for dynamics
and tempo
Staccato, slurs, etc..
What it Showed
Points
Earned
2. Write a short paragraph describing the career and music of one of the following composers. Be
as specific as possible. (5 pts.)

Answers

The  paragraph  that tells about one notable composers in music history is given below and this is on Ludwig van Beethoven (1770-1827).

Who is Beethoven?

Beethoven is known to be a German composer as well as a pianist who was said to be very popular as well as  been known to be the greatest composers of all time.

Beethoven is said to be seen as greatest composer due to his special his ability.

Therefore, even though he was said to be having the issue of hearing loss, Beethoven's music was said to have to have moved and leave a legacy on the history of all of  classical music.

Learn more about Beethoven from

https://brainly.com/question/1038011

#SPJ1

music class 1. Fill in the chart showing the development of Western musical notation by describing whichelements

In a balanced budget, the amount is the amount

Answers

In a balanced budget, the Income amount is same as the expense amount.

What is a balanced budget?

A balanced budget is one in which the revenues match the expenditures. As a result, neither a fiscal deficit nor a fiscal surplus exist. In general, it is a budget that does not have a budget deficit but may have a budget surplus.

Planning a balanced budget assists governments in avoiding excessive spending and focuses cash on regions and services that are most in need.

Hence the above statement is correct.

Learn more about Budget:
https://brainly.com/question/15683430
#SPJ1

Which of the following groups might sign a non-disclosure agreement between them?

the local government and its citizens

a group of employees or contractors

a company and an employee or contractor

two competing businesses or companiesc​

Answers

Answer: I believe the right answer is between a company and employee or contractor.

Explanation: I think this is the answer because a non-disclosure is a legal contract between a person and a company stating that all sensitive. information will be kept confidential.

Answer:a

Explanation:

You have a hard disk in a Windows system configured as a basic disk. You need to create six volumes on the disk. Which of the following partition types must you create?
a. primary
b. system
c. extended
d. dynamic

Answers

The MBR partition scheme allows you to create up to four partitions on a basic disk: either four primary partitions or three primary and one extended partition. Initial division, You can create up to four primary partitions on a basic drive. Thus, option C is correct.

What Windows system configured as a basic disk?

First partition On a basic drive, you can make up to four primary partitions. A primary partition must exist on each hard drive before a logical volume can be created. Only one partition can be made the active partition.

Therefore, One or more logical drives can be found in the extended partition.

Learn more about disk here:

https://brainly.com/question/27960878

#SPJ1

HELP ASAP PLZ PLZ PLZTegan is playing a computer game on her smartphone and the battery is getting low. When she goes to charge her phone, she notices that the cord is broken. What can Tegan do to solve her problem?
Plug in the smartphone to charge.
Put tape around the broken part of the cord.
Ask a trusted adult for help replacing the cord.
Use the laptop charger instead.

Answers

Answer:

3rd choice

Explanation:

Use the drop-down menus to complete statements about archiving and backing up data fileArchiving data files manages the size of a mailbox for storage.
Creating an Outlook data file
data files in storage on a computer.

Answers

Answer:

Archiving data files manages the size of a mailbox for  

local

storage.

Creating an Outlook data file  

protects

data files in storage on a computer.

Explanation:

Because its right.

Answer:

an increase in cloud computing

Explanation:

A size of a jumbo candy bar with rectangular shape is l x w x h. Due to rising costs of cocoa, the volume of the candy bar is to be reduced by p%.

To accomplish this, the management decided to keep the height of the candy bar the same, and reduce the length and width by the same amount.

For example, if l = 12, w = 7, h = 3, and p = 10, then the new dimension of the candy bar is 11.39 x 6.64 x 3.

Below is an example of how the completed program should work:

Enter the length, width, and height of the candy bar separated by space(s): 12 7 3

Enter the amount of the reduced volume as a percentage: 10

The new dimensions of the candy bar is: 11.38 x 6.64 x 3.00


Format your output with setprecision(2) to ensure the proper number of decimals for testing!

Answers

Please wait until more research is discovered...

Question

A size of a jumbo candy bar with rectangular shape is l x w x h. Due to rising costs of cocoa, the volume of the candy bar is to be reduced by p%.

To accomplish this, the management decided to keep the height of the candy bar the same, and reduce the length and width by the same amount.

For example, if l = 12, w = 7, h = 3, and p = 10, then the new dimension of the candy bar is 11.39 x 6.64 x 3.

Below is an example of how the completed program should work:

Enter the length, width, and height of the candy bar separated by space(s): 12 7 3

Enter the amount of the reduced volume as a percentage: 10

The new dimensions of the candy bar is: 11.38 x 6.64 x 3.00

Format your output with setprecision(2) to ensure the proper number of decimals for testing!

what will allow you to immediately exit the program without rebooting the computer, when you realize your browser is not responding ​

Answers

Answer:

the exit button on top right or x out of that certain tab

Explanation:

Word can only print documents on one size of paper.

True or false

Answers

Answer:

False

Explanation:

You can always go in the document settings to change the layout and make the paper wider (landscape).

Layout > Orientation

Choose portrait or landscape

Which of the following queries can have a fully Meets result?

Answers

Answer: we need the awnser key

Explanation:

Make sure your animal_list.py program prints the following things, in this order:
The list of animals 1.0
The number of animals in the list 1.0
The number of dogs in the list 1.0
The list reversed 1.0
The list sorted alphabetically 1.0
The list of animals with “bear” added to the end 1.0
The list of animals with “lion” added at the beginning 1.0
The list of animals after “elephant” is removed 1.0
The bear being removed, and the list of animals with "bear" removed 1.0
The lion being removed, and the list of animals with "lion" removed

Need the code promise brainliest plus 100 points

Answers

Answer:#Animal List animals = ["monkey","dog","cat","elephant","armadillo"]print("These are the animals in the:\n",animals)print("The number of animals in the list:\n", len(animals))print("The number of dogs in the list:\n",animals.count("dog"))animals.reverse()print("The list reversed:\n",animals)animals.sort()print("Here's the list sorted alphabetically:\n",animals)animals.append("bear")print("The new list of animals:\n",animals)

Explanation:

Which item converts a high level language program to low level machine instruction?

Answers

The compiler translates each source code instruction into the appropriate machine language instruction, an

What Are the Various Broadband Internet Connections? *​

Answers

Answer:

This is your answer

What Are the Various Broadband Internet Connections?*

Answer:

Types of Broadband Connections

Digital Subscriber Line (DSL) Cable Modem. Fiber. Wireless. Satellite. Broadband over Powerlines (BPL)

Hope this helps you. Do mark me as brainliest.

In which of the following situations must you stop for a school bus with flashing red lights?

None of the choices are correct.

on a highway that is divided into two separate roadways if you are on the SAME roadway as the school bus

you never have to stop for a school bus as long as you slow down and proceed with caution until you have completely passed it

on a highway that is divided into two separate roadways if you are on the OPPOSITE roadway as the school bus

Answers

The correct answer is:

on a highway that is divided into two separate roadways if you are on the OPPOSITE roadway as the school bus

What happens when a school bus is flashing red lights

When a school bus has its flashing red lights activated and the stop sign extended, it is indicating that students are either boarding or exiting the bus. In most jurisdictions, drivers are required to stop when they are on the opposite side of a divided highway from the school bus. This is to ensure the safety of the students crossing the road.

It is crucial to follow the specific laws and regulations of your local jurisdiction regarding school bus safety, as they may vary.

Learn more about school bus at

https://brainly.com/question/30615345

#SPJ1

A client has the right to receive ethically conducted research. Discuss this statement with examples.

Answers

A client has the right to receive ethically conducted research. This means that the researcher should adhere to the principles of scientific research, which includes honesty, objectivity, integrity, and respect for human subjects. In addition, the researcher should ensure that the research is conducted in a safe and responsible manner.

What is research?
Research is defined as "creative and methodical activity done to improve the body of knowledge." It entails the objective gathering, organising, and analysis of data in order to improve comprehension of a subject or issue. A research effort could build on prior contributions to the field. Research may duplicate portions of earlier projects or the project as a complete to verify the accuracy of instruments, processes, or experiments.

Documentation, discovery, interpretation, as well as the research and development (R&D) of methods & systems again for advancement of human knowledge are the main goals of basic research (as opposed to applied research). Research methodologies are based on epistemologies, which differ greatly within and between the humanities and sciences.

To learn more about research
https://brainly.com/question/25257437
#SPJ13

In order to average together values that match two different conditions in different ranges, an excel user should use the ____ function.

Answers

Answer: Excel Average functions

Explanation: it gets the work done.

Answer:

excel average

Explanation:

Question 3 (1 point)
an assortment or set of type or characters all of one style and sometimes one size.
italic
O underline
font
Obold

Question 3 (1 point)an assortment or set of type or characters all of one style and sometimes one size.italicO

Answers

an assortment or set of type or charactera all of one style and sometimes one size. Ans: italic

Which of the following statements are true?

Sorting algorithms are used to find a particular element in the list

None of the above

Searching algorithms can be used to sort a list

Sorting algorithms can only sort lists in ascending order​

Answers

None of the above statements are true.

Sorting algorithms are used to sort a list in a particular order, not to find a particular element.
Searching algorithms are used to find a particular element in a list, not to sort a list.
Sorting algorithms can sort a list in ascending or descending order, depending on the implementation.

Which of the following is NOT a reason to include comments in programs
*
0/1
A. Comments help the computer decide whether certain components of a program are important.
B. Comments help programmers debug issues in their own code
C. Comments help document how code was written for other programmers to use
D. Comments enable programmers to track their work throughout the development process

Answers

Yes, Thats Right Just Took it.

A is the correct answer

Please help its due on May 14th. The code has to be in python.

Please help its due on May 14th. The code has to be in python.
Please help its due on May 14th. The code has to be in python.

Answers

An example of a Python function that reverses a list:

def reverse_list(lst):

   return lst[::-1]

How to use this Python function

To reverse a list, simply provide it as an input to this function, which will perform the reversal and give you the modified list.

Here's an example of usage:

my_list = [1, 2, 3, 4, 5]

reversed_list = reverse_list(my_list)

print(reversed_list)

The Output

[5, 4, 3, 2, 1]

The reverse_list function utilizes list slicing with a step value of -1 in lst[::-1] to invert the order of items in the list. A new list is formed with the elements arranged in the opposite order.


Read more about Python function here:

https://brainly.com/question/18521637

#SPJ1

Which of the following does NOT pair the statement with the corresponding output?

Which of the following does NOT pair the statement with the corresponding output?

Answers

The statement that does not pair with the corresponding output is system.out.printin (a + b+ c). The correct option is statement A.

What is the output?

Output is any information processed by and sent by a computer or other electronic device. Anything visible on your computer monitor screen, such as the words you write on your keyboard, is an example of output.

Outputs can be text displayed on the computer's monitor, sound from the computer's speakers, or a physical output such as a printed sheet of paper from a printer connected to the computer.

Therefore, the correct option is A, system.out.printin (a + b+ c).

To learn more about output, refer to the link:

https://brainly.com/question/13736104

#SPJ1

Can someone help me with the following logical circuit, perform two actions. FIRST, convert the circuit into a logical
statement. SECOND, create a truth table based on the circuit/statement. (20 pts. each for statement and
truth table.

Can someone help me with the following logical circuit, perform two actions. FIRST, convert the circuit

Answers

Creation of Truth Table Based on the logical statement, we can create a truth table as shown below:

A B (not A) (not A) and B (not A) and B or A A or (not A) and B 0 0 1 0 1 0 0 1 0 0 1 0 1 1 0 1 1 0 1 1 1 0 1 1 0 1 1 0 1 1 1

The first two columns show the input values, the next column shows the output of the NOT gate, then the output of the AND gate, then the output of the OR gate and finally the output of the logical statement.

We can observe that the output of the logical statement is the same as the output of the OR gate.

Given the logical circuit, we are required to perform two actions on it. Firstly, convert the circuit into a logical statement. Secondly, create a truth table based on the circuit/statement. Let's understand how to do these actions one by one:Conversion of Circuit into Logical Statement.

The given circuit contains three components: NOT gate, AND gate and OR gate. Let's analyze the working of this circuit. The two input variables A and B are first passed through the NOT gate, which gives the opposite of the input signal.

Then the NOT gate output is passed through the AND gate along with the input variable B. The output of the AND gate is then passed through the OR gate along with the input variable A.We can create a logical statement based on this working as: (not A) and B or A. This can also be represented as A or (not A) and B. Either of these statements is correct and can be used to construct the truth table.

Creation of Truth Table Based on the logical statement, we can create a truth table as shown below:

A B (not A) (not A) and B (not A) and B or A A or (not A) and B 0 0 1 0 1 0 0 1 0 0 1 0 1 1 0 1 1 0 1 1 1 0 1 1 0 1 1 0 1 1 1

In the truth table, we have all possible combinations of input variables A and B and their corresponding outputs for each component of the circuit.

The first two columns show the input values, the next column shows the output of the NOT gate, then the output of the AND gate, then the output of the OR gate and finally the output of the logical statement.

We can observe that the output of the logical statement is the same as the output of the OR gate.

For more such questions on Truth Table, click on:

https://brainly.com/question/13425324

#SPJ8

Based on the description below which website is more appropriate


A. a site that asks you to send $10 to help schoolchildren in Uganda
B. a site that describe violent behavior
C. a site that asks for your personal information to win a contest for a new bike
D. a site sponsored by a government agency that gives you factual information

Answers

Answer:

D

Explanation:

Answer:

The answer is d

Explanation:

because asking for 10 dollars is the first website is not normal and in the second describing violent behavior is not ok and the third asking for personal information for a free bike is not good but d a site sponsored giving you factual information that made by the government is trustworthy

What does the acronym SMART stand for

Answers

Specific, Measurable, Achievable, Relevant, Time-bound

Other Questions
Agente infeccioso procariota cuyo ADN est disperso en el citoplasma"1 puntovirusbacteriahongoprotozoohelminto Which of the following would be a negative aspect of globalization How many moles are in 63 g of NH4 (molar mass= 18g)?a. 2 molesb. 1 molesc. 3.5 molesd. 5 moles When forces of 5 N and 7 N respectively act on an object. When will the resultant of the two vectors be at a maxium "-5 increased by one-half of a number is amaximum of 3." Trey will attend a -year college, and he is planning his budget.Answer the following.(a) Below is an estimate of all his expenses and sources of funding for his -year college education.For each, select whether it is an expense or a source of funding.Expense Funding Scholarships: Grants: Housing and food: Work-study (part-time job): Personal expenses: Transportation: Tuition and fees: Books and supplies: (b) What is the total of his estimated expenses?(c) What is the total of his estimated funding?(d) Can Trey expect to have enough money for his education? How much is the difference? How were the planets in the solar system formed?(1 point)They developed from the dust that gravity attracted from distant galaxies.They formed from material remaining after the sun's formation clumped together by gravity.They came from the gas that the sun released and gravity pulled far away.They were forced out of the central disc by the gravity that formed the sun. Find the range and the first and third quartiles for the data set.94, 26, 90, 69, 98, 52, 68 help me please and get some point for yourself what do you know about the nurses purpose that benvolio and mercutio are unaware of Quadrilateral A'B'C'D' is the image of quadrilateral ABCD under a rotation about point P.Determine the angle of rotation. Describe a situation in which being pitied might insult someones dignity. the width of the rectangle fence is 5 ft less then the length if the length is decreased by 3 ft and the width is increased by 1 ft the area limited by the old fence will be the same as the area of the original fence what/ who is/ were envolved in triangular trade? Read the following article about responsible travel. On the opposite page, write a summary about what responsible travellers do when on holiday. Your summary should be about 100 words (and no more than 120 words). You should use your own words as far as possible. Janet Pascoe owns a small recruitment agency, and is thinking of buying a new accounting, management and database system for her business leads, employer and client records. Her accountant has produced a five year target for her, which shows that her cash flows are likely to diminish in the first two years (due to set up costs etc.), but will show positive results thereafter. The figures are as follows: Year 0 purchase of computer and software 10,000Net cash flows year 1 4000 Year 2 1,000 Year 3 5,100 Year 4 8,000 Year 5 10,000Required: a) Calculate the NPV of this project using a discount rate of 12%. Comment on whether you think Janet would be advised to go ahead with the project. (4 marks) b) If the NPV at 20% is ( {3,197.1 ), estimate the Internal Rate of Return on the project. [Note, that is NPV equals to 3,197.1 at 20%.] (2 marks) c) Comment, giving reasons, on whether your result for the IRR is what you would have expected before you carried out your calculation in part b). (4 marks) This quote is from the majority opinion in the Supreme Court case of Schenck v. U.S.This quote was used to justify what action of the United States government during World War I?A executing a German spy who had set fire to a movie theatreB arresting an American citizen for passing out anti-war pamphletsC instituting a draft to create a larger armyD banning the customs of enemy countriesbanning the customs of enemy countries A guy wire runs from the top of a cell tower to a metal stake in the ground. Jai placesa 8-foot tall pole to support the guy wire. After placing the pole, Jai measures thedistance from the stake to the pole to be 4 ft. He then measures the distance from thepole to the tower to be 33 ft. Find the length of the guy wire, to the nearest foot. Why is an understanding of the Fourth Amendment important for a police officer? SELECT ALL THAT APPLY.0 The police officer must be certain there is sufficient suspicion to carry out a search.0 The police officer will be responsible for and carry out many of these searches.0 When arrest warrants are issued, it is a police officer who serves the warrant and takes the suspect into custody.0 The police officer must understand what can and cannot be searched to result in legal evidence.Please help this is a timed test, I will mark brainliest answer Find the first 5 terms of the sequence a1= -4, an = 3an-1 -2 for n > 1.